mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Minor cosmetic fixes
This commit is contained in:
parent
2bbe0c9ba6
commit
1674142d82
|
@ -87,18 +87,20 @@ def checkCharEncoding(encoding):
|
|||
|
||||
if ';' in encoding:
|
||||
encoding = encoding[:encoding.find(';')]
|
||||
#http://philip.html5.org/data/charsets-2.html
|
||||
|
||||
# http://philip.html5.org/data/charsets-2.html
|
||||
if encoding in translate:
|
||||
encoding = translate[encoding]
|
||||
elif encoding.startswith('cp-'):
|
||||
encoding = 'cp%s' % encoding[3:]
|
||||
elif encoding.startswith('windows') and not encoding.startswith('windows-'):
|
||||
encoding = 'windows-%s' % encoding[7:]
|
||||
|
||||
try:
|
||||
codecs.lookup(encoding)
|
||||
except LookupError:
|
||||
warnMsg = "unknown charset '%s'. " % encoding
|
||||
warnMsg += "please report by e-mail to sqlmap-users@lists.sourceforge.net."
|
||||
warnMsg += "Please report by e-mail to sqlmap-users@lists.sourceforge.net."
|
||||
|
||||
logger.warn(warnMsg)
|
||||
encoding = conf.dataEncoding
|
||||
|
|
|
@ -93,7 +93,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
progress = ProgressBar(maxValue=length)
|
||||
progressTime = []
|
||||
|
||||
if numThreads is not None:
|
||||
if numThreads > 1:
|
||||
debugMsg = "starting %d thread%s" % (numThreads, ("s" if numThreads > 1 else ""))
|
||||
logger.debug(debugMsg)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user