@@ -127,6 +127,20 @@ def cmdLineParser():
127127 request .add_option ("--ignore-proxy" , dest = "ignoreProxy" , action = "store_true" ,
128128 help = "Ignore system default HTTP proxy" )
129129
130+ request .add_option ("--tor" , dest = "tor" ,
131+ action = "store_true" ,
132+ help = "Use Tor anonymity network" )
133+
134+ request .add_option ("--tor-port" , dest = "torPort" ,
135+ help = "Set Tor proxy port other than default" )
136+
137+ request .add_option ("--tor-type" , dest = "torType" ,
138+ help = "Set Tor proxy type (HTTP (default), SOCKS4 or SOCKS5)" )
139+
140+ request .add_option ("--check-tor" , dest = "checkTor" ,
141+ action = "store_true" ,
142+ help = "Check to see if Tor is used properly" )
143+
130144 request .add_option ("--delay" , dest = "delay" , type = "float" ,
131145 help = "Delay in seconds between each HTTP request" )
132146
@@ -541,10 +555,6 @@ def cmdLineParser():
541555 general .add_option ("--charset" , dest = "charset" ,
542556 help = "Force character encoding used for data retrieval" )
543557
544- general .add_option ("--check-tor" , dest = "checkTor" ,
545- action = "store_true" ,
546- help = "Check to see if Tor is used properly" )
547-
548558 general .add_option ("--crawl" , dest = "crawlDepth" , type = "int" ,
549559 help = "Crawl the website starting from the target URL" )
550560
@@ -591,16 +601,6 @@ def cmdLineParser():
591601 action = "store_true" ,
592602 help = "Save options to a configuration INI file" )
593603
594- general .add_option ("--tor" , dest = "tor" ,
595- action = "store_true" ,
596- help = "Use Tor anonymity network" )
597-
598- general .add_option ("--tor-port" , dest = "torPort" ,
599- help = "Set Tor proxy port other than default" )
600-
601- general .add_option ("--tor-type" , dest = "torType" ,
602- help = "Set Tor proxy type (HTTP (default), SOCKS4 or SOCKS5)" )
603-
604604 general .add_option ("--update" , dest = "updateAll" ,
605605 action = "store_true" ,
606606 help = "Update sqlmap" )
0 commit comments