宝塔linux面板v6.0一键破解脚本适用于6.x版本
宝塔linux面板v6.0一键破解脚本适用于6.x版本
更新:最新破解方法见:宝塔面板手动改代码破解教程-适合6.8.x版本
更新2:请查看最新版本破解:宝塔linux面板破解版Bt_Panel_Pro V6.9.5
破解思路
破解思路是由 @king51提出并实现的,该dalao盯着宝塔不放,首次放出最完美的5.9专业版破解思路,导致宝塔官方第一次感受到了被破解的压力,将付费插件全部改由云端获取。然而…大佬还是找出了漏洞并且知识兔进行了实践,依旧完美破解。该思路其实对比5.9版,更简洁,但想到想到并实现这个思路比较难
一键破解脚本
wget -O crack.sh https://cdn.zhishitu.com/uploads/sh/crack.sh && bash crack.sh
破解思路:
修改插件过期时间
在 /class/panelPlugin.py第242行后添加两行代码:
for softInfo in softList['list']:softInfo['endtime'] = 0
该段代码将插件过期时间设置为无限,就可以从云端获取插件列表并下载了
本地破解插件验证
插件下载下来后其实是只有插件的运行环境等文件的,功能代码文件 Plugin_main.py 内部存在验证,会提示”您未购买或授权已到期!“ 例如 宝塔任务管理器 插件 的 task_manager_main.py 文件代码:
需要从正版已安装插件中替换该文件,并做一些修改. 正版插件中的代码开头如下:
注意上图红框内的表名,和未破解完成的插件表名不同,需要做一个手动修改:
存并上传后,就可以使用插件了!
备注: 上述修改仅为示例,部分插件内部还存在其他验证,在我做的SHELL脚本中已全部成功修改并通过测试。
SHELL脚本
Shell Project: https://github.com/madlifer/btpanelv6.1_crack
一键破解脚本
wget -O crack.sh https://cdn.zhishitu.com/uploads/sh/crack.sh && bash crack.sh
以下为脚本内容:
#!/bin/bashGreen_font="\033[32m" && Yellow_font="\033[33m" && Red_font="\033[31m" && Font_suffix="\033[0m"Info="${Green_font}[Info]${Font_suffix}"Error="${Red_font}[Error]${Font_suffix}"Important="${Red_font}[选择前须知:]${Font_suffix}"PANEL_DIR=/www/server/panelPLUGIN_RETURN=在面板安装插件完成之后,从下表选择你要破解的插件:MAIN_RETURN=${Red_font}[宝塔面板v6.1.2破解脚本]${Font_suffix}git_check(){GIT_V=`git --version | grep -q version`if [ $? = 0 ]; thenecho -e "${Info} Git已安装,开始下一步操作!"elseecho -e "${Error} 未安装Git,开始安装Git!"check_systeminstall_gitfi}check_system() {if grep -Eqii "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; thenDISTRO='CentOS'PM='yum'elif grep -Eqi "Red Hat Enterprise Linux Server" /etc/issue || grep -Eq "Red Hat Enterprise Linux Server" /etc/*-release; thenDISTRO='RHEL'PM='yum'elif grep -Eqi "Aliyun" /etc/issue || grep -Eq "Aliyun" /etc/*-release; thenDISTRO='Aliyun'PM='yum'elif grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; thenDISTRO='Debian'PM='apt'elif grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; thenDISTRO='Ubuntu'PM='sudo'elseDISTRO='unknow'fi}install_git(){case ${PM} inyum)yum -y install sudoyum -y update sudo yum -y install git;;apt)apt -y install sudosudo apt -y updatesudo apt-get -y install git;;sudo)sudo apt -y updatesudo apt-get -y install git;;*)echo -e "${Error} 不支持您的系统 !";;esacecho -e "${Info} Git安装完成 !"}install_bt_panel_pro(){curl http://download.bt.cn/install/update6.sh|bashecho -e "${Info} 宝塔专业版安装完成,正在进行下一步操作!"}get_crack_file(){git clone https://github.com/madlifer/btpanelv6.1_crack.git}copy_class_file(){cp -pf /root/btpanelv6.1_crack/panelPlugin.py ${PANEL_DIR}/class/panelPlugin.pyecho -e "${Info} 复制Class文件完成,正在进行下一步操作!"}restart_btpanel(){/etc/init.d/bt restartecho -e "${Info} 重启宝塔面板完成,正在进行下一步操作!"}install_tamper_proof(){cp -pf /root/btpanelv6.1_crack/tamper_proof_main.py ${PANEL_DIR}/plugin/tamper_proof/tamper_proof_main.pyPLUGIN_RETURN=${Red_font}[网站防篡改程序]${Font_suffix}破解完成,继续破解或返回主菜单: && plugin_choose}install_btwaf_httpd(){cp -pf /root/btpanelv6.1_crack/btwaf_httpd_main.py ${PANEL_DIR}/plugin/btwaf_httpd/btwaf_httpd_main.pyPLUGIN_RETURN=${Red_font}[Apache防火墙]${Font_suffix}破解完成,继续破解或返回主菜单: && plugin_choose}install_total_main(){cp -pf /root/btpanelv6.1_crack/total_main.py ${PANEL_DIR}/plugin/total/total_main.pyPLUGIN_RETURN=${Red_font}[网站监控报表]${Font_suffix}破解完成,继续破解或返回主菜单: && plugin_choose}install_btwaf(){cp -pf /root/btpanelv6.1_crack/btwaf_main.py ${PANEL_DIR}/plugin/btwaf/btwaf_main.pyPLUGIN_RETURN=${Red_font}[Nginx防火墙]${Font_suffix}破解完成,继续破解或返回主菜单: && plugin_choose}install_load_leveling(){cp -pf /root/btpanelv6.1_crack/load_leveling_main.py ${PANEL_DIR}/plugin/load_leveling/load_leveling_main.pyPLUGIN_RETURN=${Red_font}[宝塔负载均衡]${Font_suffix}破解完成,继续破解或返回主菜单: && plugin_choose}install_masterslave(){cp -pf /root/btpanelv6.1_crack/masterslave_main.py ${PANEL_DIR}/plugin/masterslave/masterslave_main.pyPLUGIN_RETURN=${Red_font}[MYSQL主从复制]${Font_suffix}破解完成,继续破解或返回主菜单: && plugin_choose}install_task_manager(){cp -pf /root/btpanelv6.1_crack/task_manager_main.py ${PANEL_DIR}/plugin/task_manager/task_manager_main.pyPLUGIN_RETURN=${Red_font}[任务管理器]${Font_suffix}破解完成,继续破解或返回主菜单: && plugin_choose}install_rsync(){cp -pf /root/btpanelv6.1_crack/rsync_main.py ${PANEL_DIR}/plugin/rsync/rsync_main.pyPLUGIN_RETURN=${Red_font}[数据同步工具]${Font_suffix}破解完成,继续破解或返回主菜单: && plugin_choose}del_crack_file(){rm -rf /root/btpanelv6.1_crackMAIN_RETURN=${Red_font}[删除破解包]${Font_suffix}操作已完成。}setup(){git_checkinstall_bt_panel_proget_crack_filecopy_class_filerestart_btpanelMAIN_RETURN=${Red_font}[安装前准备]${Font_suffix}操作已完成。main}plugin_choose(){clearecho -e "${Green_font}#====================================================# ${Important} 必须先在面板成功安装插件才能进行破解。#====================================================# ${PLUGIN_RETURN}${Green_font}#====================================================# 1.网页防篡改程序# 2.Apache防火墙# 3.网站监控报表# 4.Nginx防火墙# 5.宝塔负载均衡# 6.MYSQL主从复制# 7.任务管理器# 8.数据同步工具# 9.返回主菜单#====================================================${Font_suffix}${Font_suffix}"read -p "输入数字以选择:" choose_functionwhile [[ ! "${choose_function}" =~ ^[1-9]$ ]]doecho -e "${Error} 无效输入"echo -e "${Info} 请重新选择" && read -p "输入数字以选择:" choose_functiondoneif [[ "${choose_function}" == "1" ]]; theninstall_tamper_proofelif [[ "${choose_function}" == "2" ]]; theninstall_btwaf_httpdelif [[ "${choose_function}" == "3" ]]; theninstall_total_mainelif [[ "${choose_function}" == "4" ]]; theninstall_btwafelif [[ "${choose_function}" == "5" ]]; theninstall_load_levelingelif [[ "${choose_function}" == "6" ]]; theninstall_masterslaveelif [[ "${choose_function}" == "7" ]]; theninstall_task_managerelif [[ "${choose_function}" == "8" ]]; theninstall_rsyncelif [[ "${choose_function}" == "9" ]]; thenmainfi}main(){clearecho -e "${Green_font}#=======================================# Name: bt-6.1-crack# Project: https://git.io/fxiwt# requirement: bt v6.1 free version# Version: 0.0.1# Author: madlifer# Thanks: @king51# Copyright: https://madevo.net#=======================================${Font_suffix}"echo -e "${MAIN_RETURN}"echo -e "1.安装前准备\n2.进行安装\n3.删除破解包\n4.退出脚本"read -p "输入数字以选择:" functionwhile [[ ! "${function}" =~ ^[1-4]$ ]]doecho -e "${Error} 无效输入"echo -e "${Info} 请重新选择" && read -p "输入数字以选择:" functiondoneif [[ "${function}" == "1" ]]; thensetupelif [[ "${function}" == "2" ]]; thenplugin_chooseelif [[ "${function}" == "2" ]]; thendel_crack_fileelseclearexit 1fi}main
本文转自:“运维笔记”的博客文章:https://madevo.net/bt-panel-v6-1-2-crack-think-setup-shell.html
下载仅供下载体验和测试学习,不得商用和正当使用。
[ppwp passwords=”zhishitu.cn”]
下载体验
应版权要求,禁止分享,敬请谅解,有问题务必找客服哈。
有问题找客服哈,并领取学习福利!
[/ppwp]