Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1686611

Browse files
committed
Another minor update
1 parent 08fbfda commit 1686611

3 files changed

Lines changed: 34 additions & 34 deletions

File tree

lib/core/optiondict.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
"proxy": "string",
3939
"pCred": "string",
4040
"ignoreProxy": "boolean",
41+
"tor": "boolean",
42+
"torPort": "integer",
43+
"torType": "string",
44+
"checkTor": "boolean",
4145
"delay": "float",
4246
"timeout": "float",
4347
"retries": "integer",
@@ -173,7 +177,6 @@
173177
"trafficFile": "string",
174178
"batch": "boolean",
175179
"charset": "string",
176-
"checkTor": "boolean",
177180
"crawlDepth": "integer",
178181
"csvDel": "string",
179182
"dumpFormat": "string",
@@ -187,9 +190,6 @@
187190
"pivotColumn": "string",
188191
"saveCmdline": "boolean",
189192
"updateAll": "boolean",
190-
"tor": "boolean",
191-
"torPort": "integer",
192-
"torType": "string",
193193
},
194194

195195
"Miscellaneous": {

lib/parse/cmdline.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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")

sqlmap.conf

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,22 @@ pCred =
9898
# Valid: True or False
9999
ignoreProxy = False
100100

101+
# Use Tor anonymity network.
102+
# Valid: True or False
103+
tor = False
104+
105+
# Set Tor proxy port other than default.
106+
# Valid: integer
107+
# torPort =
108+
109+
# Set Tor proxy type.
110+
# Valid: HTTP, SOCKS4, SOCKS5
111+
torType = HTTP
112+
113+
# Check to see if Tor is used properly.
114+
# Valid: True or False
115+
checkTor = False
116+
101117
# Delay in seconds between each HTTP request.
102118
# Valid: float
103119
# Default: 0
@@ -591,10 +607,6 @@ batch = False
591607
# Force character encoding used for data retrieval.
592608
charset =
593609

594-
# Check to see if Tor is used properly.
595-
# Valid: True or False
596-
checkTor = False
597-
598610
# Crawl the website starting from the target URL.
599611
# Valid: integer
600612
# Default: 0
@@ -639,18 +651,6 @@ parseErrors = False
639651
# Pivot column name.
640652
pivotColumn =
641653

642-
# Use Tor anonymity network.
643-
# Valid: True or False
644-
tor = False
645-
646-
# Set Tor proxy port other than default.
647-
# Valid: integer
648-
# torPort =
649-
650-
# Set Tor proxy type.
651-
# Valid: HTTP, SOCKS4, SOCKS5
652-
torType = HTTP
653-
654654
# Update sqlmap.
655655
# Valid: True or False
656656
updateAll = False

0 commit comments

Comments
 (0)