Skip to content

Commit f969dd8

Browse files
committed
Dirty patch for #5901
1 parent 9ed5652 commit f969dd8

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

data/txt/sha256sums.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ c4bfb493a03caf84dd362aec7c248097841de804b7413d0e1ecb8a90c8550bc0 lib/core/readl
186186
d1bd70c1a55858495c727fbec91e30af267459c8f64d50fabf9e4ee2c007e920 lib/core/replication.py
187187
1d0f80b0193ac5204527bfab4bde1a7aee0f693fd008e86b4b29f606d1ef94f3 lib/core/revision.py
188188
d2eb8e4b05ac93551272b3d4abfaf5b9f2d3ac92499a7704c16ed0b4f200db38 lib/core/session.py
189-
8fb2ee9cdf1f5b47eb51407a83fd876a5e44ef9235c04edf1f9263fad7869507 lib/core/settings.py
189+
14c12cfb91fec08a446545c7006dc19aed9b5e800d4ff1e615aa453af713e773 lib/core/settings.py
190190
1c5eab9494eb969bc9ce118a2ea6954690c6851cbe54c18373c723b99734bf09 lib/core/shell.py
191191
4eea6dcf023e41e3c64b210cb5c2efc7ca893b727f5e49d9c924f076bb224053 lib/core/subprocessng.py
192192
cdd352e1331c6b535e780f6edea79465cb55af53aa2114dcea0e8bf382e56d1a lib/core/target.py
@@ -206,7 +206,7 @@ cfd4857ce17e0a2da312c18dcff28aefaa411f419b4e383b202601c42de40eec lib/parse/head
206206
8baab6407b129985bf0acbea17c6a02d3a1b33b81fc646ce6c780d77fe2cc854 lib/parse/payloads.py
207207
d7082e4a5937f65cbb4862701bad7d4fbc096a826621ba7eab92e52e48ebd6d7 lib/parse/sitemap.py
208208
0f52f3c1d1f1322a91c98955bd8dc3be80964d8b3421d453a0e73a523c9cfcbf lib/request/basicauthhandler.py
209-
fbbbdd4d6220b98e0f665b04763e827cae18e772652c67cff5e70557167ed7ca lib/request/basic.py
209+
18cb22d4dabdcc8e3381baf66edd52e74ad2d2067d0116e134a94ffc950c054e lib/request/basic.py
210210
fdb4a9f2ca9d01480c3eb115f6fdf8d89f8ff0506c56a223421b395481527670 lib/request/chunkedhandler.py
211211
bb8a06257d170b268c66dcbd3c0fbe013de52eed1e63bb68caa112af5b9f8ca9 lib/request/comparison.py
212212
26fda3422995eae2e02313c016d8a5e0dc8235e7406fe094ebdb149742859b0e lib/request/connect.py

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from thirdparty import six
2020

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

lib/request/basic.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,15 @@ def processResponse(page, responseHeaders, code=None, status=None):
395395

396396
with kb.locks.identYwaf:
397397
identYwaf.non_blind.clear()
398-
if identYwaf.non_blind_check(rawResponse, silent=True):
399-
for waf in set(identYwaf.non_blind):
400-
if waf not in kb.identifiedWafs:
401-
kb.identifiedWafs.add(waf)
402-
errMsg = "WAF/IPS identified as '%s'" % identYwaf.format_name(waf)
403-
singleTimeLogMessage(errMsg, logging.CRITICAL)
398+
try:
399+
if identYwaf.non_blind_check(rawResponse, silent=True):
400+
for waf in set(identYwaf.non_blind):
401+
if waf not in kb.identifiedWafs:
402+
kb.identifiedWafs.add(waf)
403+
errMsg = "WAF/IPS identified as '%s'" % identYwaf.format_name(waf)
404+
singleTimeLogMessage(errMsg, logging.CRITICAL)
405+
except SystemError as ex:
406+
singleTimeWarnMessage("internal error occurred in WAF/IPS detection ('%s')" % getSafeExString(ex))
404407

405408
if kb.originalPage is None:
406409
for regex in (EVENTVALIDATION_REGEX, VIEWSTATE_REGEX):

0 commit comments

Comments
 (0)