@@ -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