mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 05:31:32 +00:00
Minor refactoring
This commit is contained in:
@@ -56,6 +56,7 @@ from lib.core.common import getSafeExString
|
||||
from lib.core.common import hashDBRetrieve
|
||||
from lib.core.common import hashDBWrite
|
||||
from lib.core.common import normalizeUnicode
|
||||
from lib.core.common import openFile
|
||||
from lib.core.common import paths
|
||||
from lib.core.common import readInput
|
||||
from lib.core.common import singleTimeLogMessage
|
||||
@@ -597,7 +598,7 @@ def storeHashesToFile(attack_dict):
|
||||
infoMsg = "writing hashes to a temporary file '%s' " % filename
|
||||
logger.info(infoMsg)
|
||||
|
||||
with open(filename, "w+") as f:
|
||||
with openFile(filename, "w+") as f:
|
||||
for item in items:
|
||||
f.write(item)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user