mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-05 12:23:25 +03:00
Fix for an Issue #438
This commit is contained in:
parent
0cb3ce5765
commit
6e0aaafdea
|
@ -6,6 +6,7 @@ See the file 'doc/COPYING' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import bdb
|
import bdb
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
@ -21,6 +22,7 @@ from lib.controller.controller import start
|
||||||
from lib.core.common import banner
|
from lib.core.common import banner
|
||||||
from lib.core.common import dataToStdout
|
from lib.core.common import dataToStdout
|
||||||
from lib.core.common import getUnicode
|
from lib.core.common import getUnicode
|
||||||
|
from lib.core.common import setColor
|
||||||
from lib.core.common import setPaths
|
from lib.core.common import setPaths
|
||||||
from lib.core.common import weAreFrozen
|
from lib.core.common import weAreFrozen
|
||||||
from lib.core.data import cmdLineOptions
|
from lib.core.data import cmdLineOptions
|
||||||
|
@ -115,7 +117,8 @@ def main():
|
||||||
print
|
print
|
||||||
errMsg = unhandledExceptionMessage()
|
errMsg = unhandledExceptionMessage()
|
||||||
logger.critical(errMsg)
|
logger.critical(errMsg)
|
||||||
traceback.print_exc()
|
kb.stickyLevel = logging.CRITICAL
|
||||||
|
dataToStdout(setColor(traceback.format_exc()))
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
dataToStdout("\n[*] shutting down at %s\n\n" % time.strftime("%X"), forceOutput=True)
|
dataToStdout("\n[*] shutting down at %s\n\n" % time.strftime("%X"), forceOutput=True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user