mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Fix for an Issue #316
This commit is contained in:
parent
1073ebc697
commit
712cf4e4db
2 changed files with 13 additions and 13 deletions
|
|
@ -34,7 +34,7 @@ class Crawler(object):
|
|||
def getTargetUrls(self):
|
||||
try:
|
||||
threadData = getCurrentThreadData()
|
||||
threadData.shared.values = oset()
|
||||
threadData.shared.value = oset()
|
||||
|
||||
def crawlThread():
|
||||
threadData = getCurrentThreadData()
|
||||
|
|
@ -82,7 +82,7 @@ class Crawler(object):
|
|||
with kb.locks.value:
|
||||
threadData.shared.deeper.add(url)
|
||||
if re.search(r"(.*?)\?(.+)", url):
|
||||
threadData.shared.values.add(url)
|
||||
threadData.shared.value.add(url)
|
||||
except UnicodeEncodeError: # for non-HTML files
|
||||
pass
|
||||
finally:
|
||||
|
|
@ -121,9 +121,9 @@ class Crawler(object):
|
|||
finally:
|
||||
clearConsoleLine(True)
|
||||
|
||||
if not threadData.shared.values:
|
||||
if not threadData.shared.value:
|
||||
warnMsg = "no usable links found (with GET parameters)"
|
||||
logger.warn(warnMsg)
|
||||
else:
|
||||
for url in threadData.shared.values:
|
||||
for url in threadData.shared.value:
|
||||
kb.targets.add(( url, None, None, None ))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue