mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-09 08:00:36 +03:00
Style update
This commit is contained in:
parent
996e882e78
commit
6433be8b3d
|
@ -150,7 +150,7 @@ proxyHandler = urllib2.BaseHandler()
|
||||||
redirectHandler = SmartRedirectHandler()
|
redirectHandler = SmartRedirectHandler()
|
||||||
rangeHandler = HTTPRangeHandler()
|
rangeHandler = HTTPRangeHandler()
|
||||||
|
|
||||||
def __urllib2Opener():
|
def _urllib2Opener():
|
||||||
"""
|
"""
|
||||||
This function creates the urllib2 OpenerDirector.
|
This function creates the urllib2 OpenerDirector.
|
||||||
"""
|
"""
|
||||||
|
@ -1300,9 +1300,9 @@ def _cleanupOptions():
|
||||||
width = getConsoleWidth()
|
width = getConsoleWidth()
|
||||||
|
|
||||||
if conf.eta:
|
if conf.eta:
|
||||||
conf.progressWidth = width-26
|
conf.progressWidth = width - 26
|
||||||
else:
|
else:
|
||||||
conf.progressWidth = width-46
|
conf.progressWidth = width - 46
|
||||||
|
|
||||||
if conf.testParameter:
|
if conf.testParameter:
|
||||||
conf.testParameter = urldecode(conf.testParameter)
|
conf.testParameter = urldecode(conf.testParameter)
|
||||||
|
@ -2087,7 +2087,7 @@ def init(inputOptions=AttribDict(), overrideOptions=False):
|
||||||
_setSafeUrl()
|
_setSafeUrl()
|
||||||
_setGoogleDorking()
|
_setGoogleDorking()
|
||||||
_setBulkMultipleTargets()
|
_setBulkMultipleTargets()
|
||||||
__urllib2Opener()
|
_urllib2Opener()
|
||||||
_checkTor()
|
_checkTor()
|
||||||
_setCrawler()
|
_setCrawler()
|
||||||
_findPageForms()
|
_findPageForms()
|
||||||
|
|
|
@ -16,21 +16,13 @@ def cleanupVals(text, tag):
|
||||||
text = text.split(',')
|
text = text.split(',')
|
||||||
|
|
||||||
if isinstance(text, basestring):
|
if isinstance(text, basestring):
|
||||||
if text.isdigit():
|
text = int(text) if text.isdigit() else str(text)
|
||||||
text = int(text)
|
|
||||||
else:
|
|
||||||
text = str(text)
|
|
||||||
|
|
||||||
elif isinstance(text, list):
|
elif isinstance(text, list):
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
for t in text:
|
for _ in text:
|
||||||
if t.isdigit():
|
text[count] = int(_) if _.isdigit() else str(_)
|
||||||
t = int(t)
|
|
||||||
else:
|
|
||||||
t = str(t)
|
|
||||||
|
|
||||||
text[count] = t
|
|
||||||
count += 1
|
count += 1
|
||||||
|
|
||||||
if len(text) == 1 and tag not in ("clause", "where"):
|
if len(text) == 1 and tag not in ("clause", "where"):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user