Updating --beep functionality (ML request)

This commit is contained in:
Miroslav Stampar 2015-07-13 23:55:46 +02:00
parent 16f8e4c8ba
commit fdc8e664df
3 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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",

View File

@ -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