Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

宝塔跳过首页弹出的验证 #23

Open
dalaolala opened this issue Apr 26, 2021 · 3 comments
Open

宝塔跳过首页弹出的验证 #23

dalaolala opened this issue Apr 26, 2021 · 3 comments

Comments

@dalaolala
Copy link
Owner

找到下面的目录

/www/server/panel/BTPanel/static/js/index.js

屏蔽掉下面的代码

if (bind_user == 'XXXX') {
    //show_force_bind();
}
@dalaolala
Copy link
Owner Author

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

@dalaolala
Copy link
Owner Author

dalaolala commented Aug 19, 2021

测试时间:2021-08-19

一键消除宝塔的强制登录方法简单粗暴,但是非常有效~

复制该命令到终端运行即可:

rm -f /www/server/panel/data/bind.pl

@dalaolala
Copy link
Owner Author

dalaolala commented Nov 22, 2021

测试时间:2021-11-22
针对宝塔官方版,去强制登陆方法

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

开新版

https://fenhao.me/10.html

写入用户信息

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant