mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
regular expressions revisited
This commit is contained in:
parent
6a5a5d55f2
commit
a6674edf8a
|
@ -75,7 +75,7 @@ def parseResponse(page, headers):
|
|||
# Detect injectable page absolute system path
|
||||
# NOTE: this regular expression works if the remote web application
|
||||
# is written in PHP and debug/error messages are enabled.
|
||||
absFilePathsRegExp = ( r" in <b>(?P<result>.*?)</b> on line", r"\b(?P<result>[A-Za-z]:([\\/][\w.\\/]*)?)", r"(\A|[^<])(?P<result>/[/\w.]+)" )
|
||||
absFilePathsRegExp = ( r" in <b>(?P<result>.*?)</b> on line", r"(?:>|\s)(?P<result>[A-Za-z]:[\\/][\w.\\/]*)", r"(?:>|\s)(?P<result>/\w[/\w.]+)" )
|
||||
|
||||
for absFilePathRegExp in absFilePathsRegExp:
|
||||
reobj = re.compile(absFilePathRegExp)
|
||||
|
|
Loading…
Reference in New Issue
Block a user