mirror of
https://github.com/lgandx/Responder.git
synced 2025-12-09 06:01:29 +00:00
Case-insensitive content-type check
Was noticing that injection wasn't happening when the header was "Content-type" instead of the checked for "Content-Type". Headers could probably be put as .lower() from the beginning, but then again there might be header content that may break because of it.
This commit is contained in:
@@ -1498,7 +1498,7 @@ def InjectData(data):
|
||||
return Gzip
|
||||
else:
|
||||
return data
|
||||
if "Content-Type: text/html" in Headers:
|
||||
if "content-type: text/html" in Headers.lower():
|
||||
Len = ''.join(re.findall('(?<=Content-Length: )[^\r\n]*', Headers))
|
||||
HasHTML = re.findall('(?<=<html)[^<]*', Content)
|
||||
if HasHTML :
|
||||
|
||||
Reference in New Issue
Block a user