From ba7ab215966353068472358e8c085110fe338c7f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 29 Apr 2019 11:32:01 +0200 Subject: [PATCH] Minor update for vuln testing --- extra/vulnserver/vulnserver.py | 9 +++++++++ lib/core/settings.py | 2 +- lib/core/testing.py | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/extra/vulnserver/vulnserver.py b/extra/vulnserver/vulnserver.py index bb730b665..379df0979 100644 --- a/extra/vulnserver/vulnserver.py +++ b/extra/vulnserver/vulnserver.py @@ -16,6 +16,7 @@ import traceback if sys.version_info >= (3, 0): from http.client import FOUND + from http.client import INTERNAL_SERVER_ERROR from http.client import NOT_FOUND from http.client import OK from http.server import BaseHTTPRequestHandler @@ -27,6 +28,7 @@ else: from BaseHTTPServer import BaseHTTPRequestHandler from BaseHTTPServer import HTTPServer from httplib import FOUND + from httplib import INTERNAL_SERVER_ERROR from httplib import NOT_FOUND from httplib import OK from SocketServer import ThreadingMixIn @@ -85,6 +87,13 @@ class ReqHandler(BaseHTTPRequestHandler): if query: params.update(parse_qs(query)) + if "