-
Notifications
You must be signed in to change notification settings - Fork 600
/
reconf.py
executable file
·66 lines (55 loc) · 1.67 KB
/
reconf.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
#!/usr/bin/env python
import ConfigParser
def set_vars():
global iprange
global fulliprng
global rootpth
global labpath
global rsltpth
global exampth
global nmappth
global httpnse
global wordlst
global moderlst
global shortlst
global vulns
global usrlst
global pwdlst
global fzzlst
global opth
global olst
global nsepth
global uagnt1
global uagnt2
global uagnt3
global uagnt4
global uagnt5
global iframe1
config = ConfigParser.ConfigParser()
config.read('recon.conf')
iprange = config.get('hosts','iprange')
fulliprng = config.get('hosts','fulliprng')
opth = config.get('hosts','opth')
olst = config.get('hosts','olst')
rootpth = config.get('base','rootpth')
labpath = config.get('base','labpath')
basepth = config.get('paths','basepth')
rsltpth = config.get('paths','rsltpth')
exampth = config.get('paths','exampth')
nmappth = config.get('paths','nmappth')
wordlst = config.get('wordlist','wordlst')
shortlst = config.get('wordlist','shortlst')
moderlst = config.get('wordlist','moderlst')
vulns = config.get('vuln','vulns')
httpnse = config.get('nmapscripts','httpnse')
nsepth = config.get('nmapscripts','nsepth')
usrlst = config.get('crack','usrlst')
pwdlst = config.get('crack','pwdlst')
fzzlst = config.get('crack','fzzlst')
uagnt1 = config.get('useragent','uagnt1')
uagnt2 = config.get('useragent','uagnt2')
uagnt3 = config.get('useragent','uagnt3')
uagnt4 = config.get('useragent','uagnt4')
uagnt5 = config.get('useragent','uagnt5')
iframe1 = config.get('nastycode','iframe1')
set_vars()