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

Skip to content

Commit e37c227

Browse files
committed
Patch related to #4070
1 parent 14005f4 commit e37c227

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.1.21"
21+
VERSION = "1.4.1.22"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/core/target.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _setRequestParams():
106106
conf.data = ""
107107

108108
if conf.data is not None:
109-
conf.method = HTTPMETHOD.POST if not conf.method or conf.method == HTTPMETHOD.GET else conf.method
109+
conf.method = conf.method or HTTPMETHOD.POST
110110

111111
def process(match, repl):
112112
retVal = match.group(0)
@@ -125,7 +125,7 @@ def process(match, repl):
125125
return retVal
126126

127127
if kb.processUserMarks is None and kb.customInjectionMark in conf.data:
128-
message = "custom injection marker ('%s') found in POST " % kb.customInjectionMark
128+
message = "custom injection marker ('%s') found in %s " % (kb.customInjectionMark, conf.method)
129129
message += "body. Do you want to process it? [Y/n/q] "
130130
choice = readInput(message, default='Y').upper()
131131

@@ -138,7 +138,7 @@ def process(match, repl):
138138
kb.testOnlyCustom = True
139139

140140
if re.search(JSON_RECOGNITION_REGEX, conf.data):
141-
message = "JSON data found in %s data. " % conf.method
141+
message = "JSON data found in %s body. " % conf.method
142142
message += "Do you want to process it? [Y/n/q] "
143143
choice = readInput(message, default='Y').upper()
144144

@@ -162,7 +162,7 @@ def process(match, repl):
162162
kb.postHint = POST_HINT.JSON
163163

164164
elif re.search(JSON_LIKE_RECOGNITION_REGEX, conf.data):
165-
message = "JSON-like data found in %s data. " % conf.method
165+
message = "JSON-like data found in %s body. " % conf.method
166166
message += "Do you want to process it? [Y/n/q] "
167167
choice = readInput(message, default='Y').upper()
168168

@@ -178,7 +178,7 @@ def process(match, repl):
178178
kb.postHint = POST_HINT.JSON_LIKE
179179

180180
elif re.search(ARRAY_LIKE_RECOGNITION_REGEX, conf.data):
181-
message = "Array-like data found in %s data. " % conf.method
181+
message = "Array-like data found in %s body. " % conf.method
182182
message += "Do you want to process it? [Y/n/q] "
183183
choice = readInput(message, default='Y').upper()
184184

@@ -192,7 +192,7 @@ def process(match, repl):
192192
kb.postHint = POST_HINT.ARRAY_LIKE
193193

194194
elif re.search(XML_RECOGNITION_REGEX, conf.data):
195-
message = "SOAP/XML data found in %s data. " % conf.method
195+
message = "SOAP/XML data found in %s body. " % conf.method
196196
message += "Do you want to process it? [Y/n/q] "
197197
choice = readInput(message, default='Y').upper()
198198

@@ -207,7 +207,7 @@ def process(match, repl):
207207
kb.postHint = POST_HINT.SOAP if "soap" in conf.data.lower() else POST_HINT.XML
208208

209209
elif re.search(MULTIPART_RECOGNITION_REGEX, conf.data):
210-
message = "Multipart-like data found in %s data. " % conf.method
210+
message = "Multipart-like data found in %s body. " % conf.method
211211
message += "Do you want to process it? [Y/n/q] "
212212
choice = readInput(message, default='Y').upper()
213213

0 commit comments

Comments
 (0)