diff --git a/lib/core/option.py b/lib/core/option.py index d91b46907..293b7b8e4 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -538,14 +538,10 @@ def __setBulkMultipleTargets(): errMsg += "does not exist" raise sqlmapFilePathException, errMsg - f = open(conf.bulkFile, 'r') - - for line in f.xreadlines(): + for line in getFileItems(conf.bulkFile): if re.search(r"[^ ]+\?(.+)", line, re.I): kb.targetUrls.add((line.strip(), None, None, None)) - f.close() - def __findPageForms(): if not conf.forms or conf.crawlDepth: return