mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-16 10:02:53 -07:00
Add ignore case on check body for html inject
This commit is contained in:
parent
207b0d455c
commit
47c311553e
1 changed files with 2 additions and 2 deletions
|
@ -52,9 +52,9 @@ def InjectData(data, client, req_uri):
|
||||||
return RespondWithFile(client, settings.Config.Html_Filename)
|
return RespondWithFile(client, settings.Config.Html_Filename)
|
||||||
|
|
||||||
Len = ''.join(re.findall(r'(?<=Content-Length: )[^\r\n]*', Headers))
|
Len = ''.join(re.findall(r'(?<=Content-Length: )[^\r\n]*', Headers))
|
||||||
HasBody = re.findall(r'(<body[^>]*>)', Content)
|
HasBody = re.findall(r'(<body[^>]*>)', Content, re.IGNORECASE)
|
||||||
|
|
||||||
if HasBody and len(settings.Config.HtmlToInject) > 2:
|
if HasBody and len(settings.Config.HtmlToInject) > 2 and not req_uri.endswith('.js'):
|
||||||
if settings.Config.Verbose:
|
if settings.Config.Verbose:
|
||||||
print text("[PROXY] Injecting into HTTP Response: %s" % color(settings.Config.HtmlToInject, 3, 1))
|
print text("[PROXY] Injecting into HTTP Response: %s" % color(settings.Config.HtmlToInject, 3, 1))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue