-
Notifications
You must be signed in to change notification settings - Fork 221
/
run.py
125 lines (85 loc) · 2.77 KB
/
run.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
#python run.py {domain}
import os
import sys
import telebot
from time import sleep
url = sys.argv[1]
bot = telebot.TeleBot(os.environ['API_KEY'])
chat_id = os.environ['CHAT_ID']
os.system("touch results/{}-output.txt".format(url))
os.system("chmod 777 /app/* -R")
bot.send_message(chat_id, f"Recon started for {url} !")
bot.send_message(chat_id, "[+] If you're not getting the notification on finish, Try restarting dynos\n[+] The Scan time may take longer for larger targets")
#0_index_of_results
os.system(f"bash modules/index.sh {url}")
#1_dnscan
os.system(f"bash modules/dnscan.sh {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#2_clickjacking
os.system(f"python modules/clickjacking {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#3_corstest
os.system(f"python modules/corstest {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#4_firwall_detection
os.system(f"bash modules/firewall.sh {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#5_davtest
os.system(f"bash modules/davtest.sh {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#6_robots_check
os.system(f"bash modules/robots.sh {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#7_subdomain_enumeration
os.system(f"bash modules/subdomains.sh {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#8_dirbrute
os.system(f"bash modules/dirb.sh {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#9_js+link_finder
os.system(f"bash modules/js-finder.sh {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#10_subdomain_takeover
os.system(f"bash modules/subtake.sh {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#11_subdomains_title_cname
os.system(f"bash modules/sub_title_cname.sh {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#12_subdomains_ip_server
os.system(f"bash modules/sub_ip_server.sh {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#13_whois_lookup
os.system(f"bash modules/whois.sh {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#14_shcheck
os.system(f"bash modules/shcheck.sh {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#15_wappalyzer_cli
os.system(f"bash modules/wappy.sh {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#16_urls_gather
os.system(f"bash modules/gather_urls.sh {url}")
os.system('python insert.py {}'.format(url))
sleep(4)
#17_seperating_with_gf_patterns
os.system(f"bash modules/gf_patterns.sh {url}")
os.system('python insert.py {}'.format(url))
###########################################################
bot.send_message(chat_id, f"Recon for {url} is completed ! you can check the results now on website at path /scanned !")
#dumping to database with insert.py
os.system('python insert.py {} last'.format(url))