mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-05-13 17:06:53 +00:00
Implementation for an Issue #832
This commit is contained in:
parent
57eb19377e
commit
7278af01ee
7 changed files with 124 additions and 20 deletions
12
sqlmap.py
12
sqlmap.py
|
|
@ -33,6 +33,7 @@ from lib.core.data import logger
|
|||
from lib.core.data import paths
|
||||
from lib.core.common import unhandledExceptionMessage
|
||||
from lib.core.exception import SqlmapBaseException
|
||||
from lib.core.exception import SqlmapShellQuitException
|
||||
from lib.core.exception import SqlmapSilentQuitException
|
||||
from lib.core.exception import SqlmapUserQuitException
|
||||
from lib.core.option import initOptions
|
||||
|
|
@ -101,7 +102,10 @@ def main():
|
|||
except (SqlmapSilentQuitException, bdb.BdbQuit):
|
||||
pass
|
||||
|
||||
except SqlmapBaseException, ex:
|
||||
except SqlmapShellQuitException:
|
||||
cmdLineOptions.sqlmapShell = False
|
||||
|
||||
except SqlmapBaseException as ex:
|
||||
errMsg = getUnicode(ex.message)
|
||||
logger.critical(errMsg)
|
||||
sys.exit(1)
|
||||
|
|
@ -138,6 +142,12 @@ def main():
|
|||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
if cmdLineOptions.get("sqlmapShell"):
|
||||
cmdLineOptions.clear()
|
||||
conf.clear()
|
||||
kb.clear()
|
||||
main()
|
||||
|
||||
if hasattr(conf, "api"):
|
||||
try:
|
||||
conf.database_cursor.disconnect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue