From c96e44b30cf91fcb53c01aca60a8b8b625005adb Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 16 Jul 2012 23:28:01 +0200 Subject: [PATCH] Fix for an Issue #100 --- lib/core/option.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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