-
Notifications
You must be signed in to change notification settings - Fork 1
/
Terminator_Final.py
1005 lines (896 loc) · 57.3 KB
/
Terminator_Final.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
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env python
import sys
if sys.version_info[0] >= 3:
import PySimpleGUI as sg
else:
import PySimpleGUI27 as sg
import os
import signal
import psutil
import operator
import subprocess
import hashlib, requests
import webbrowser
import datetime
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
'''
def Form(processes_to_select):
layout = [[sg.Text('To get a Verbose Output about the Process Select the Show Option!\nTo Submit the Hash to VirusTotal please Select the Submit Option!')],
[sg.RButton('Show',pad=(5,5)),sg.RButton('Submit',pad=(5,5))]]
window = sg.Window('Form').Layout(layout)
while (True):
try:
bu, val = window.Read()
if 'Mouse' in bu or 'Control' in bu or 'Shift' in bu:
continue
#--------- Do Button Operations --------
if bu == 'Show':
for process in processes_to_select:
pid = "The Pid of the Selected Process : {0}".format(process.pid)
name = "The Name of the Selected Process : {0}".format(process.name())
cpu_percent = "The CPU Utilization of the Selected Process : {0}".format(process.cpu_percent(interval=None))
try :
abs_path = "The Absolute Path of the Selected Process : {0}".format(process.cwd())
path = "The Path of the Selected Process : {0}".format(process.exe())
except :
abs_path = "The Absolute Path of the Selected Process : ' ' "
path = "The Path of the Selected Process : ' ' "
sg.Popup('The Process Detail of PID is : ', pid, name, cpu_percent, abs_path, path, '.................')
elif bu == 'Submit':
sg.Popup('Submitting the hash to virustotal API :','','Loading........','','Results are: .......')
if val is None:
break
except:
break
def submit_form(processes_to_select):
layout = [[sg.Text('Submitting the Hash to the Virustotal(Only 4 Request is allowed in 1 min)')],
[sg.Listbox(values=display_list, size=(150, 45), select_mode=sg.SELECT_MODE_EXTENDED, text_color = "darkblue", font=('Courier', 10))],
[sg.RButton('Open Virustotal')]]
window = sg.Window('Submit The File to Virustotal').Layout(layout)
for proc in processes_to_select:
pid = int(proc[0:5])
p = psutil.Process(pid)
name = p.name()
status = p.status()
username = p.username()
try:
path = p.exe()
abs_path = p.cwd()
except:
path = ""
abs_path = ""
BUF_SIZE = 65536
if len(path) == 0:
pass
else:
md5 = hashlib.md5()
file = path.encode("unicode_escape")
try:
with open(file, 'rb') as f:
while True:
data = f.read(BUF_SIZE)
if not data:
break
md5.update(data)
hash = md5.hexdigest()
except:
pass
params = {
'apikey': "b8acfc47cf0cd9d6bb515722f5c4dad6739f4e1a9669241e39d56d46e2675abb",
'resource': hash
}
response = requests.get('https://www.virustotal.com/vtapi/v2/file/report', params=params)
json_response = response.json()
'''
def uploadForm():
window_rows = [[sg.Text('Upload the file')],
[sg.InputText(), sg.FileBrowse()],
[sg.Submit(), sg.RButton('Open Virustotal')]
]
window = sg.Window('Upload The File to Virustotal').Layout(window_rows)
while (True):
button, values = window.Read()
# if event is None or event == 'Exit':
# return
# print('Event = ', event)
if 'Mouse' in button or 'Control' in button or 'Shift' in button:
continue
# --------- Do Button Operations --------
if values is None or button == 'Exit':
break
elif button == "Submit":
path = values[0]
BUF_SIZE = 65536
if len(path) == 0:
pass
else:
md5 = hashlib.md5()
file = path.encode("unicode_escape")
try:
with open(file, 'rb') as f:
while True:
data = f.read(BUF_SIZE)
if not data:
break
md5.update(data)
hash = md5.hexdigest()
except:
pass
params = {
'apikey': "YOUR_API_Key",
'resource': hash
}
response = requests.get('https://www.virustotal.com/vtapi/v2/file/report', params=params)
j_response = response.json()
if len(j_response) == 0:
total_scan = j_response['total']
positives = j_response['positives']
sha256 = j_response['sha256']
else:
total_scan = ""
positives = ""
sha256 = ""
# scan_date = j_response['scan_date']
sg.Popup('File Path : {0}'.format(values[0]), \
'Hash(MD5) of the File : {0}'.format(hash), \
'Hash(SHA256) of the File : {0}'.format(sha256), \
'No. of Scans by Virustotal : {0}'.format(total_scan), \
'No. of Positives found : {0}'.format(positives)
)
def MapForm(latitude,longitude):
layout = [[sg.Text('LATITUDE ='+str(latitude)+'\n\nLONGITUDE = '+str(longitude)+'\t\t\t\t')],
[sg.RButton('OK'),sg.RButton('BROWSE',pad=((25,3),3))]]
#sg.Popup('LATITUDE = 37.7913838 \n LONGITUDE = -79.44398934', sg.Window('Next Form').Layout(layout))
window=sg.Window('Maps').Layout(layout)
b, v = window.Read()
def FirstForm():
layout = [sg.RButton('Ok'),sg.RButton('Result',pad=((25,3),3))]
#sg.Popup('LATITUDE = 37.7913838 \n LONGITUDE = -79.44398934', sg.Window('Next Form').Layout(layout))
window=sg.Window('Submit').Layout(layout)
b, v = window.Read()
def SecondForm():
layout = [[sg.Text('wedfrghjkl')],
[sg.Exit('OK')]]
window = sg.Window('Second Form').Layout(layout)
b, v = window.Read()
# window.Reappear()
def kill_proc_tree(pid, sig=signal.SIGTERM, include_parent=True,
timeout=None, on_terminate=None):
if pid == os.getpid():
raise RuntimeError("I refuse to kill myself")
parent = psutil.Process(pid)
children = parent.children(recursive=True)
if include_parent:
children.append(parent)
for p in children:
p.send_signal(sig)
gone, alive = psutil.wait_procs(children, timeout=timeout,
callback=on_terminate)
return (gone, alive)
def main():
# ---------------- Create Form ----------------
# sg.ChangeLookAndFeel('Topanga')
menu_def = [['&File', ['&Run', 'Run as Administrator', 'Run as Limted User','---', 'Show details for all processes','---', '&Save', 'Save As','---', 'Shutdown',['Logoff', 'Shutdown', 'Hibernate', 'StandBy', 'Lock', 'Restart',],'---', '&Exit' ]],
['Options', ['Run to Logon', 'Verify Image Signature', 'VirusTotal.com', ['Check VirusTotal.com', 'Submit Unknown Executables'], 'Always on Top', 'Replace Task Manager', 'Hide when Minimized', 'Allow only one Instance', 'Confirm Kill', 'Tray Icons',['CPU History', 'I/O History', 'GPU History', 'Commit History', 'Physical Memory History',], 'Configure Symbols', 'Configure Colors', 'Difference Highlight Duration', 'Font'],],
['View',['System Information', 'Refresh Now'],],
['Process',['Window', 'Set Affinity', 'Kill Process', 'Restart', 'Suspend', 'Check VirusTotal', 'Properties', 'Search Online',]],
['Find',['Find Handle or DLL',]],
['Users',['User',['Connect', 'Disconnect', 'Logoff', 'Remote Control', 'Send Message', 'Properties',],],],
['&Help', ['Help', '&About','Walkthrough','Mail'],],]
sg.SetOptions(auto_size_buttons=True, margins=(0,0), button_color=sg.COLOR_SYSTEM_DEFAULT)
toolbar_buttons = [[sg.Button('', image_data=save64[22:], button_color=('white', sg.COLOR_SYSTEM_DEFAULT), pad=(0, 0), key='_save_',tooltip=' Save ',),
sg.Button('', image_data=sep64[22:], button_color=('white', sg.COLOR_SYSTEM_DEFAULT), pad=(0, 0), key='_separator_', border_width=0,disabled=True),
sg.Button('', image_data=refresh64[22:], button_color=('white', sg.COLOR_SYSTEM_DEFAULT), pad=(0, 0), key='_refresh_',tooltip=' Refresh '),
sg.Button('', image_data=sep64[22:], button_color=('white', sg.COLOR_SYSTEM_DEFAULT), pad=(0, 0), key='_separator_', border_width=0,disabled=True),
sg.Button('', image_data=sysinfo64[22:], button_color=('white', sg.COLOR_SYSTEM_DEFAULT), pad=(0, 0), key='_systeminfo_',tooltip=' System Information '),
sg.Button('', image_data=kill64[22:], button_color=('white', sg.COLOR_SYSTEM_DEFAULT), pad=(6, 0), key='_killproc_',tooltip=' Kill Process '),
]]
layout = [[sg.Menu(menu_def, )],
[sg.Frame('', toolbar_buttons,title_color='white', pad=(0,0) , border_width=0)],
[sg.T('Filter by Typing Process name or Process ID', font='ANY 14', text_color='black',),
sg.In(size=(15,1), font='any 14', key='_filter_'),sg.RButton('Show', button_color=('black', 'Light blue'),pad=(5,5)), sg.RButton('Submit', button_color=('black', 'Light blue'),pad=(5,5)),sg.RButton('Open VirusTotal Result', button_color=('black', 'Light blue'),pad=(5,5),key='VirusTotalWeb'),sg.RButton('Upload', button_color=('black', 'Light blue'),pad=(5,5),key='uploadfile'),sg.RButton('GEOLOCATION of Live Process', button_color=('black', 'Light blue'),pad=(5,5),key='_ipadd_'),sg.Button('', image_data=firewall64[22:], button_color=('black', sg.COLOR_SYSTEM_DEFAULT), pad=(6, 0), key='_firewall_',tooltip=' Firewall ')],
#sg.RButton(' Upload ', button_color=('black', 'Light blue'),pad=(5,5),key='uploadfile'),
#sg.RButton('Ok', button_color=('black', 'Light blue'),pad=(5,5)),
#sg.RButton('Show', button_color=('black', 'Light blue'))],
# [sg.RButton('Web GUI',button_color=('white', 'sea green'), pad=((1070,3),3)),
# sg.RButton('Maps', button_color=('white', 'sea green'), pad=((10, 3), 3)),
# sg.RButton('Suspend', button_color=('white', 'sea green'), pad=((10,3),3)),
# sg.RButton('Kill', button_color=('white', 'red'), bind_return_key=True, pad=((10,3),3))],
[sg.RButton(' PID ', pad=((3,3),3)) , sg.RButton(' Name ', pad=((0,3),3)) , sg.RButton('Connections', pad=((0,3),3)) , sg.RButton('Status', pad=((0,3),3)) , sg.RButton(' M_usage ', pad=((0,3),3)), sg.RButton(' Score ', pad=((0,3),3)) ,sg.RButton(' Path ', pad=((0,3),3))],
[sg.Listbox(values=[' '], size=(150, 50), select_mode=sg.SELECT_MODE_EXTENDED, text_color = "darkblue", font=('Courier', 10), key='_processes_')]]
window = sg.Window('TERMINATOR',
keep_on_top=False,
auto_size_text=True,
auto_size_buttons=True,
default_button_element_size=(20,1),
return_keyboard_events=True,
resizable=True
).Layout(layout)
display_list = None
# ---------------- main loop ----------------
while (True):
# --------- Read and update window --------
#event= window.Read()
button, values = window.Read() #
# if event is None or event == 'Exit':
# return
# print('Event = ', event)
if 'Mouse' in button or 'Control' in button or 'Shift' in button:
continue
# --------- Do Button Operations --------
if values is None or button == 'Exit':
break
if button == 'About':
#window.Disappear()
sg.Popup('About this program','Version 1.0', 'PySimpleGUI rocks...\n We are SIH 2019 Team.... :D', grab_anywhere=True,button_color=('white','blue'))
#window.Reappear()
elif button == 'Run':
#window.Disappear()
#sg.Popup('Run Dialog called')
#window.Reappear()
p = subprocess.Popen(' explorer.exe Shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}', shell=True)
elif button == 'Run as Administrator':
#subprocess.Popen('explorer.exe Shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}', shell=True)
shell.run("cmd.exe")
#shell.SendKeys("^{SHIFT}")
elif button == '_systeminfo_':
p = subprocess.Popen('msinfo32', shell=True)
elif button == '_close_':
sys.exit(0)
elif button=='Show':
processes_to_select = values['_processes_']
dll_path = {}
all_dll = []
for proc in processes_to_select:
pid = int(proc[0:5])
p = psutil.Process(pid)
name = p.name()
cpu_percent = p.cpu_percent()
status = p.status()
#parent = p.parent()
#parent_pid = parent.pid
#parent_name = parent.name()
username = p.username()
proc_time = datetime.datetime.fromtimestamp(p.create_time()).strftime("%Y-%m-%d %H:%M:%S")
vms = p.memory_info().vms/(1024*1024)
try :
path = p.exe()
abs_path = p.cwd()
except:
path= " "
abs_path = " "
try:
for dll in p.memory_maps():
all_dll.append(dll.path)
dll_path[p.pid] = all_dll
except :
dll_path[p.pid] = ""
if sg.PopupYesNo('Showing the Verbose Output of the Process {} {} \nPress Yes to get the Output'.format(pid, proc[13:]), keep_on_top=True) == 'Yes':
p = psutil.Process(pid)
sg.Popup('Verbose Information about the Process {0}!!'.format(pid), 'Name of the Process : {0}'.format(name), 'Status of the Process : {0}'.format(status), 'Owner of the Process : {0}'.format(username), 'Time at which the process was created :{0}'.format(proc_time), 'Path of the Process : {0}'.format(path), 'Memory Usage by the Process : {0}%'.format(vms)) # "DLL's loaded with the Process : {0}".format(dll_path[p.pid])
#sg.Popup('About this program', 'Version 1.0', 'PySimpleGUI rocks...\n We are SIH 2019 Team.... :D',
#grab_anywhere=True)
elif button=='Submit':
processes_to_select = values['_processes_']
for proc in processes_to_select:
pid = int(proc[0:5])
p = psutil.Process(pid)
name = p.name()
status = p.status()
username = p.username()
try :
path = p.exe()
abs_path = p.cwd()
except:
path= ""
abs_path = ""
BUF_SIZE = 65536
if len(path) == 0 :
pass
else :
md5 = hashlib.md5()
file = path.encode("unicode_escape")
try:
with open(file, 'rb') as f:
while True:
data = f.read(BUF_SIZE)
if not data:
break
md5.update(data)
hash = md5.hexdigest()
except:
pass
params = {
'apikey': "Your_API_Key",
'resource': hash
}
response = requests.get('https://www.virustotal.com/vtapi/v2/file/report', params=params)
json_response = response.json()
send_addr = "<Sender_EmailAddress>"
mail_addr = "Receiving_Email_Address"
msg = MIMEMultipart('alternative')
msg['Subject'] = "Alert By Bug_Hunter_Squad!! Team"
msg['From'] = send_addr
msg['To'] = mail_addr
# Create the body of the message (a plain-text and an HTML version).
text = "Respected Users!\n\t\t\tHere is the Alert By Bug_Hunter_Squad!!"
html ="""\
<html>
<head></head>
<title>Submitted the Process of the LAB Machine</title>
<body>
<p>Dear Sir/Ma'am <br>
Activity Detected by the Team<br>
Here is the Full Description about the Process Submitted to the Virustotal<a href="{0}">link</a> you wanted.
</p>
</body>
</html>
""".format(json_response['permalink'])
# Record the MIME types of both parts - text/plain and text/html.
part1 = MIMEText(text, 'plain')
part2 = MIMEText(html, 'html')
# Attach parts into message container.
# According to RFC 2046, the last part of a multipart message, in this case
# the HTML message, is best and preferred.
msg.attach(part1)
msg.attach(part2)
# Send the message via local SMTP server.
s = smtplib.SMTP('smtp.gmail.com: 587')
s.starttls()
s.login(msg['From'], 'Email_Password')
# sendmail function takes 3 arguments: sender's address, recipient's address
# and message to send - here it is sent as one string.
s.sendmail(msg['From'], msg['To'], msg.as_string())
s.quit()
if sg.PopupYesNo('Submitting the hash to the Virustotal API {} {} \nPress Yes to get the Output'.format(pid, proc[13:]), keep_on_top=True) == 'Yes':
p = psutil.Process(pid)
try :
if json_response['positives'] == 0:
sg.Popup('Verbose Information about the Nature of the Process {0}!!'.format(pid),\
'Name of the Process : {0}'.format(name),\
'Hash of the Process : {0}'.format(hash),\
'No. of Checks performed on the Process HASH : {0}'.format(json_response['total']),\
'No. of Positives Result found : {0}'.format(json_response['positives']),\
'Severity Level is : {} '.format("NONE( SAFE )")
)
elif json_response['positives'] < 10 :
sg.Popup('Verbose Information about the Nature of the Process {0}!!'.format(pid), \
'Name of the Process : {0}'.format(name), \
'Hash of the Process : {0}'.format(hash), \
'No. of Checks performed on the Process HASH : {0}'.format(
json_response['total']), \
'No. of Positives Result found : {0}'.format(json_response['positives']), \
'Severity Level is : {} '.format("Very LOW")
)
elif json_response['positives'] in range(10,20):
sg.Popup('Verbose Information about the Nature of the Process {0}!!'.format(pid), \
'Name of the Process : {0}'.format(name), \
'Hash of the Process : {0}'.format(hash), \
'No. of Checks performed on the Process HASH : {0}'.format(
json_response['total']), \
'No. of Positives Result found : {0}'.format(json_response['positives']), \
'Severity Level is : {} '.format("Very LOW")
)
elif json_response['positives'] in range(20,30):
sg.Popup('Verbose Information about the Nature of the Process {0}!!'.format(pid), \
'Name of the Process : {0}'.format(name), \
'Hash of the Process : {0}'.format(hash), \
'No. of Checks performed on the Process HASH : {0}'.format(
json_response['total']), \
'No. of Positives Result found : {0}'.format(json_response['positives']), \
'Severity Level is : {} '.format("LOW")
)
else :
sg.Popup('Verbose Information about the Nature of the Process {0}!!'.format(pid), \
'Name of the Process : {0}'.format(name), \
'Hash of the Process : {0}'.format(hash), \
'No. of Checks performed on the Process HASH : {0}'.format(
json_response['total']), \
'No. of Positives Result found : {0}'.format(json_response['positives']), \
'Severity Level is : {} '.format("HIGH")
)
except :
sg.Popup('Please Check Your Internet Connection........','')
#sg.Popup('About this program', 'Version 1.0', 'PySimpleGUI rocks...\n We are SIH 2019 Team.... :D',
#grab_anywhere=True)
elif button == "_ipadd_":
processes_to_select = values['_processes_']
for proc in processes_to_select :
pid = int(proc[0:5])
p=psutil.Process(pid)
rem_addr = []
conns = p.connections()
for conn in conns:
if len(conn[4]) == 0:
pass
else :
rem_addr.append(conn[4][0])
if len(rem_addr) == 0:
pass
else:
all_res = []
for readdr in rem_addr:
if readdr == "127.0.0.1":
pass
else:
try:
res = requests.get("https://geo.ipify.org/api/v1?apiKey=GENEREATE_APIKEY_FROM_IPIFY&ipAddress="+str(readdr))
j_res = res.json()
all_res.append(j_res)
sg.Popup('Getting the Location Detailing of the Following :', 'Country : {0}'.format(j_res['location']['country']),
'Latitude : {0}'.format(j_res['location']['lat']),
'Longitude : {0}'.format(j_res['location']['lng']),
'Region : {0}'.format(j_res['location']['region']),
'City : {0}'.format(j_res['location']['city'])
)
except:
pass
webbrowser.open("https://maps.google.com/?q=" + str(j_res['location']['lat']) + "," + str(j_res['location']['lng']))
elif button == 'VirusTotalWeb':
processes_to_select = values['_processes_']
for proc in processes_to_select :
pid=int(proc[0:5])
p=psutil.Process(pid)
try:
path= p.exe()
md5= hashlib.md5()
file= path.encode("unicode_escape")
with open(file, 'rb') as f:
while True:
data = f.read(BUF_SIZE)
if not data:
break
md5.update(data)
hash = md5.hexdigest()
params = {
'apikey': "API_KEY",
'resource': hash
}
response = requests.get('https://www.virustotal.com/vtapi/v2/file/report', params=params)
json_response = response.json()
link= json_response['permalink']
except:
link=""
webbrowser.open(link)
elif button == 'Firewall':
os.system("netsh advfirewall set allprofiles state on")
sg.Popup("Firewall is ON")
#processes_to_select = values['_processes_']
#Form(processes_to_select)
elif button == 'uploadfile':
uploadForm()
elif button=='Ok':
FirstForm()
elif button=='Maps':
NextForm(74,-74)
else:
print("Not Found")
if button == ' PID ':
#procs = psutil.process_iter()
#all_procs = [[proc.cpu_percent(), proc.name(), proc.pid, proc.status()] for proc in procs]
#sorted_by_cpu_procs = sorted(all_procs, key=operator.itemgetter(1), reverse=False)
display_list = []
all_procs =[]
for proc in psutil.process_iter():
try :
path = proc.exe()
md5 = hashlib.md5()
file = path.encode("unicode_escape")
with open(file, 'rb') as f:
while True:
data = f.read(BUF_SIZE)
if not data:
break
md5.update(data)
hash = md5.hexdigest()
params = {
'apikey': "API_KEY",
'resource': hash
}
response = requests.get('https://www.virustotal.com/vtapi/v2/file/report', params=params)
json_response = response.json()
total = json_response['total']
positives = json_response['positives']
score = str(positives)+"/"+str(total)
except:
score = "None"
if len(proc.connections()) == 0:
try :
all_procs.append([proc.pid, proc.name(), "Not Live", proc.status(), proc.memory_info().vms/(1024*1024), score, proc.exe()])
except :
all_procs.append([proc.pid, proc.name(), "Not Live", proc.status(), proc.memory_info().vms/(1024*1024), score, ""])
else :
try :
all_procs.append([proc.pid, proc.name(), "Live", proc.status(), proc.memory_info().vms/(1024*1024), score, proc.exe()])
except:
all_procs.append([proc.pid, proc.name(), "Live", proc.status(), proc.memory_info().vms/(1024*1024), score ,""])
sorted_procs = sorted(all_procs, key=operator.itemgetter(0), reverse=False)
for process in sorted_procs:
#display_list.append()
display_list.append('{:5d} {:27s} {:8s} {:6s} {:5.3f} {:5s} {}\n'.format(process[0], process[1], process[2], process[3], process[4], process[5], process[6]))
#list[2].append('safe')
window.FindElement('_processes_').Update(display_list)
#display_list.SetValue(list)
elif button == 'Kill' or button == '_killproc_':
processes_to_kill = values['_processes_']
for proc in processes_to_kill:
pid = int(proc[0:5])
if sg.PopupYesNo('About to kill {} {}'.format(pid, proc[13:]), keep_on_top=True) == 'Yes':
if pid == os.getpid():
raise RuntimeError("I refuse to kill myself")
else :
p = psutil.Process(pid)
'''children = p.children(recursive=True)
for process1 in children:'''
p.kill()
sg.Popup('The Process Number {:5d} was killed!!'.format(pid))
elif button == "Suspend":
processes_to_suspend = values['_processes_']
for proc in processes_to_suspend:
pid = int(proc[0:5])
if sg.PopupYesNo('About to suspend {} {}'.format(pid, proc[13:]), keep_on_top=True) == 'No':
if pid == os.getpid():
raise RuntimeError("I refuse to kill myself")
else :
p = psutil.Process(pid)
'''children = p.children(recursive=True)
for process1 in children:'''
p.suspend()
sg.Popup('The Process Number {:5d} was suspendend!!'.format(pid))
elif button == "_save_" or button == 'Save' :
sg.PopupGetFile('Save File:', #Message to show in the window
default_path='Desktop', #Path browsing should start from
default_extension='.txt', #Which filetype is the default
save_as=True, #Determines which dialog box stype to show
file_types=(("Text Files", "*.TXT*"),), #Which filetypes are displayed
no_window=False, #if True no window is displayed except the dialog box
size=(None,None), #Size of window
button_color=None, #Color of buttons
background_color=None, #Color of window background
text_color=None, #Color of text in window
#icon=DEFAULT_WINDOW_ICON, Icon to show on taskbar
font=None, #Font to use
no_titlebar=False,# If True does not display a titlebar
grab_anywhere=False,# if True can grab window anywhere to move it
keep_on_top=False, #if True window will be on top of others
location=(None,None)) #Location on screen to show window
elif button == ' Name ' or button == '_refresh_':
display_list = []
all_procs = []
for proc in psutil.process_iter():
try:
path = proc.exe()
md5 = hashlib.md5()
file = path.encode("unicode_escape")
with open(file, 'rb') as f:
while True:
data = f.read(BUF_SIZE)
if not data:
break
md5.update(data)
hash = md5.hexdigest()
params = {
'apikey': "API_KEY",
'resource': hash
}
response = requests.get('https://www.virustotal.com/vtapi/v2/file/report', params=params)
json_response = response.json()
total = json_response['total']
positives = json_response['positives']
score = str(positives) + "/" + str(total)
except:
score = "None"
if len(proc.connections()) == 0:
try:
all_procs.append(
[proc.pid, proc.name(), "Not Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, proc.exe()])
except:
all_procs.append(
[proc.pid, proc.name(), "Not Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, ""])
else:
try:
all_procs.append(
[proc.pid, proc.name(), "Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, proc.exe()])
except:
all_procs.append(
[proc.pid, proc.name(), "Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, ""])
sorted_procs = sorted(all_procs, key=operator.itemgetter(1), reverse=False)
for process in sorted_procs:
# display_list.append()
display_list.append(
'{:5d} {:27s} {:8s} {:6s} {:4.2f} {:20s} {}\n'.format(process[0], process[1], process[2],
process[3], process[4], process[5],
process[6]))
# list[2].append('safe')
window.FindElement('_processes_').Update(display_list)
elif button == 'Connections':
display_list = []
all_procs = []
for proc in psutil.process_iter():
try:
path = proc.exe()
md5 = hashlib.md5()
file = path.encode("unicode_escape")
with open(file, 'rb') as f:
while True:
data = f.read(BUF_SIZE)
if not data:
break
md5.update(data)
hash = md5.hexdigest()
params = {
'apikey': "API_KEY",
'resource': hash
}
response = requests.get('https://www.virustotal.com/vtapi/v2/file/report', params=params)
json_response = response.json()
total = json_response['total']
positives = json_response['positives']
score = str(positives) + "/" + str(total)
except:
score = "None"
if len(proc.connections()) == 0:
try:
all_procs.append(
[proc.pid, proc.name(), "Not Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, proc.exe()])
except:
all_procs.append(
[proc.pid, proc.name(), "Not Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, ""])
else:
try:
all_procs.append(
[proc.pid, proc.name(), "Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, proc.exe()])
except:
all_procs.append(
[proc.pid, proc.name(), "Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, ""])
sorted_procs = sorted(all_procs, key=operator.itemgetter(2), reverse=False)
for process in sorted_procs:
# display_list.append()
display_list.append(
'{:5d} {:27s} {:8s} {:6s} {:4.2f} {:20s} {}\n'.format(process[0], process[1], process[2],
process[3], process[4], process[5],
process[6]))
# list[2].append('safe')
window.FindElement('_processes_').Update(display_list)
elif button == 'Status':
display_list = []
all_procs = []
for proc in psutil.process_iter():
try:
path = proc.exe()
md5 = hashlib.md5()
file = path.encode("unicode_escape")
with open(file, 'rb') as f:
while True:
data = f.read(BUF_SIZE)
if not data:
break
md5.update(data)
hash = md5.hexdigest()
params = {
'apikey': "b8acfc47cf0cd9d6bb515722f5c4dad6739f4e1a9669241e39d56d46e2675abb",
'resource': hash
}
response = requests.get('https://www.virustotal.com/vtapi/v2/file/report', params=params)
json_response = response.json()
total = json_response['total']
positives = json_response['positives']
score = str(positives) + "/" + str(total)
except:
score = "None"
if len(proc.connections()) == 0:
try:
all_procs.append(
[proc.pid, proc.name(), "Not Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, proc.exe()])
except:
all_procs.append(
[proc.pid, proc.name(), "Not Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, ""])
else:
try:
all_procs.append(
[proc.pid, proc.name(), "Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, proc.exe()])
except:
all_procs.append(
[proc.pid, proc.name(), "Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, ""])
sorted_procs = sorted(all_procs, key=operator.itemgetter(3), reverse=False)
for process in sorted_procs:
# display_list.append()
display_list.append(
'{:5d} {:27s} {:8s} {:6s} {:4.2f} {:20s} {}\n'.format(process[0], process[1], process[2],
process[3], process[4], process[5],
process[6]))
# list[2].append('safe')
window.FindElement('_processes_').Update(display_list)
elif button == ' Path ' :
display_list = []
all_procs = []
for proc in psutil.process_iter():
try:
path = proc.exe()
md5 = hashlib.md5()
file = path.encode("unicode_escape")
with open(file, 'rb') as f:
while True:
data = f.read(BUF_SIZE)
if not data:
break
md5.update(data)
hash = md5.hexdigest()
params = {
'apikey': "API_KEY",
'resource': hash
}
response = requests.get('https://www.virustotal.com/vtapi/v2/file/report', params=params)
json_response = response.json()
total = json_response['total']
positives = json_response['positives']
score = str(positives) + "/" + str(total)
except:
score = "None"
if len(proc.connections()) == 0:
try:
all_procs.append(
[proc.pid, proc.name(), "Not Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, proc.exe()])
except:
all_procs.append(
[proc.pid, proc.name(), "Not Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, ""])
else:
try:
all_procs.append(
[proc.pid, proc.name(), "Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, proc.exe()])
except:
all_procs.append(
[proc.pid, proc.name(), "Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, ""])
sorted_procs = sorted(all_procs, key=operator.itemgetter(6), reverse=False)
for process in sorted_procs:
# display_list.append()
display_list.append(
'{:5d} {:27s} {:8s} {:6s} {:4.2f} {:20s} {}\n'.format(process[0], process[1], process[2],
process[3], process[4], process[5],
process[6]))
# list[2].append('safe')
window.FindElement('_processes_').Update(display_list)
elif button == " M_usage ":
display_list = []
all_procs = []
for proc in psutil.process_iter():
try:
path = proc.exe()
md5 = hashlib.md5()
file = path.encode("unicode_escape")
with open(file, 'rb') as f:
while True:
data = f.read(BUF_SIZE)
if not data:
break
md5.update(data)
hash = md5.hexdigest()
params = {
'apikey': "API_KEY",
'resource': hash
}
response = requests.get('https://www.virustotal.com/vtapi/v2/file/report', params=params)
json_response = response.json()
total = json_response['total']
positives = json_response['positives']
score = str(positives) + "/" + str(total)
except:
score = "None"
if len(proc.connections()) == 0:
try:
all_procs.append(
[proc.pid, proc.name(), "Not Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, proc.exe()])
except:
all_procs.append(
[proc.pid, proc.name(), "Not Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, ""])
else:
try:
all_procs.append(
[proc.pid, proc.name(), "Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, proc.exe()])
except:
all_procs.append(
[proc.pid, proc.name(), "Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, ""])
sorted_procs = sorted(all_procs, key=operator.itemgetter(4), reverse=False)
for process in sorted_procs:
# display_list.append()
display_list.append(
'{:5d} {:27s} {:8s} {:6s} {:4.2f} {:20s} {}\n'.format(process[0], process[1], process[2],
process[3], process[4], process[5],
process[6]))
# list[2].append('safe')
window.FindElement('_processes_').Update(display_list)
elif button == " Score ":
display_list = []
all_procs = []
for proc in psutil.process_iter():
try:
path = proc.exe()
md5 = hashlib.md5()
file = path.encode("unicode_escape")
with open(file, 'rb') as f:
while True:
data = f.read(BUF_SIZE)
if not data:
break
md5.update(data)
hash = md5.hexdigest()
params = {
'apikey': "API_KEY",
'resource': hash
}
response = requests.get('https://www.virustotal.com/vtapi/v2/file/report', params=params)
json_response = response.json()
total = json_response['total']
positives = json_response['positives']
score = str(positives) + "/" + str(total)
except:
score = "None"
if len(proc.connections()) == 0:
try:
all_procs.append(
[proc.pid, proc.name(), "Not Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, proc.exe()])
except:
all_procs.append(
[proc.pid, proc.name(), "Not Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, ""])
else:
try:
all_procs.append(
[proc.pid, proc.name(), "Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, proc.exe()])
except:
all_procs.append(
[proc.pid, proc.name(), "Live", proc.status(), proc.memory_info().vms / (1024 * 1024),
score, ""])
sorted_procs = sorted(all_procs, key=operator.itemgetter(5), reverse=False)
for process in sorted_procs:
# display_list.append()
display_list.append(
'{:5d} {:27s} {:8s} {:6s} {:4.2f} {:20s} {}\n'.format(process[0], process[1], process[2],
process[3], process[4], process[5],
process[6]))
# list[2].append('safe')
window.FindElement('_processes_').Update(display_list)
elif button == "Web GUI":
os.system("cmd.exe")
elif button == "Maps" :
print("Not found!")
#elif button == "Suspend":
else:
if display_list is not None:
new_output = []
for line in display_list:
if values['_filter_'] in line.lower():
new_output.append(line)
window.FindElement('_processes_').Update(new_output)
if __name__ == "__main__":
save64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAFF0lEQVR42rWVe2xTVRzHf+fe23vb297edm23dXPj4QZkEAYbzwkJmxEG6kACgSgRM4goMAF5yWuJCvM95RVMFIhKELaYYAxRUZHEMBRG0k2Q6QZjr66PtV2723btbXs8HbC4bsH+w0lOzrnnnns+5/v9/c65CB5xQf83YceeSiotReRFUTRijDPIUBpp0+JtDGOzxR5k6joDacEIdHIq9ekbRzf9NiIgq2zjaFZnKkYUPbBIvPIMjJ6WzuXOG2/WaNQ8o1QqEalYpVIhjuNw/Jn04eyVFtxolVBIliNdvdLq398rPz0MYJq9eA3DC589t6IcUrQCeUOBqNEAYAxL8lSg16oHdxUMhcHm9kGPV4KC3Gz44mIjXG9zQygsgz8Ukp1BOd9Sva5pKGDmsy9QCvbU/qpDwNIMtns8SEFR0Of34xUFemTUCQPziD34h2u3UPV3f+BgMIB+2r8GTvzyJ65vdaJQOEwgYeyJoBkNH79SnwhYihjmm92VH4JSocDdPT0oFo1CX8CP187JQmajbhDw7eUG9HbNJRwK9aNrBzfDse/r8dXbDhRXEJLD2A/s1BuH1jckAJ5ZCBR9fsvOA8BzHLTbbUAWIAoCsG1hHmSY9IMW1V6qh72nLgBNvrYc3Q7V5y7DlRYb3FcAEU6YdOvwhr+GAIzTFxUjmrm4bnMlaEgg71i7UJ8kDVj01vKZaJTZOKjgzMWraN+pC1ipYND1I1vhwJlf8ZVm6z2LZBkzgmFc05GNLUMAhsIFs0kM6lat2wFansfNHR3I7XGDjw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