mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-21 15:41:54 +00:00
Fix for --jwt not able to confirm weaknesses when invalid tokens are answered with HTTP 401/403
This commit is contained in:
parent
6fb39709f2
commit
60dcd8bbb0
2 changed files with 6 additions and 1 deletions
|
|
@ -85,6 +85,10 @@ def _send(token):
|
|||
skipUrlEncode = conf.skipUrlEncode
|
||||
conf.skipUrlEncode = True
|
||||
|
||||
# Note: a rejected token is commonly answered with HTTP 401/403 - that is an oracle answer here, not a connection problem
|
||||
ignoreCode = conf.ignoreCode
|
||||
conf.ignoreCode = list(set((ignoreCode or []) + [401, 403]))
|
||||
|
||||
if conf.delay:
|
||||
time.sleep(conf.delay)
|
||||
|
||||
|
|
@ -110,6 +114,7 @@ def _send(token):
|
|||
return None
|
||||
finally:
|
||||
conf.skipUrlEncode = skipUrlEncode
|
||||
conf.ignoreCode = ignoreCode
|
||||
|
||||
return page
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue