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

Skip to content

Commit a193205

Browse files
committed
minor update regarding requestFile option
1 parent 8817b28 commit a193205

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

lib/core/optiondict.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"url": "string",
2929
"list": "string",
3030
"googleDork": "string",
31-
"configFile": "string"
31+
"configFile": "string",
32+
"requestFile": "string"
3233
},
3334

3435
"Request": {
@@ -48,8 +49,7 @@
4849
"delay": "float",
4950
"timeout": "float",
5051
"retries": "integer",
51-
"scope": "string",
52-
"requestFile": "string"
52+
"scope": "string"
5353
},
5454

5555
"Injection": {

lib/parse/cmdline.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def cmdLineParser():
5959
target.add_option("-c", dest="configFile",
6060
help="Load options from a configuration INI file")
6161

62+
target.add_option("-r", dest="requestFile",
63+
help="Load HTTP request from a file")
64+
6265
# Request options
6366
request = OptionGroup(parser, "Request", "These options can be used "
6467
"to specify how to connect to the target url.")
@@ -121,9 +124,6 @@ def cmdLineParser():
121124
request.add_option("--scope", dest="scope",
122125
help="Regexp to filter targets from provided proxy log")
123126

124-
request.add_option("-r", dest="requestFile",
125-
help="Load HTTP request from a file")
126-
127127
# Injection options
128128
injection = OptionGroup(parser, "Injection", "These options can be "
129129
"used to specify which parameters to test "

sqlmap.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ list =
1717
# Example: +ext:php +inurl:"&id=" +intext:"powered by "
1818
googleDork =
1919

20+
# Load HTTP request from a file
21+
# Example (file content): POST /login.jsp HTTP/1.1\nUser-Agent: Mozilla/4.0\n\nuserid=joe&password=guessme
22+
requestFile =
23+
2024
[Request]
2125

2226
# HTTP method to perform HTTP requests.
@@ -99,10 +103,6 @@ retries = 3
99103
# Example: (google|yahoo)
100104
scope =
101105

102-
# Load HTTP request from a file
103-
# Example (file content): POST /login.jsp HTTP/1.1\nUser-Agent: Mozilla/4.0\n\nuserid=joe&password=guessme
104-
requestFile =
105-
106106
[Injection]
107107

108108
# Testable parameter(s) comma separated. By default all GET/POST/Cookie

0 commit comments

Comments
 (0)