Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 73a3db6

Browse files
committed
Fix for an Issue #862
1 parent 60f2764 commit 73a3db6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/core/option.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def _parseWebScarabLog(content):
219219

220220
if not(conf.scope and not re.search(conf.scope, url, re.I)):
221221
if not kb.targets or url not in addedTargetUrls:
222-
kb.targets.add((url, method, None, cookie))
222+
kb.targets.add((url, method, None, cookie, None))
223223
addedTargetUrls.add(url)
224224

225225
def _parseBurpLog(content):
@@ -561,14 +561,14 @@ def retrieve():
561561
for link in links:
562562
link = urldecode(link)
563563
if re.search(r"(.*?)\?(.+)", link):
564-
kb.targets.add((link, conf.method, conf.data, conf.cookie))
564+
kb.targets.add((link, conf.method, conf.data, conf.cookie, None))
565565
elif re.search(URI_INJECTABLE_REGEX, link, re.I):
566566
if kb.data.onlyGETs is None and conf.data is None and not conf.googleDork:
567567
message = "do you want to scan only results containing GET parameters? [Y/n] "
568568
test = readInput(message, default="Y")
569569
kb.data.onlyGETs = test.lower() != 'n'
570570
if not kb.data.onlyGETs or conf.googleDork:
571-
kb.targets.add((link, conf.method, conf.data, conf.cookie))
571+
kb.targets.add((link, conf.method, conf.data, conf.cookie, None))
572572

573573
return links
574574

@@ -618,7 +618,7 @@ def _setBulkMultipleTargets():
618618
for line in getFileItems(conf.bulkFile):
619619
if re.match(r"[^ ]+\?(.+)", line, re.I) or CUSTOM_INJECTION_MARK_CHAR in line:
620620
found = True
621-
kb.targets.add((line.strip(), None, None, None))
621+
kb.targets.add((line.strip(), None, None, None, None))
622622

623623
if not found and not conf.forms and not conf.crawlDepth:
624624
warnMsg = "no usable links found (with GET parameters)"
@@ -635,7 +635,7 @@ def _setSitemapTargets():
635635
for item in parseSitemap(conf.sitemapUrl):
636636
if re.match(r"[^ ]+\?(.+)", item, re.I):
637637
found = True
638-
kb.targets.add((item.strip(), None, None, None))
638+
kb.targets.add((item.strip(), None, None, None, None))
639639

640640
if not found and not conf.forms and not conf.crawlDepth:
641641
warnMsg = "no usable links found (with GET parameters)"

0 commit comments

Comments
 (0)