-
Notifications
You must be signed in to change notification settings - Fork 18
/
fsociety.py
2081 lines (1752 loc) · 62.5 KB
/
fsociety.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 python2
# Greet's To
# IcoDz - Canejo
# Tool For Hacking
# Author : Manisso
# Modified by @AbirHasan2005
'''
Imports
'''
import sys
import argparse
import os
import httplib
import subprocess
import re
import urllib2
import socket
import urllib
import sys
import json
import telnetlib
import glob
import random
import Queue
import threading
import base64
import time
import ConfigParser
from sys import argv
from commands import *
from getpass import getpass
from xml.dom import minidom
from urlparse import urlparse
from optparse import OptionParser
from time import gmtime, strftime, sleep
'''
Common Functions
'''
class color:
HEADER = '\033[95m'
IMPORTANT = '\33[35m'
NOTICE = '\033[33m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
RED = '\033[91m'
END = '\033[0m'
UNDERLINE = '\033[4m'
LOGGING = '\33[34m'
def clearScr():
os.system('clear')
def yesOrNo():
return (raw_input("Continue Y / N: ") in yes)
'''
Config
'''
installDir = os.path.dirname(os.path.abspath(__file__)) + '/'
configFile = installDir + "/fsociety.cfg"
print(installDir)
config = ConfigParser.RawConfigParser()
config.read(configFile)
toolDir = installDir + config.get('fsociety', 'toolDir')
logDir = installDir + config.get('fsociety', 'logDir')
yes = config.get('fsociety', 'yes').split()
color_random=[color.HEADER,color.IMPORTANT,color.NOTICE,color.OKBLUE,color.OKGREEN,color.WARNING,color.RED,color.END,color.UNDERLINE,color.LOGGING]
random.shuffle(color_random)
fsocietylogo = color_random[0] + '''
d88888b .d8888. .d88b. .o88b. d888888b d88888b d888888b db db
88' 88' YP .8P Y8. d8P Y8 `88' 88 88 `8b d8'
88ooo `8bo. 88 88 8P 88 88ooooo 88 `8bd8'
88 `Y8b. 88 88 8b 88 88 88 88
88 db 8D `8b d8' Y8b d8 .88. 88. 88 88
YP `8888Y' `Y88P' `Y88P' Y888888P Y88888P YP YP
'''
fsocietyPrompt = "Choose an option: "
alreadyInstalled = "Already Installed"
continuePrompt = "\nClick [Enter] to continue"
termsAndConditions = color.NOTICE + '''
I shall not use fsociety to:
(i) upload or otherwise transmit, display or distribute any
content that infringes any trademark, trade secret, copyright
or other proprietary or intellectual property rights of any
person; (ii) upload or otherwise transmit any material that contains
software viruses or any other computer code, files or programs
designed to interrupt, destroy or limit the functionality of any
computer software or hardware or telecommunications equipment;
''' + color.END
mrrobot4 = color.NOTICE + '''
Hello,
As we all know, Mr. Robot 4.0 is comming out - the end of Mr. Robot.
We will update to python3.7 & add all of the new hacking tool of 4.0 later this year
There will be no more updates after the show is done.
This is to keep cannon to the show.))
Thank you for all the sourport over the years, the fsociety team thanks you!
Feel free to join the NEW DISCORD!!!
Anything Mr. Robot will be on the server!
[ https://discord.gg/xB87X9z ]
Thanks for reading,
Zachary, CRO-THEHACKER - Dev'''
'''
Starts Menu Classes
'''
def agreement():
while not config.getboolean("fsociety", "agreement"):
clearScr()
print(termsAndConditions)
print(mrrobot4)
agree = raw_input("You must agree to our terms and conditions first (Y/n) ").lower()
if agree in yes:
config.set('fsociety', 'agreement', 'true')
class fsociety:
def __init__(self):
clearScr()
self.createFolders()
print (fsocietylogo + color.RED + '''
}---------------{+} First Coded By Manisso {+}-------------{
}-------------{+} Modified by @AbirHasan2005 {+}-----------{
}---------{+} GitHub.com/AbirHasan2005/fsociety {+}--------{
''' + color.END + '''
[0]--INSTALL & UPDATE
[1]--Information Gathering
[2]--Password Attacks
[3]--Wireless Testing
[4]--Exploitation Tools
[5]--Sniffing & Spoofing
[6]--Web Hacking
[7]--Private Web Hacking
[8]--Post Exploitation
[11]-Social Links
[99]-EXIT\n
''')
choice = raw_input(fsocietyPrompt)
clearScr()
if choice == "1":
informationGatheringMenu()
elif choice == "2":
passwordAttacksMenu()
elif choice == "3":
wirelessTestingMenu()
elif choice == "4":
exploitationToolsMenu()
elif choice == "5":
sniffingSpoofingMenu()
elif choice == "6":
webHackingMenu()
elif choice == "7":
privateWebHacking()
elif choice == "8":
postExploitationMenu()
elif choice == "0":
self.update()
elif choice == "11":
self.githubContributors()
elif choice == "99":
with open(configFile, 'wb') as configfile:
config.write(configfile)
sys.exit()
elif choice == "\r" or choice == "\n" or choice == "" or choice == " ":
self.__init__()
else:
try:
print(os.system(choice))
except:
pass
self.completed()
def githubContributors(self):
clearScr()
print("\n\n\033[1;95m My Social Links:\n \033[1;92m GitHub:\033[1;96m https://github.com/AbirHasan2005\n \033[1;92m Twitter:\033[1;96m https://twitter.com/AbirHasan2005\n \033[1;92m Facebook:\033[1;96m https://facebook.com/AbirHasan2005\n \033[1;92m Instagram:\033[1;96m https://instagram.com/AbirHasan2005\n")
def createFolders(self):
if not os.path.isdir(toolDir):
os.makedirs(toolDir)
if not os.path.isdir(logDir):
os.makedirs(logDir)
def completed(self):
raw_input("Completed, click ENTER to go back")
self.__init__()
def update(self):
os.system("git clone --depth=1 https://github.com/AbirHasan2005/fsociety.git")
os.system("cd fsociety && bash update.sh")
os.system("fsociety")
class sniffingSpoofingMenu:
menuLogo = '''
.dP"Y8 88b 88 88 888888 888888 88 88b 88 dP""b8
`Ybo." 88Yb88 88 88__ 88__ 88 88Yb88 dP `"
o.`Y8b 88 Y88 88 88"" 88"" 88 88 Y88 Yb "88
8bodP' 88 Y8 88 88 88 88 88 Y8 YboodP
'''
def __init__(self):
clearScr()
print(self.menuLogo)
print(" [1]--SEToolkit - Tool aimed at penetration testing around Social-Engineering")
print(" [2]--SSLtrip - MITM tool that implements SSL stripping attacks")
print(" [3]--pyPISHER - Tool to create a mallicious website for password pishing")
print(" [4]--SMTP Mailer - Tool to send SMTP mail\n ")
print(" [99]-Back To Main Menu \n")
choice6 = raw_input(fsocietyPrompt)
clearScr()
if choice6 == "1":
setoolkit()
elif choice6 == "2":
ssls()
elif choice6 == "3":
pisher()
elif choice6 == "4":
smtpsend()
elif choice6 == "99":
fsociety()
else:
self.__init__()
self.completed()
def completed(self):
raw_input("Completed, click ENTER to go back")
self.__init__()
class webHackingMenu:
menuLogo = '''
Yb dP 888888 88""Yb
Yb db dP 88__ 88__dP
YbdPYbdP 88"" 88""Yb
YP YP 888888 88oodP
'''
def __init__(self):
clearScr()
print(self.menuLogo)
print(" [1]--Drupal Hacking ")
print(" [2]--Inurlbr")
print(" [3]--Wordpress & Joomla Scanner")
print(" [4]--Gravity Form Scanner")
print(" [5]--File Upload Checker")
print(" [6]--Wordpress Exploit Scanner")
print(" [7]--Wordpress Plugins Scanner")
print(" [8]--Shell and Directory Finder")
print(" [9]--Joomla! 1.5 - 3.4.5 remote code execution")
print(" [10]-Vbulletin 5.X remote code execution")
print(" [11]-BruteX - Automatically brute force all services running on a target")
print(" [12]-Arachni - Web Application Security Scanner Framework \n ")
print(" [99]-Back To Main Menu \n")
choiceweb = raw_input(fsocietyPrompt)
clearScr()
if choiceweb == "1":
maine()
elif choiceweb == "2":
ifinurl()
elif choiceweb == '3':
wppjmla()
elif choiceweb == "4":
gravity()
elif choiceweb == "5":
sqlscan()
elif choiceweb == "6":
wpminiscanner()
elif choiceweb == "7":
wppluginscan()
elif choiceweb == "8":
shelltarget()
elif choiceweb == "9":
joomlarce()
elif choiceweb == "10":
vbulletinrce()
elif choiceweb == "11":
brutex()
elif choiceweb == "12":
arachni()
elif choiceweb == "99":
fsociety()
else:
self.__init__()
self.completed()
def completed(self):
raw_input("Completed, click ENTER to go back")
self.__init__()
class privateWebHacking:
menuLogo = '''
88""Yb 88""Yb 88 Yb dP db 888888 888888
88__dP 88__dP 88 Yb dP dPYb 88 88__
88""" 88"Yb 88 YbdP dP__Yb 88 88""
88 88 Yb 88 YP dP""""Yb 88 888888
'''
def __init__(self):
clearScr()
print(self.menuLogo)
target = raw_input("Enter Target IP Address: ")
Fscan(target)
self.completed()
def completed(self):
raw_input("Completed, click ENTER to go back")
self.__init__()
class postExploitationMenu:
menuLogo = '''
88""Yb dP"Yb .dP"Y8 888888
88__dP dP Yb `Ybo." 88
88""" Yb dP o.`Y8b 88
88 YbodP 8bodP' 88
'''
def __init__(self):
clearScr()
print(self.menuLogo)
print(" [1]--Shell Checker")
print(" [2]--POET")
print(" [3]--Phishing Framework \n")
print(" [99]-Return to main menu \n ")
choice11 = raw_input(fsocietyPrompt)
clearScr()
if choice11 == "1":
sitechecker()
elif choice11 == "2":
poet()
elif choice11 == "3":
weeman()
elif choice11 == "99":
fsociety()
else:
self.__init__()
self.completed()
def completed(self):
raw_input("Completed, click ENTER to go back")
self.__init__()
'''
Information Gathering Tools Classes
'''
class informationGatheringMenu:
menuLogo = '''
88 88b 88 888888 dP"Yb
88 88Yb88 88__ dP Yb
88 88 Y88 88"" Yb dP
88 88 Y8 88 YbodP
'''
def __init__(self):
clearScr()
print(self.menuLogo)
print(" [1]--Nmap - Network Mapper")
print(" [2]--Setoolkit")
print(" [3]--Host To IP")
print(" [4]--WPScan")
print(" [5]--CMSmap")
print(" [6]--XSStrike")
print(" [7]--Doork")
print(" [8]--Crips\n ")
print(" [99]-Back To Main Menu \n")
choice2 = raw_input(fsocietyPrompt)
clearScr()
if choice2 == "1":
nmap()
elif choice2 == "2":
setoolkit()
elif choice2 == "3":
host2ip()
elif choice2 == "4":
wpscan()
elif choice2 == "5":
CMSmap()
elif choice2 == "6":
XSStrike()
elif choice2 == "7":
doork()
elif choice2 == "8":
crips()
elif choice2 == "99":
fsociety()
else:
self.__init__()
self.completed()
def completed(self):
raw_input("Completed, click ENTER to go back")
self.__init__()
###### On Hold ######
class nmap:
nmapLogo = '''
88b 88 8b d8 db 88""Yb
88Yb88 88b d88 dPYb 88__dP
88 Y88 88YbdP88 dP__Yb 88"""
88 Y8 88 YY 88 dP""""Yb 88
'''
def __init__(self):
self.installDir = toolDir + "nmap"
self.gitRepo = "https://github.com/nmap/nmap.git"
self.targetPrompt = " Enter Target IP/Subnet/Range/Host: "
if not self.installed():
self.install()
self.run()
else:
self.run()
def installed(self):
return (os.path.isfile("/usr/bin/nmap") or os.path.isfile("/usr/local/bin/nmap"))
def install(self):
os.system("git clone --depth=1 %s %s" %
(self.gitRepo, self.installDir))
os.system("cd %s && ./configure && make && make install" %
self.installDir)
def run(self):
clearScr()
print(self.nmapLogo)
target = raw_input(self.targetPrompt)
self.menu(target)
def menu(self, target):
clearScr()
print(self.nmapLogo)
print(" Nmap scan for: %s\n" % target)
print(" [1]--Simple Scan [-sV]")
print(" [2]--Port Scan [-Pn]")
print(" [3]--Operating System Detection [-A]\n")
print(" [99]-Return to information gathering menu \n")
response = raw_input("nmap ~# ")
clearScr()
logPath = "logs/nmap-" + strftime("%Y-%m-%d_%H:%M:%S", gmtime())
try:
if response == "1":
os.system("nmap -sV -oN %s %s" % (logPath, target))
response = raw_input(continuePrompt)
elif response == "2":
os.system("nmap -Pn -oN %s %s" % (logPath, target))
response = raw_input(continuePrompt)
elif response == "3":
os.system("nmap -A -oN %s %s" % (logPath, target))
response = raw_input(continuePrompt)
elif response == "99":
pass
else:
self.menu(target)
except KeyboardInterrupt:
self.menu(target)
class setoolkit:
def __init__(self):
self.installDir = toolDir + "setoolkit"
self.gitRepo = "https://github.com/trustedsec/social-engineer-toolkit.git"
if not self.installed():
self.install()
self.run()
else:
print(alreadyInstalled)
self.run()
response = raw_input(continuePrompt)
def installed(self):
return (os.path.isfile("/usr/bin/setoolkit"))
def install(self):
os.system("apt-get --force-yes -y install git apache2 python-requests libapache2-mod-php \
python-pymssql build-essential python-pexpect python-pefile python-crypto python-openssl")
os.system("git clone --depth=1 %s %s" %
(self.gitRepo, self.installDir))
os.system("cd %s && python setup.py install" % self.installDir)
def run(self):
os.system("setoolkit")
class host2ip:
host2ipLogo = '''
88 88 dP"Yb .dP"Y8 888888 oP"Yb. 88 88""Yb
88 88 dP Yb `Ybo." 88 "' dP' 88 88__dP
888888 Yb dP o.`Y8b 88 dP' 88 88"""
88 88 YbodP 8bodP' 88 .d8888 88 88
'''
def __init__(self):
clearScr()
print(self.host2ipLogo)
host = raw_input(" Enter a Host: ")
ip = socket.gethostbyname(host)
print(" %s has the IP of %s" % (host, ip))
response = raw_input(continuePrompt)
class wpscan:
wpscanLogo = '''
Yb dP 88""Yb .dP"Y8 dP""b8 db 88b 88
Yb db dP 88__dP `Ybo." dP `" dPYb 88Yb88
YbdPYbdP 88""" o.`Y8b Yb dP__Yb 88 Y88
YP YP 88 8bodP' YboodP dP""""Yb 88 Y8
'''
def __init__(self):
self.installDir = toolDir + "wpscan"
self.gitRepo = "https://github.com/wpscanteam/wpscan.git"
if not self.installed():
self.install()
clearScr()
print(self.wpscanLogo)
target = raw_input(" Enter a Target: ")
self.menu(target)
def installed(self):
return (os.path.isdir(self.installDir))
def install(self):
os.system("git clone --depth=1 %s %s" %
(self.gitRepo, self.installDir))
def menu(self, target):
clearScr()
print(self.wpscanLogo)
print(" WPScan for: %s\n" % target)
print(" [1]--Username Enumeration [--enumerate u]")
print(" [2]--Plugin Enumeration [--enumerate p]")
print(" [3]--All Enumeration Tools [--enumerate]\n")
print(" [99]-Return to information gathering menu \n")
response = raw_input("wpscan ~# ")
clearScr()
logPath = "../../logs/wpscan-" + \
strftime("%Y-%m-%d_%H:%M:%S", gmtime()) + ".txt"
wpscanOptions = "--no-banner --random-agent --url %s" % target
try:
if response == "1":
os.system(
"ruby tools/wpscan/wpscan.rb %s --enumerate u --log %s" % (wpscanOptions, logPath))
response = raw_input(continuePrompt)
elif response == "2":
os.system(
"ruby tools/wpscan/wpscan.rb %s --enumerate p --log %s" % (wpscanOptions, logPath))
response = raw_input(continuePrompt)
elif response == "3":
os.system(
"ruby tools/wpscan/wpscan.rb %s --enumerate --log %s" % (wpscanOptions, logPath))
response = raw_input(continuePrompt)
elif response == "99":
pass
else:
self.menu(target)
except KeyboardInterrupt:
self.menu(target)
class CMSmap:
CMSmapLogo = '''
dP""b8 8b d8 .dP"Y8 8b d8 db 88""Yb
dP `" 88b d88 `Ybo." 88b d88 dPYb 88__dP
Yb 88YbdP88 o.`Y8b 88YbdP88 dP__Yb 88"""
YboodP 88 YY 88 8bodP' 88 YY 88 dP""""Yb 88
'''
def __init__(self):
self.installDir = toolDir + "CMSmap"
self.gitRepo = "https://github.com/Dionach/CMSmap.git"
if not self.installed():
self.install()
clearScr()
print(self.CMSmapLogo)
target = raw_input(" Enter a Target: ")
self.run(target)
response = raw_input(continuePrompt)
def installed(self):
return (os.path.isdir(self.installDir))
def install(self):
os.system("git clone --depth=1 %s %s" %
(self.gitRepo, self.installDir))
def run(self, target):
logPath = "logs/cmsmap-" + \
strftime("%Y-%m-%d_%H:%M:%S", gmtime()) + ".txt"
try:
os.system("python %s/cmsmap.py -t %s -o %s" %
(self.installDir, target, logPath))
except:
pass
class XSStrike:
XSStrikeLogo = '''
Yb dP .dP"Y8 .dP"Y8 888888 88""Yb 88 88 dP 888888
YbdP `Ybo." `Ybo." 88 88__dP 88 88odP 88__
dPYb o.`Y8b o.`Y8b 88 88"Yb 88 88"Yb 88""
dP Yb 8bodP' 8bodP' 88 88 Yb 88 88 Yb 888888
'''
def __init__(self):
self.installDir = toolDir + "XSStrike"
self.gitRepo = "https://github.com/UltimateHackers/XSStrike.git"
if not self.installed():
self.install()
clearScr()
print(self.XSStrikeLogo)
self.run()
response = raw_input(continuePrompt)
def installed(self):
return (os.path.isdir(self.installDir))
def install(self):
os.system("git clone --depth=1 %s %s" %
(self.gitRepo, self.installDir))
os.system("pip install -r %s/requirements.txt" % self.installDir)
def run(self):
os.system("python %s/xsstrike" % self.installDir)
class doork:
doorkLogo = '''
8888b. dP"Yb dP"Yb 88""Yb 88 dP
8I Yb dP Yb dP Yb 88__dP 88odP
8I dY Yb dP Yb dP 88"Yb 88"Yb
8888Y" YbodP YbodP 88 Yb 88 Yb
'''
def __init__(self):
self.installDir = toolDir + "doork"
self.gitRepo = "https://github.com/AeonDave/doork.git"
if not self.installed():
self.install()
clearScr()
print(self.doorkLogo)
target = raw_input(" Enter a Target: ")
self.run(target)
response = raw_input(continuePrompt)
def installed(self):
return (os.path.isdir(self.installDir))
def install(self):
os.system("git clone --depth=1 %s %s" %
(self.gitRepo, self.installDir))
os.system("pip install beautifulsoup4 requests Django==1.11")
def run(self, target):
if not "http://" in target:
target = "http://" + target
logPath = "logs/doork-" + \
strftime("%Y-%m-%d_%H:%M:%S", gmtime()) + ".txt"
try:
os.system("python %s/doork.py -t %s -o %s" %
(self.installDir, target, logPath))
except KeyboardInterrupt:
pass
class crips:
cripsLogo = '''
dP""b8 88""Yb 88 88""Yb .dP"Y8
dP `" 88__dP 88 88__dP `Ybo."
Yb 88"Yb 88 88""" o.`Y8b
YboodP 88 Yb 88 88 8bodP'
'''
def __init(self):
self.installDir = toolDir + "Crips"
self.gitRepo = "https://github.com/Manisso/Crips.git"
if not self.installed():
self.install()
clearScr()
print(self.cripsLogo)
self.run()
def installed(self):
return (os.path.isdir(self.installDir) or os.path.isdir("/usr/share/doc/Crips"))
def install(self):
os.system("git clone --depth=1 %s %s" %
(self.gitRepo, self.installDir))
os.system("bash %s/install.sh" % self.installDir)
def run(self):
try:
os.system("crips")
except:
pass
'''
Password Attack Tools Classes
'''
class passwordAttacksMenu:
menuLogo = '''
88""Yb db .dP"Y8 .dP"Y8 Yb dP 8888b.
88__dP dPYb `Ybo." `Ybo." Yb db dP 8I Yb
88""" dP__Yb o.`Y8b o.`Y8b YbdPYbdP 8I dY
88 dP""""Yb 8bodP' 8bodP' YP YP 8888Y"
'''
def __init__(self):
clearScr()
print(self.menuLogo)
print(" [1]--Cupp - Common User Passwords Profiler")
print(
" [2]--BruteX - Automatically bruteforces all services running on a target\n")
print(" [99]-Back To Main Menu \n")
choice3 = raw_input("Enter Command: ")
clearScr()
if choice3 == "1":
cupp()
elif choice3 == "2":
brutex()
elif choice3 == "99":
fsociety()
else:
self.__init__()
self.completed()
def completed(self):
raw_input("Completed, click return to go back")
self.__init__()
class cupp:
cuppLogo = '''
dP""b8 88 88 88""Yb 88""Yb
dP `" 88 88 88__dP 88__dP
Yb Y8 8P 88""" 88"""
YboodP `YbodP' 88 88
'''
def __init__(self):
self.installDir = toolDir + "cupp"
self.gitRepo = "https://github.com/Mebus/cupp.git"
if not self.installed():
self.install()
clearScr()
print(self.cuppLogo)
self.run()
def installed(self):
return (os.path.isdir(self.installDir))
def install(self):
os.system("git clone --depth=1 %s %s" %
(self.gitRepo, self.installDir))
def run(self):
os.system("python %s/cupp.py -i" % self.installDir)
'''
Wireless Testing Tools Classes
'''
class wirelessTestingMenu:
menuLogo = '''
Yb dP 88 88""Yb 888888 88 888888 .dP"Y8 .dP"Y8
Yb db dP 88 88__dP 88__ 88 88__ `Ybo." `Ybo."
YbdPYbdP 88 88"Yb 88"" 88 .o 88"" o.`Y8b o.`Y8b
YP YP 88 88 Yb 888888 88ood8 888888 8bodP' 8bodP'
'''
def __init__(self):
clearScr()
print(self.menuLogo)
print(" [1]--reaver ")
print(" [2]--pixiewps")
print(" [3]--Bluetooth Honeypot GUI Framework \n")
print(" [99]-Back To The Main Menu \n")
choice4 = raw_input(fsocietyPrompt)
clearScr()
if choice4 == "1":
reaver()
elif choice4 == "2":
pixiewps()
elif choice4 == "3":
bluepot()
elif choice4 == "99":
fsociety()
else:
self.__init__()
self.completed()
def completed(self):
raw_input("Completed, click return to go back")
self.__init__()
class reaver:
def __init__(self):
self.installDir = toolDir + "reaver"
self.gitRepo = "https://github.com/t6x/reaver-wps-fork-t6x.git"
if not self.installed():
self.install()
clearScr()
self.run()
def installed(self):
return (os.path.isdir(self.installDir))
def install(self):
os.system("git clone --depth=1 %s %s" %
(self.gitRepo, self.installDir))
os.system(
"apt-get -y install build-essential libpcap-dev sqlite3 libsqlite3-dev aircrack-ng pixiewps")
os.system("cd %s/" % self.installDir)
os.system("./configure")
os.system("make")
os.system("sudo make install")
def run(self):
os.system("reaver --help")
class pixiewps:
def __init__(self):
self.installDir = toolDir + "pixiewps"
self.gitRepo = "https://github.com/wiire/pixiewps.git"
if not self.installed():
self.install()
clearScr()
self.run()
def installed(self):
return (os.path.isdir(self.installDir))
def install(self):
os.system("git clone --depth=1 %s %s" %
(self.gitRepo, self.installDir))
os.system("apt-get -y install build-essential")
os.system("make")
os.system("sudo make install")
def run(self):
os.system("pixiewps --help")
class bluepot:
def __init__(self):
self.installDir = toolDir + "bluepot"
if not self.installed():
self.install()
clearScr()
self.run()
def installed(self):
return (os.path.isdir(self.installDir))
def install(self):
os.system("apt-get install libbluetooth-dev")
os.system(
"wget -O - https://github.com/andrewmichaelsmith/bluepot/raw/master/bin/bluepot-0.1.tar.gz | tar xfz -")
os.system("mv bluepot/ %s/" % self.installDir)
def run(self):
os.system("sudo java -jar %s/BluePot-0.1.jar" % self.installDir)
'''
Exploitation Tools Classes
'''
class exploitationToolsMenu:
menuLogo = '''
888888 Yb dP 88""Yb 88
88__ YbdP 88__dP 88
88"" dPYb 88""" 88 .o
888888 dP Yb 88 88ood8
'''
def __init__(self):
clearScr()
print(self.menuLogo)
print(" [1]--ATSCAN")
print(" [2]--sqlmap")
print(" [3]--Shellnoob")
print(" [4]--commix")
print(" [5]--FTP Auto Bypass")
print(" [6]--JBoss-Autopwn")
print(" [7]--Blind SQL Automatic Injection And Exploit")
print(" [8]--Bruteforce the Android Passcode given the hash and salt")
print(" [9]--Joomla SQL injection Scanner \n ")
print(" [99]-Go Back To Main Menu \n")
choice5 = raw_input(fsocietyPrompt)
clearScr()
if choice5 == "1":
atscan()
elif choice5 == "2":
sqlmap()
elif choice5 == "3":
shellnoob()
elif choice5 == "4":
commix()
elif choice5 == "5":
gabriel()
elif choice5 == "6":
jboss()
elif choice5 == "7":
bsqlbf()
elif choice5 == "8":
androidhash()
elif choice5 == "9":
cmsfew()
elif choice5 == "99":
fsociety()
else:
self.__init__()
self.completed()
def completed(self):
raw_input("Completed, click return to go back")
self.__init__()
class brutex:
def __init__(self):
self.installDir = toolDir + "brutex"
self.gitRepo = "https://github.com/1N3/BruteX.git"
if not self.installed():
self.install()
clearScr()
self.run()
def installed(self):
return (os.path.isdir(self.installDir))
def install(self):
os.system("git clone --depth=1 %s %s" %
(self.gitRepo, self.installDir))
if not os.path.isdir("/usr/share/brutex"):
os.makedirs("/usr/share/brutex")
os.system("cd %s && chmod +x install.sh && ./install.sh" % self.installDir)
def run(self):
target = raw_input("Enter Target IP: ")
os.system("brutex %s" % target)
class arachni:
def __init__(self):
self.installDir = toolDir + "arachni"
self.gitRepo = "https://github.com/Arachni/arachni.git"
if not self.installed():
self.install()
clearScr()
self.run()
def installed(self):
return (os.path.isdir(self.installDir))
def install(self):
os.system("git clone --depth=1 %s %s" %
(self.gitRepo, self.installDir))