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

Skip to content

Commit be0f7a9

Browse files
committed
Update of --beep (including XSS/FI)
1 parent 33a8db9 commit be0f7a9

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

lib/controller/checks.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,10 +1141,17 @@ def _(page):
11411141
infoMsg = "heuristic (XSS) test shows that %sparameter '%s' might be vulnerable to cross-site scripting (XSS) attacks" % ("%s " % paramType if paramType != parameter else "", parameter)
11421142
logger.info(infoMsg)
11431143

1144+
if conf.beep:
1145+
beep()
1146+
11441147
for match in re.finditer(FI_ERROR_REGEX, page or ""):
11451148
if randStr1.lower() in match.group(0).lower():
11461149
infoMsg = "heuristic (FI) test shows that %sparameter '%s' might be vulnerable to file inclusion (FI) attacks" % ("%s " % paramType if paramType != parameter else "", parameter)
11471150
logger.info(infoMsg)
1151+
1152+
if conf.beep:
1153+
beep()
1154+
11481155
break
11491156

11501157
kb.disableHtmlDecoding = False

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.12.4"
21+
VERSION = "1.4.12.5"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/parse/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def cmdLineParser(argv=None):
728728
help="Run host OS command(s) when SQL injection is found")
729729

730730
miscellaneous.add_argument("--beep", dest="beep", action="store_true",
731-
help="Beep on question and/or when SQL injection is found")
731+
help="Beep on question and/or when SQLi/XSS/FI is found")
732732

733733
miscellaneous.add_argument("--dependencies", dest="dependencies", action="store_true",
734734
help="Check for missing (optional) sqlmap dependencies")

0 commit comments

Comments
 (0)