mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Minor change on banner showing up
This commit is contained in:
parent
0c5965c7b8
commit
e07c92bce5
|
@ -1068,6 +1068,8 @@ def banner():
|
||||||
This function prints sqlmap banner with its version
|
This function prints sqlmap banner with its version
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
if not any(_ in sys.argv for _ in ("--version", "--pickled-options")):
|
||||||
_ = BANNER
|
_ = BANNER
|
||||||
if not getattr(LOGGER_HANDLER, "is_tty", False):
|
if not getattr(LOGGER_HANDLER, "is_tty", False):
|
||||||
_ = re.sub("\033.+?m", "", _)
|
_ = re.sub("\033.+?m", "", _)
|
||||||
|
|
|
@ -85,6 +85,7 @@ def main():
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
setPaths()
|
setPaths()
|
||||||
|
banner()
|
||||||
|
|
||||||
# Store original command line options for possible later restoration
|
# Store original command line options for possible later restoration
|
||||||
cmdLineOptions.update(cmdLineParser().__dict__)
|
cmdLineOptions.update(cmdLineParser().__dict__)
|
||||||
|
@ -97,8 +98,6 @@ def main():
|
||||||
sys.stderr = StdDbOut(conf.taskid, messagetype="stderr")
|
sys.stderr = StdDbOut(conf.taskid, messagetype="stderr")
|
||||||
setRestAPILog()
|
setRestAPILog()
|
||||||
|
|
||||||
banner()
|
|
||||||
|
|
||||||
conf.showTime = True
|
conf.showTime = True
|
||||||
dataToStdout("[!] legal disclaimer: %s\n\n" % LEGAL_DISCLAIMER, forceOutput=True)
|
dataToStdout("[!] legal disclaimer: %s\n\n" % LEGAL_DISCLAIMER, forceOutput=True)
|
||||||
dataToStdout("[*] starting at %s\n\n" % time.strftime("%X"), forceOutput=True)
|
dataToStdout("[*] starting at %s\n\n" % time.strftime("%X"), forceOutput=True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user