宝塔强制跳转绑定页面绕过

最新版宝塔一直跳/bind就很烦!

linux在ssh执行命令,Win直接创建文件即可

Linux 7.4.5

sed -i "s|if (bind_user == 'True') {|if (bind_user == 'REMOVED') {|g" /www/server/panel/BTPanel/static/js/index.js

Linux 7.6.x 之后的版本

echo "{\"uid\":1000,\"username\":\"admin\",\"serverid\":\"xxx\"}" > /www/server/panel/data/userInfo.json

WIN 7.3.0

创建 C:\BtSoft\panel\data\userInfo.json
写入 {"uid":1000,"username":"admin","serverid":"xxx"}

本文链接:

https://logs.ee/coding/20210922/23.html
1 + 5 =
快来做第一个评论的人吧~