@@ -22,34 +22,42 @@ def parse(self, argv):
22
22
def setup_parser ():
23
23
parser = ArgumentParser ()
24
24
25
- parser .add_argument ("-t" ,
26
- dest = "target_hosts" ,
27
- required = True ,
28
- help = "Set a target range of addresses to target. Ex 10.11.1.1-255" )
29
-
30
- parser .add_argument ("-o" ,
31
- dest = "output_directory" ,
32
- required = True ,
33
- help = "Set the output directory. Ex /root/Documents/labs/" )
34
-
35
- parser .add_argument ("-w" ,
36
- dest = "wordlist" ,
37
- required = False ,
38
- help = "Set the wordlist to use for generated commands. Ex /usr/share/wordlist.txt" ,
39
- default = False )
40
-
41
- parser .add_argument ("-p" ,
42
- dest = "port" ,
43
- required = False ,
44
- help = "Set the port to use. Leave blank to use discovered ports. "
45
- "Useful to force virtual host scanning on non-standard webserver ports." ,
46
- default = 80 )
47
-
48
- parser .add_argument ("--pingsweep" ,
49
- dest = "ping_sweep" ,
50
- action = "store_true" ,
51
- help = "Write a new target.txt by performing a ping sweep and discovering live hosts." ,
52
- default = False )
25
+ parser .add_argument (
26
+ "-t" ,
27
+ dest = "target_hosts" ,
28
+ required = True ,
29
+ help = "Set a target range of addresses to target. Ex 10.11.1.1-255" )
30
+
31
+ parser .add_argument (
32
+ "-o" ,
33
+ dest = "output_directory" ,
34
+ required = True ,
35
+ help = "Set the output directory. Ex /root/Documents/labs/" )
36
+
37
+ parser .add_argument (
38
+ "-w" ,
39
+ dest = "wordlist" ,
40
+ required = False ,
41
+ help = "Set the wordlist to use for generated commands."
42
+ " Ex /usr/share/wordlist.txt" ,
43
+ default = False )
44
+
45
+ parser .add_argument (
46
+ "-p" ,
47
+ dest = "port" ,
48
+ required = False ,
49
+ help = "Set the port to use. Leave blank to use discovered ports. "
50
+ "Useful to force virtual host "
51
+ "scanning on non-standard webserver ports." ,
52
+ default = 80 )
53
+
54
+ parser .add_argument (
55
+ "--pingsweep" ,
56
+ dest = "ping_sweep" ,
57
+ action = "store_true" ,
58
+ help = "Write a new target.txt by performing "
59
+ "a ping sweep and discovering live hosts." ,
60
+ default = False )
53
61
54
62
parser .add_argument ("--dns" , "--dnssweep" ,
55
63
dest = "find_dns_servers" ,
@@ -63,52 +71,63 @@ def setup_parser():
63
71
help = "Perform service scan over targets." ,
64
72
default = False )
65
73
66
- parser .add_argument ("--hostnames" ,
67
- dest = "hostname_scan" ,
68
- action = "store_true" ,
69
- help = "Attempt to discover target hostnames and write to 0-name.txt and hostnames.txt." ,
70
- default = False )
74
+ parser .add_argument (
75
+ "--hostnames" ,
76
+ dest = "hostname_scan" ,
77
+ action = "store_true" ,
78
+ help = "Attempt to discover target hostnames and "
79
+ "write to 0-name.txt and hostnames.txt." ,
80
+ default = False )
71
81
72
82
parser .add_argument ("--snmp" ,
73
83
dest = "perform_snmp_walk" ,
74
84
action = "store_true" ,
75
85
help = "Perform service scan over targets." ,
76
86
default = False )
77
87
78
- parser .add_argument ("--quick" ,
79
- dest = "quick" ,
80
- action = "store_true" ,
81
- required = False ,
82
- help = "Move to the next target after performing a quick scan and writing "
83
- "first-round recommendations." ,
84
- default = False )
85
-
86
- parser .add_argument ("--virtualhosts" ,
87
- dest = "virtualhosts" ,
88
- action = "store_true" ,
89
- required = False ,
90
- help = "Attempt to discover virtual hosts using the specified wordlist." ,
91
- default = False )
92
-
93
- parser .add_argument ('--ignore-http-codes' ,
94
- dest = 'ignore_http_codes' ,
95
- type = str ,
96
- help = 'Comma separated list of http codes to ignore with virtual host scans.' ,
97
- default = '404' )
98
-
99
- parser .add_argument ('--ignore-content-length' ,
100
- dest = 'ignore_content_length' ,
101
- type = int ,
102
- help = 'Ignore content lengths of specificed amount. '
103
- 'This may become useful when a server returns a static page on '
104
- 'every virtual host guess.' ,
105
- default = 0 )
106
-
107
- parser .add_argument ("--quiet" ,
108
- dest = "quiet" ,
109
- action = "store_true" ,
110
- help = "Supress banner and headers to limit to comma dilimeted results only." ,
111
- default = False )
88
+ parser .add_argument (
89
+ "--quick" ,
90
+ dest = "quick" ,
91
+ action = "store_true" ,
92
+ required = False ,
93
+ help = "Move to the next target after "
94
+ "performing a quick scan and writing "
95
+ "first-round recommendations." ,
96
+ default = False )
97
+
98
+ parser .add_argument (
99
+ "--virtualhosts" ,
100
+ dest = "virtualhosts" ,
101
+ action = "store_true" ,
102
+ required = False ,
103
+ help = "Attempt to discover virtual hosts "
104
+ "using the specified wordlist." ,
105
+ default = False )
106
+
107
+ parser .add_argument (
108
+ '--ignore-http-codes' ,
109
+ dest = 'ignore_http_codes' ,
110
+ type = str ,
111
+ help = 'Comma separated list of http '
112
+ 'codes to ignore with virtual host scans.' ,
113
+ default = '404' )
114
+
115
+ parser .add_argument (
116
+ '--ignore-content-length' ,
117
+ dest = 'ignore_content_length' ,
118
+ type = int ,
119
+ help = 'Ignore content lengths of specificed amount. '
120
+ 'This may become useful when a server returns a static page on '
121
+ 'every virtual host guess.' ,
122
+ default = 0 )
123
+
124
+ parser .add_argument (
125
+ "--quiet" ,
126
+ dest = "quiet" ,
127
+ action = "store_true" ,
128
+ help = "Supress banner and headers to limit "
129
+ "to comma dilimeted results only." ,
130
+ default = False )
112
131
113
132
parser .add_argument ("--no-udp" ,
114
133
dest = "no_udp_service_scan" ,
0 commit comments