|
|
发表于 2023-7-3 22:30:52
|
显示全部楼层
|
之前写的博客记录,MD格式复制下打开就行了,应该可以用。
好久没用5.9了,我看大家都在用高版本宝塔或其他面板
## 5.9开心版
### 手动破解
#### 1.安装官方免费脚本
```sh
# Centos安装命令:
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
# Ubuntu/Deepin安装命令:
wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh
# Debian安装命令:
wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh
# Fedora安装命令:
wget -O install.sh http://download.bt.cn/install/install.sh && bash install.sh
```
#### 2.升级到专业版
```sh
wget -O update.sh http://download.bt.cn/install/update_pro.sh && bash update.sh pro
```
#### 3.修改文件
修改指定目录`/www/server/panel/class`下的`common.py`文件,定位到164行,将以下代码
```python
data = panelAuth.panelAuth ().get_order_status (None)
```
替换成
```python
data = {'status' : True,'msg' : {'endtime' : 32503651199 }}
```
#### 4.新建空文件
在指定目录`/www/server/panel/data`新建空文件,文件命名为`userInfo.json`,如果存在该文件则删除覆盖.
```sh
echo > /www/server/panel/data/userInfo.json
```
#### 5.重启面板
```sh
# 输入命令重启面板,开心完成
/etc/init.d/bt restart
# 如果失败,则恢复免费版
wget -O update.sh http://download.bt.cn/install/update.sh && bash update.sh free
```
### 一键脚本
```sh
# 来源 https://github.com/leitbogioro/Crack_BT_Panel
# 安装
wget --no-check-certificate -qO crack_bt_panel_pro.sh https://git.io/fprzD && bash crack_bt_panel_pro.sh
# 卸载
wget --no-check-certificate -qO uninstall.sh https:git.io/JeuIm && bash uninstall.sh
``` |
|