diff --git a/servers/HTTP_Proxy.py b/servers/HTTP_Proxy.py index 71e6e75..0a71f2f 100644 --- a/servers/HTTP_Proxy.py +++ b/servers/HTTP_Proxy.py @@ -52,9 +52,9 @@ def InjectData(data, client, req_uri): return RespondWithFile(client, settings.Config.Html_Filename) Len = ''.join(re.findall(r'(?<=Content-Length: )[^\r\n]*', Headers)) - HasBody = re.findall(r'(]*>)', Content) + HasBody = re.findall(r'(]*>)', 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: print text("[PROXY] Injecting into HTTP Response: %s" % color(settings.Config.HtmlToInject, 3, 1))