@@ -86,7 +86,7 @@ def _setRequestParams():
8686 raise SqlmapSyntaxException (errMsg )
8787
8888 if conf .data is not None :
89- conf .method = HTTPMETHOD .POST
89+ conf .method = HTTPMETHOD .POST if not conf . method or conf . method == HTTPMETHOD . GET else conf . method
9090
9191 def process (match , repl ):
9292 retVal = match .group (0 )
@@ -103,7 +103,7 @@ def process(match, repl):
103103 return retVal
104104
105105 if re .search (JSON_RECOGNITION_REGEX , conf .data ):
106- message = "JSON like data found in POST data. "
106+ message = "JSON like data found in %s data. " % conf . method
107107 message += "Do you want to process it? [Y/n/q] "
108108 test = readInput (message , default = "Y" )
109109 if test and test [0 ] in ("q" , "Q" ):
@@ -115,7 +115,7 @@ def process(match, repl):
115115 kb .postHint = POST_HINT .JSON
116116
117117 elif re .search (SOAP_RECOGNITION_REGEX , conf .data ):
118- message = "SOAP/XML like data found in POST data. "
118+ message = "SOAP/XML like data found in %s data. " % conf . method
119119 message += "Do you want to process it? [Y/n/q] "
120120 test = readInput (message , default = "Y" )
121121 if test and test [0 ] in ("q" , "Q" ):
@@ -126,7 +126,7 @@ def process(match, repl):
126126 kb .postHint = POST_HINT .SOAP if "soap" in conf .data .lower () else POST_HINT .XML
127127
128128 elif re .search (MULTIPART_RECOGNITION_REGEX , conf .data ):
129- message = "Multipart like data found in POST data. "
129+ message = "Multipart like data found in %s data. " % conf . method
130130 message += "Do you want to process it? [Y/n/q] "
131131 test = readInput (message , default = "Y" )
132132 if test and test [0 ] in ("q" , "Q" ):
0 commit comments