From 9874ce083e06b8e2634fa9fc9d831d2c67fe92ca Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sat, 10 Oct 2020 17:40:54 +0000 Subject: [PATCH] Added bad word check in HTTP plugin --- plugins/http/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/http/client.py b/plugins/http/client.py index b6b68ff..fb83582 100644 --- a/plugins/http/client.py +++ b/plugins/http/client.py @@ -72,7 +72,8 @@ class HTTPClient(ClientPlugin): if port != 80: url += ":%s" % str(port) - url += "?q=%s" % args.get("bad_word") + if args.get("bad_word"): + url += "?q=%s" % args.get("bad_word") injected_http = args.get("injected_http_contains") try: