mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-27 11:09:51 +00:00
Minor code refactoring
This commit is contained in:
parent
862cc9ac53
commit
e73e06069b
6 changed files with 16 additions and 11 deletions
|
|
@ -25,6 +25,7 @@ except ImportError, _:
|
|||
|
||||
from lib.controller.controller import start
|
||||
from lib.core.common import banner
|
||||
from lib.core.common import dataToStdout
|
||||
from lib.core.common import getUnicode
|
||||
from lib.core.common import setPaths
|
||||
from lib.core.common import weAreFrozen
|
||||
|
|
@ -64,7 +65,7 @@ def main():
|
|||
banner()
|
||||
cmdLineOptions = cmdLineParser()
|
||||
|
||||
print "[*] starting at: %s\n" % time.strftime("%X")
|
||||
dataToStdout("[*] starting at: %s\n\n" % time.strftime("%X"), forceOutput=True)
|
||||
|
||||
try:
|
||||
init(cmdLineOptions)
|
||||
|
|
@ -112,7 +113,7 @@ def main():
|
|||
else:
|
||||
closeDumper(True)
|
||||
|
||||
print "\n[*] shutting down at: %s\n" % time.strftime("%X")
|
||||
dataToStdout("\n[*] shutting down at: %s\n\n" % time.strftime("%X"), forceOutput=True)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue