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

Skip to content

Commit d2a5548

Browse files
committed
Some more reordering
1 parent 1686611 commit d2a5548

3 files changed

Lines changed: 25 additions & 25 deletions

File tree

lib/core/optiondict.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
"timeout": "float",
4747
"retries": "integer",
4848
"rParam": "string",
49-
"scope": "string",
5049
"safUrl": "string",
5150
"saFreq": "integer",
5251
"skipUrlEncode": "boolean",
5352
"forceSSL": "boolean",
53+
"hpp": "boolean",
5454
"evalCode": "string",
5555
},
5656

@@ -189,6 +189,8 @@
189189
"parseErrors": "boolean",
190190
"pivotColumn": "string",
191191
"saveCmdline": "boolean",
192+
"scope": "string",
193+
"testFilter": "string",
192194
"updateAll": "boolean",
193195
},
194196

@@ -202,12 +204,10 @@
202204
"dependencies": "boolean",
203205
"disableColoring": "boolean",
204206
"googlePage": "integer",
205-
"hpp": "boolean",
206207
"mobile": "boolean",
207208
"pageRank": "boolean",
208209
"purgeOutput": "boolean",
209210
"smart": "boolean",
210-
"testFilter": "string",
211211
"wizard": "boolean",
212212
"verbose": "integer",
213213
},

lib/parse/cmdline.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,6 @@ def cmdLineParser():
155155
request.add_option("--randomize", dest="rParam",
156156
help="Randomly change value for given parameter(s)")
157157

158-
request.add_option("--scope", dest="scope",
159-
help="Regexp to filter targets from provided proxy log")
160-
161158
request.add_option("--safe-url", dest="safUrl",
162159
help="URL address to visit frequently during testing")
163160

@@ -172,6 +169,10 @@ def cmdLineParser():
172169
action="store_true",
173170
help="Force usage of SSL/HTTPS")
174171

172+
request.add_option("--hpp", dest="hpp",
173+
action="store_true",
174+
help="Use HTTP parameter pollution")
175+
175176
request.add_option("--eval", dest="evalCode",
176177
help="Evaluate provided Python code before the request (e.g. \"import hashlib;id2=hashlib.md5(id).hexdigest()\")")
177178

@@ -601,6 +602,12 @@ def cmdLineParser():
601602
action="store_true",
602603
help="Save options to a configuration INI file")
603604

605+
general.add_option("--scope", dest="scope",
606+
help="Regexp to filter targets from provided proxy log")
607+
608+
general.add_option("--test-filter", dest="testFilter",
609+
help="Select tests by payloads and/or titles (e.g. ROW)")
610+
604611
general.add_option("--update", dest="updateAll",
605612
action="store_true",
606613
help="Update sqlmap")
@@ -640,10 +647,6 @@ def cmdLineParser():
640647
miscellaneous.add_option("--gpage", dest="googlePage", type="int",
641648
help="Use Google dork results from specified page number")
642649

643-
miscellaneous.add_option("--hpp", dest="hpp",
644-
action="store_true",
645-
help="Use HTTP parameter pollution")
646-
647650
miscellaneous.add_option("--identify-waf", dest="identifyWaf",
648651
action="store_true",
649652
help="Make a through testing for a WAF/IPS/IDS protection")
@@ -664,9 +667,6 @@ def cmdLineParser():
664667
action="store_true",
665668
help="Conduct through tests only if positive heuristic(s)")
666669

667-
miscellaneous.add_option("--test-filter", dest="testFilter",
668-
help="Select tests by payloads and/or titles (e.g. ROW)")
669-
670670
miscellaneous.add_option("--wizard", dest="wizard",
671671
action="store_true",
672672
help="Simple wizard interface for beginner users")

sqlmap.conf

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,6 @@ retries = 3
132132
# Randomly change value for the given parameter.
133133
rParam =
134134

135-
# Regular expression for filtering targets from provided Burp.
136-
# or WebScarab proxy log.
137-
# Example: (google|yahoo)
138-
scope =
139-
140135
# URL address to visit frequently during testing.
141136
# Example: http://192.168.1.121/index.html
142137
safUrl =
@@ -154,6 +149,10 @@ skipUrlEncode = False
154149
# Valid: True or False
155150
forceSSL = False
156151

152+
# Use HTTP parameter pollution.
153+
# Valid: True or False
154+
hpp = False
155+
157156
# Evaluate provided Python code before the request.
158157
# Example: import hashlib;id2=hashlib.md5(id).hexdigest()
159158
evalCode =
@@ -651,6 +650,14 @@ parseErrors = False
651650
# Pivot column name.
652651
pivotColumn =
653652

653+
# Regular expression for filtering targets from provided Burp.
654+
# or WebScarab proxy log.
655+
# Example: (google|yahoo)
656+
scope =
657+
658+
# Select tests by payloads and/or titles (e.g. ROW)
659+
testFilter =
660+
654661
# Update sqlmap.
655662
# Valid: True or False
656663
updateAll = False
@@ -696,10 +703,6 @@ disableColoring = False
696703
# Default: 1
697704
googlePage = 1
698705

699-
# Use HTTP parameter pollution.
700-
# Valid: True or False
701-
hpp = False
702-
703706
# Make a through testing for a WAF/IPS/IDS protection.
704707
# Valid: True or False
705708
identifyWaf = False
@@ -716,9 +719,6 @@ pageRank = False
716719
# Valid: True or False
717720
smart = False
718721

719-
# Select tests by payloads and/or titles (e.g. ROW)
720-
testFilter =
721-
722722
# Simple wizard interface for beginner users.
723723
# Valid: True or False
724724
wizard = False

0 commit comments

Comments
 (0)