mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
added --beep (tested on Windows and Linux; for now turned off) switch
This commit is contained in:
parent
c5fb4edf3e
commit
52f910f752
|
@ -81,7 +81,7 @@ def checkSqlInjection(place, parameter, value, parenthesis):
|
||||||
|
|
||||||
if not falseResult:
|
if not falseResult:
|
||||||
infoMsg = "%s parameter '%s' is %s (%s) injectable " % (place, parameter, case.desc, logic)
|
infoMsg = "%s parameter '%s' is %s (%s) injectable " % (place, parameter, case.desc, logic)
|
||||||
infoMsg += "with %d parenthesis" % parenthesis
|
infoMsg += "with %d parenthesis%s" % (parenthesis, "\a" if conf.beep else "")
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
return case.name
|
return case.name
|
||||||
|
|
||||||
|
|
|
@ -484,6 +484,10 @@ def cmdLineParser():
|
||||||
action="store_true", default=False,
|
action="store_true", default=False,
|
||||||
help="Replicate dumped data into a sqlite3 database")
|
help="Replicate dumped data into a sqlite3 database")
|
||||||
|
|
||||||
|
miscellaneous.add_option("--beep", dest="beep",
|
||||||
|
action="store_true", default=False,
|
||||||
|
help="Alert with audio beep when sql injection found")
|
||||||
|
|
||||||
# Hidden and/or experimental options
|
# Hidden and/or experimental options
|
||||||
parser.add_option("--profile", dest="profile", action="store_true",
|
parser.add_option("--profile", dest="profile", action="store_true",
|
||||||
default=False, help=SUPPRESS_HELP)
|
default=False, help=SUPPRESS_HELP)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user