mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +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 parse
|
||||||
from xml.sax import SAXParseException
|
from xml.sax import SAXParseException
|
||||||
|
|
||||||
|
from extra.beep.beep import beep
|
||||||
from extra.cloak.cloak import decloak
|
from extra.cloak.cloak import decloak
|
||||||
from extra.safe2bin.safe2bin import safecharencode
|
from extra.safe2bin.safe2bin import safecharencode
|
||||||
from lib.core.bigarray import BigArray
|
from lib.core.bigarray import BigArray
|
||||||
|
@ -931,6 +932,10 @@ def readInput(message, default=None, checkBatch=True):
|
||||||
retVal = default
|
retVal = default
|
||||||
else:
|
else:
|
||||||
logging._acquireLock()
|
logging._acquireLock()
|
||||||
|
|
||||||
|
if conf.get("beep"):
|
||||||
|
beep()
|
||||||
|
|
||||||
dataToStdout("\r%s" % message, forceOutput=True, bold=True)
|
dataToStdout("\r%s" % message, forceOutput=True, bold=True)
|
||||||
kb.prependFlag = False
|
kb.prependFlag = False
|
||||||
|
|
||||||
|
|
|
@ -689,7 +689,7 @@ def cmdLineParser():
|
||||||
help="Set question answers (e.g. \"quit=N,follow=N\")")
|
help="Set question answers (e.g. \"quit=N,follow=N\")")
|
||||||
|
|
||||||
miscellaneous.add_option("--beep", dest="beep", action="store_true",
|
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",
|
miscellaneous.add_option("--cleanup", dest="cleanup",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
|
|
|
@ -721,7 +721,7 @@ alert =
|
||||||
# Set question answers (e.g. "quit=N,follow=N").
|
# Set question answers (e.g. "quit=N,follow=N").
|
||||||
answers =
|
answers =
|
||||||
|
|
||||||
# Make a beep sound when SQL injection is found.
|
# Beep on question and/or when SQL injection is found.
|
||||||
# Valid: True or False
|
# Valid: True or False
|
||||||
beep = False
|
beep = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user