mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Implementation for an Issue #2
This commit is contained in:
parent
8dcad46805
commit
fc1b05bec9
6 changed files with 51 additions and 1 deletions
|
|
@ -344,6 +344,12 @@ def _setRequestParams():
|
|||
errMsg += "within the given request data"
|
||||
raise SqlmapGenericException(errMsg)
|
||||
|
||||
if conf.csrfToken:
|
||||
if not any(conf.csrfToken in _ for _ in (conf.paramDict.get(PLACE.GET, {}), conf.paramDict.get(PLACE.POST, {}))):
|
||||
errMsg = "CSRF protection token parameter '%s' not " % conf.csrfToken
|
||||
errMsg += "found in provided GET and/or POST values"
|
||||
raise SqlmapGenericException(errMsg)
|
||||
|
||||
def _setHashDB():
|
||||
"""
|
||||
Check and set the HashDB SQLite file for query resume functionality.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue