mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-25 11:23:44 +03:00
Minor patch
This commit is contained in:
parent
2f325e9bc5
commit
6bcf9987a6
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
||||||
from thirdparty import six
|
from thirdparty import six
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.3.5.70"
|
VERSION = "1.3.5.71"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
@ -397,8 +397,12 @@ def main():
|
||||||
conf.hashDB.flush(True)
|
conf.hashDB.flush(True)
|
||||||
|
|
||||||
if conf.get("harFile"):
|
if conf.get("harFile"):
|
||||||
with openFile(conf.harFile, "w+b") as f:
|
try:
|
||||||
json.dump(conf.httpCollector.obtain(), fp=f, indent=4, separators=(',', ': '))
|
with openFile(conf.harFile, "w+b") as f:
|
||||||
|
json.dump(conf.httpCollector.obtain(), fp=f, indent=4, separators=(',', ': '))
|
||||||
|
except SqlmapBaseException as ex:
|
||||||
|
errMsg = getSafeExString(ex)
|
||||||
|
logger.critical(errMsg)
|
||||||
|
|
||||||
if conf.get("api"):
|
if conf.get("api"):
|
||||||
conf.databaseCursor.disconnect()
|
conf.databaseCursor.disconnect()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user