mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-26 00:33:14 +03:00
removing --method per request of buawig
This commit is contained in:
parent
1cd483f42f
commit
9f7d666451
|
@ -913,16 +913,8 @@ def __setHTTPMethod():
|
||||||
Check and set the HTTP method to perform HTTP requests through.
|
Check and set the HTTP method to perform HTTP requests through.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if conf.method:
|
if conf.data:
|
||||||
conf.method = conf.method.upper()
|
conf.method = HTTPMETHOD.POST
|
||||||
|
|
||||||
if conf.method not in (HTTPMETHOD.GET, HTTPMETHOD.POST):
|
|
||||||
warnMsg = "'%s' " % conf.method
|
|
||||||
warnMsg += "is an unsupported HTTP method, "
|
|
||||||
warnMsg += "setting to default method, %s" % HTTPMETHOD.GET
|
|
||||||
logger.warn(warnMsg)
|
|
||||||
|
|
||||||
conf.method = HTTPMETHOD.GET
|
|
||||||
else:
|
else:
|
||||||
conf.method = HTTPMETHOD.GET
|
conf.method = HTTPMETHOD.GET
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ optDict = {
|
||||||
},
|
},
|
||||||
|
|
||||||
"Request": {
|
"Request": {
|
||||||
"method": "string",
|
|
||||||
"data": "string",
|
"data": "string",
|
||||||
"cookie": "string",
|
"cookie": "string",
|
||||||
"cookieUrlencode": "boolean",
|
"cookieUrlencode": "boolean",
|
||||||
|
|
|
@ -58,9 +58,6 @@ def cmdLineParser():
|
||||||
request = OptionGroup(parser, "Request", "These options can be used "
|
request = OptionGroup(parser, "Request", "These options can be used "
|
||||||
"to specify how to connect to the target url.")
|
"to specify how to connect to the target url.")
|
||||||
|
|
||||||
request.add_option("--method", dest="method", default="GET",
|
|
||||||
help="HTTP method, GET or POST (default GET)")
|
|
||||||
|
|
||||||
request.add_option("--data", dest="data",
|
request.add_option("--data", dest="data",
|
||||||
help="Data string to be sent through POST")
|
help="Data string to be sent through POST")
|
||||||
|
|
||||||
|
|
|
@ -33,13 +33,7 @@ googleDork =
|
||||||
# These options can be used to specify how to connect to the target url.
|
# These options can be used to specify how to connect to the target url.
|
||||||
[Request]
|
[Request]
|
||||||
|
|
||||||
# HTTP method to perform HTTP requests.
|
# Data string to be sent through POST.
|
||||||
# Valid: GET or POST
|
|
||||||
# Default: GET
|
|
||||||
method = GET
|
|
||||||
|
|
||||||
# Data string to be sent through POST. It is mandatory only when
|
|
||||||
# HTTP method is set to POST.
|
|
||||||
data =
|
data =
|
||||||
|
|
||||||
# HTTP Cookie header.
|
# HTTP Cookie header.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user