mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
Updating --beep functionality (ML request)
This commit is contained in:
parent
16f8e4c8ba
commit
fdc8e664df
|
@ -43,6 +43,7 @@ from xml.dom import minidom
|
|||
from xml.sax import parse
|
||||
from xml.sax import SAXParseException
|
||||
|
||||
from extra.beep.beep import beep
|
||||
from extra.cloak.cloak import decloak
|
||||
from extra.safe2bin.safe2bin import safecharencode
|
||||
from lib.core.bigarray import BigArray
|
||||
|
@ -931,6 +932,10 @@ def readInput(message, default=None, checkBatch=True):
|
|||
retVal = default
|
||||
else:
|
||||
logging._acquireLock()
|
||||
|
||||
if conf.get("beep"):
|
||||
beep()
|
||||
|
||||
dataToStdout("\r%s" % message, forceOutput=True, bold=True)
|
||||
kb.prependFlag = False
|
||||
|
||||
|
|
|
@ -689,7 +689,7 @@ def cmdLineParser():
|
|||
help="Set question answers (e.g. \"quit=N,follow=N\")")
|
||||
|
||||
miscellaneous.add_option("--beep", dest="beep", action="store_true",
|
||||
help="Make a beep sound when SQL injection is found")
|
||||
help="Beep on question and/or when SQL injection is found")
|
||||
|
||||
miscellaneous.add_option("--cleanup", dest="cleanup",
|
||||
action="store_true",
|
||||
|
|
|
@ -721,7 +721,7 @@ alert =
|
|||
# Set question answers (e.g. "quit=N,follow=N").
|
||||
answers =
|
||||
|
||||
# Make a beep sound when SQL injection is found.
|
||||
# Beep on question and/or when SQL injection is found.
|
||||
# Valid: True or False
|
||||
beep = False
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user