码迷,mamicode.com
首页 > 编程语言 > 详细

python cookie登录DVWA,phpstudy搭建DVWA参考https://www.jianshu.com/p/97d874548300

时间:2019-11-26 22:37:25      阅读:110      评论:0      收藏:0      [点我收藏+]

标签:headers   htm   header   like   get   win64   app   shu   possible   

import requests
header={"User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"}
c=requests.session()
s=c.get("http://127.0.0.1/DVWA/login.php",headers=header)
a=requests.cookies.RequestsCookieJar()
a.set(‘security‘,‘impossible‘)
a.set(‘PHPSESSID‘,‘npjjgdp2np9d3nnmr99t12ic87‘)
c.cookies.update(a)
ll=c.get("http://127.0.0.1/DVWA/index.php",headers=header)
print(ll.text)

python cookie登录DVWA,phpstudy搭建DVWA参考https://www.jianshu.com/p/97d874548300

标签:headers   htm   header   like   get   win64   app   shu   possible   

原文地址:https://www.cnblogs.com/canglongdao/p/11938701.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!