Skip to content

Commit 07ae377

Browse files
committed
Minor patch (some middleware doesn't like switching from GET to POST)
1 parent 4a355b9 commit 07ae377

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/controller/checks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,11 +1367,10 @@ def checkWaf():
13671367
retVal = False
13681368
payload = "%d %s" % (randomInt(), IPS_WAF_CHECK_PAYLOAD)
13691369

1370+
place = PLACE.GET
13701371
if PLACE.URI in conf.parameters:
1371-
place = PLACE.POST
13721372
value = "%s=%s" % (randomStr(), agent.addPayloadDelimiters(payload))
13731373
else:
1374-
place = PLACE.GET
13751374
value = "" if not conf.parameters.get(PLACE.GET) else conf.parameters[PLACE.GET] + DEFAULT_GET_POST_DELIMITER
13761375
value += "%s=%s" % (randomStr(), agent.addPayloadDelimiters(payload))
13771376

lib/core/settings.py

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

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

0 commit comments

Comments
 (0)