mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
one bug fix for Host header (value should be without port number); one improvement for --tables - when no tables ask user if he wants to brute force them; one tweak - adding kb.ignoreTimeout for --tables
This commit is contained in:
parent
2ea613b170
commit
9b2623514a
3 changed files with 34 additions and 4 deletions
|
|
@ -2573,3 +2573,19 @@ def isBinaryData(value):
|
|||
if isinstance(value, basestring):
|
||||
retVal = reduce(lambda x, y: x or not (y in string.printable or ord(y) > 255), value, False)
|
||||
return retVal
|
||||
|
||||
def isNoneValue(value):
|
||||
"""
|
||||
Returns whether the value contains implicit 'None' value
|
||||
"""
|
||||
|
||||
if isinstance(value, basestring):
|
||||
return value == "None"
|
||||
elif isinstance(value, list):
|
||||
return value == [None]
|
||||
elif isinstance(value, tuple):
|
||||
return value == (None)
|
||||
elif isinstance(value, dict):
|
||||
return len(value) == 1 and any(map(lambda x: x in value, [None, "None"]))
|
||||
else:
|
||||
return value is None
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ class Connect:
|
|||
if kb.proxyAuthHeader:
|
||||
headers[HTTPHEADER.PROXY_AUTHORIZATION] = kb.proxyAuthHeader
|
||||
|
||||
headers[HTTPHEADER.HOST] = host or urlparse.urlparse(url).netloc
|
||||
headers[HTTPHEADER.HOST] = host or urlparse.urlparse(url).netloc.split(':')[0]
|
||||
|
||||
if auxHeaders:
|
||||
for key, item in auxHeaders.items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue