mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-11 19:13:12 +00:00
Update for #2597
This commit is contained in:
parent
aef5d6667f
commit
1678b606a2
10 changed files with 230 additions and 345 deletions
|
|
@ -15,6 +15,7 @@ import bdb
|
|||
import distutils
|
||||
import glob
|
||||
import inspect
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
|
|
@ -40,6 +41,7 @@ try:
|
|||
from lib.core.common import getSafeExString
|
||||
from lib.core.common import getUnicode
|
||||
from lib.core.common import maskSensitiveData
|
||||
from lib.core.common import openFile
|
||||
from lib.core.common import setPaths
|
||||
from lib.core.common import weAreFrozen
|
||||
from lib.core.data import cmdLineOptions
|
||||
|
|
@ -327,6 +329,10 @@ def main():
|
|||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
if conf.harFile:
|
||||
with openFile(conf.harFile, "w+b") as f:
|
||||
f.write(json.dumps(conf.httpCollector.obtain(), indent=4, separators=(',', ': ')))
|
||||
|
||||
if cmdLineOptions.get("sqlmapShell"):
|
||||
cmdLineOptions.clear()
|
||||
conf.clear()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue