From 7004b26c9801617b19e342675bc19964f1a25ffe Mon Sep 17 00:00:00 2001 From: lanjelot Date: Thu, 10 Nov 2016 12:00:25 +1000 Subject: [PATCH] fixed ajp_fuzz response --- patator.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/patator.py b/patator.py index 4eed832..6d84330 100755 --- a/patator.py +++ b/patator.py @@ -3604,7 +3604,12 @@ class AJP_Connection(TCP_Connection): sock.close() class Response_AJP(Response_HTTP): - pass + def __init__(self, code, response, status_msg='', timing=0, trace=None, content_length=-1, target={}): + Response_HTTP.__init__(self, code, response, timing, trace, content_length, target) + self.status_msg = status_msg + + def __str__(self): + return self.status_msg or self.mesg def prepare_ajp_forward_request(target_host, req_uri, method): fr = AjpForwardRequest(AjpForwardRequest.SERVER_TO_CONTAINER) @@ -3696,7 +3701,7 @@ class AJP_fuzz(TCP_Cache): if persistent == '0': self.reset() - return self.Response(http_code, http_status_msg, timing, data, content_length, target) + return self.Response(http_code, data, http_status_msg, timing, data, content_length, target) # }}}