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

Skip to content

Commit 52f910f

Browse files
committed
added --beep (tested on Windows and Linux; for now turned off) switch
1 parent c5fb4ed commit 52f910f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/controller/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def checkSqlInjection(place, parameter, value, parenthesis):
8181

8282
if not falseResult:
8383
infoMsg = "%s parameter '%s' is %s (%s) injectable " % (place, parameter, case.desc, logic)
84-
infoMsg += "with %d parenthesis" % parenthesis
84+
infoMsg += "with %d parenthesis%s" % (parenthesis, "\a" if conf.beep else "")
8585
logger.info(infoMsg)
8686
return case.name
8787

lib/parse/cmdline.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,10 @@ def cmdLineParser():
484484
action="store_true", default=False,
485485
help="Replicate dumped data into a sqlite3 database")
486486

487+
miscellaneous.add_option("--beep", dest="beep",
488+
action="store_true", default=False,
489+
help="Alert with audio beep when sql injection found")
490+
487491
# Hidden and/or experimental options
488492
parser.add_option("--profile", dest="profile", action="store_true",
489493
default=False, help=SUPPRESS_HELP)

0 commit comments

Comments
 (0)