-
Notifications
You must be signed in to change notification settings - Fork 9
/
scanner.py
46 lines (31 loc) · 1.02 KB
/
scanner.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
#!/usr/bin/python3
from modules import processor
import subprocess
from modules import slacker
# Friendly name of your target. Eg- uber
target = "example"
# File containing list of top level domains
filename="domains.txt"
# Perform port scanning
portscan=True
#Extra ips or ranges for scan, portscan must be set to true
extra_ips = [] #Strings - CIDR Supported
# Slack Channel name to recieve notifications
channel="general"
# Configure which modules to run
runs = ["subdomains","resolver","probeNtakeover","jsmagic","endpoints","cvescan","favfreak","bugs","dirfuzz","portscan","brutespray"]
# remember to configure slack api token in slacker.py
SlackClient = slacker.SlackClient()
def notify(msg):
SlackClient.sendMessage(msg,channel=channel)
# Configuring
p = processor.processor()
p.targetname = target
p.filename = filename
p.portscan = portscan
p.extra_ips = extra_ips
for run in runs:
p.configure(run=run)
notify("{0} started for {1}".format(run,target))
p.process()
notify("{0} finished for {1}".format(run,target))