Update of vuln tests

This commit is contained in:
Miroslav Stampar
2019-11-06 11:52:50 +01:00
parent 732267876c
commit c2b929301e
3 changed files with 17 additions and 12 deletions

View File

@@ -102,6 +102,8 @@ class ReqHandler(BaseHTTPRequestHandler):
if hasattr(self, "data"):
if self.data.startswith('{') and self.data.endswith('}'):
params.update(json.loads(self.data))
elif self.data.startswith('<') and self.data.endswith('>'):
params.update(dict(re.findall(r'name="([^"]+)" value="([^"]*)"', self.data)))
else:
params.update(parse_qs(self.data))