mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
If it works, don't touch. I touched
This commit is contained in:
parent
6bf84151e4
commit
66d37112d1
22 changed files with 66 additions and 67 deletions
|
|
@ -44,7 +44,7 @@ class FingerprintHandler(ContentHandler):
|
|||
def startElement(self, name, attrs):
|
||||
if name == "regexp":
|
||||
self._regexp = sanitizeStr(attrs.get("value"))
|
||||
_ = re.match("\A[A-Za-z0-9]+", self._regexp) # minor trick avoiding compiling of large amount of regexes
|
||||
_ = re.match(r"\A[A-Za-z0-9]+", self._regexp) # minor trick avoiding compiling of large amount of regexes
|
||||
|
||||
if _ and _.group(0).lower() in self._banner.lower() or not _:
|
||||
self._match = re.search(self._regexp, self._banner, re.I | re.M)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue