mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-28 04:20:58 +00:00
Minor patches
This commit is contained in:
parent
ea1f089220
commit
4e2438dc1e
6 changed files with 57 additions and 12 deletions
|
|
@ -80,7 +80,10 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
return 0, None
|
||||
|
||||
if charsetType is None and conf.charset:
|
||||
asciiTbl = sorted(set(ord(_) for _ in conf.charset))
|
||||
# conf.charset is fixed for the whole run; compute the table once, not per bisection() call
|
||||
if kb.cache.charsetAsciiTbl is None:
|
||||
kb.cache.charsetAsciiTbl = sorted(set(ord(_) for _ in conf.charset))
|
||||
asciiTbl = kb.cache.charsetAsciiTbl
|
||||
else:
|
||||
asciiTbl = getCharset(charsetType)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue