Fix for an Issue #100

This commit is contained in:
Miroslav Stampar 2012-07-16 23:28:01 +02:00
parent ffbbb10abb
commit c96e44b30c

View File

@ -538,14 +538,10 @@ def __setBulkMultipleTargets():
errMsg += "does not exist" errMsg += "does not exist"
raise sqlmapFilePathException, errMsg raise sqlmapFilePathException, errMsg
f = open(conf.bulkFile, 'r') for line in getFileItems(conf.bulkFile):
for line in f.xreadlines():
if re.search(r"[^ ]+\?(.+)", line, re.I): if re.search(r"[^ ]+\?(.+)", line, re.I):
kb.targetUrls.add((line.strip(), None, None, None)) kb.targetUrls.add((line.strip(), None, None, None))
f.close()
def __findPageForms(): def __findPageForms():
if not conf.forms or conf.crawlDepth: if not conf.forms or conf.crawlDepth:
return return