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

Skip to content

Commit c96e44b

Browse files
committed
Fix for an Issue #100
1 parent ffbbb10 commit c96e44b

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/core/option.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -538,14 +538,10 @@ def __setBulkMultipleTargets():
538538
errMsg += "does not exist"
539539
raise sqlmapFilePathException, errMsg
540540

541-
f = open(conf.bulkFile, 'r')
542-
543-
for line in f.xreadlines():
541+
for line in getFileItems(conf.bulkFile):
544542
if re.search(r"[^ ]+\?(.+)", line, re.I):
545543
kb.targetUrls.add((line.strip(), None, None, None))
546544

547-
f.close()
548-
549545
def __findPageForms():
550546
if not conf.forms or conf.crawlDepth:
551547
return

0 commit comments

Comments
 (0)