mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-30 21:41:03 +00:00
Minor fix
This commit is contained in:
parent
7774c73291
commit
fd7eaf107b
7 changed files with 52 additions and 12 deletions
|
|
@ -73,6 +73,15 @@ def bootstrap():
|
|||
import logging
|
||||
logging.getLogger("sqlmapLog").setLevel(logging.CRITICAL + 1)
|
||||
|
||||
# Some console output bypasses the logger entirely and goes straight through dataToStdout():
|
||||
# the \r-progress lines ("[INFO] retrieved: ...", "[INFO] cracked password ..."), and the echo
|
||||
# of batch-auto-answered readInput() prompts (the fingerprint-mismatch prompt, the LIKE/exact
|
||||
# and common-wordlist choices, ...). dataToStdout() only writes forced output or when
|
||||
# kb.wizardMode is False, and readInput() echoes with forceOutput=not kb.wizardMode - so setting
|
||||
# wizardMode keeps the unittest report to just dots. wizardMode is read ONLY by dataToStdout/
|
||||
# readInput (plus the interactive wizard flow, unused here), so this has no effect on results.
|
||||
kb.wizardMode = True
|
||||
|
||||
sys.argv = _orig_argv # restore so unittest's arg parsing works
|
||||
_BOOTSTRAPPED = True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue