Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fdc8e66

Browse files
committed
Updating --beep functionality (ML request)
1 parent 16f8e4c commit fdc8e66

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
from xml.sax import parse
4444
from xml.sax import SAXParseException
4545

46+
from extra.beep.beep import beep
4647
from extra.cloak.cloak import decloak
4748
from extra.safe2bin.safe2bin import safecharencode
4849
from lib.core.bigarray import BigArray
@@ -931,6 +932,10 @@ def readInput(message, default=None, checkBatch=True):
931932
retVal = default
932933
else:
933934
logging._acquireLock()
935+
936+
if conf.get("beep"):
937+
beep()
938+
934939
dataToStdout("\r%s" % message, forceOutput=True, bold=True)
935940
kb.prependFlag = False
936941

lib/parse/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ def cmdLineParser():
689689
help="Set question answers (e.g. \"quit=N,follow=N\")")
690690

691691
miscellaneous.add_option("--beep", dest="beep", action="store_true",
692-
help="Make a beep sound when SQL injection is found")
692+
help="Beep on question and/or when SQL injection is found")
693693

694694
miscellaneous.add_option("--cleanup", dest="cleanup",
695695
action="store_true",

sqlmap.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ alert =
721721
# Set question answers (e.g. "quit=N,follow=N").
722722
answers =
723723

724-
# Make a beep sound when SQL injection is found.
724+
# Beep on question and/or when SQL injection is found.
725725
# Valid: True or False
726726
beep = False
727727

0 commit comments

Comments
 (0)