yaofeifly / Vub_ENV

跟踪真实漏洞相关靶场环境搭建

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cookie_pre is different on different computer

sa1tor opened this issue · comments

phpcms_v9.6/exp/phpcmsv9.6_sqli+getshell.py第30行

cookies = requests.utils.dict_from_cookiejar(s.cookies)['svyko_siteid']

不同的计算机中显示的cookie_pre是不同的,所以不能直接固定为svyko_sited的,还是用原来的那两行代码即可。

cookie = requests.utils.dict_from_cookiejar(s.cookies)
cookies = re.findall(r"siteid': '(.*?)'",str(cookie))[0]

嗯,已修改