From 2ed7551049bc5d9de7bdffc76eed229e78b4c5c1 Mon Sep 17 00:00:00 2001 From: Gregory Soutade Date: Sun, 15 Mar 2015 10:31:28 +0100 Subject: [PATCH] Add GET/POST checks before accepting request --- iwla.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/iwla.py b/iwla.py index 4378a02..7bb08bc 100755 --- a/iwla.py +++ b/iwla.py @@ -104,6 +104,9 @@ visits : requests => [fields_from_format_log] extract_request => + http_method + http_uri + http_version extract_uri extract_parameters* extract_referer* => @@ -669,6 +672,9 @@ class IWLA(object): if not self._decodeHTTPRequest(hit): return False + if hit['extract_request']['http_method'] not in ['GET', 'POST']: + return False + for k in hit.keys(): if hit[k] == '-' or hit[k] == '*': hit[k] = ''