+
+
+{/if}
+
+
{/block}
\ No newline at end of file
diff --git a/install.sql b/install.sql
index dd5eb7a..ee073bd 100644
--- a/install.sql
+++ b/install.sql
@@ -12,15 +12,15 @@ INSERT INTO `cloud_config` (`key`, `value`) VALUES
('bt_key', ''),
('whitelist', '0'),
('download_page', '1'),
-('new_version', '8.0.1'),
+('new_version', '8.0.2'),
('update_msg', '暂无更新日志'),
-('update_date', '2023-07-20'),
+('update_date', '2023-08-28'),
('new_version_win', '7.9.0'),
('update_msg_win', '暂无更新日志'),
('update_date_win', '2023-07-20'),
-('new_version_btm', '2.2.8'),
+('new_version_btm', '2.2.9'),
('update_msg_btm', '暂无更新日志'),
-('update_date_btm', '2023-08-04'),
+('update_date_btm', '2023-08-11'),
('updateall_type', '0'),
('syskey', 'UqP94LtI8eWAIgCP');
diff --git a/public/install/install_6.0.sh b/public/install/install_6.0.sh
index 5af1d49..0b34e73 100644
--- a/public/install/install_6.0.sh
+++ b/public/install/install_6.0.sh
@@ -759,6 +759,18 @@ Install_Bt(){
if [ ! -f /www/server/panel/data/userInfo.json ]; then
echo "{\"uid\":1,\"username\":\"Administrator\",\"address\":\"127.0.0.1\",\"serverid\":\"1\",\"access_key\":\"test\",\"secret_key\":\"123456\",\"ukey\":\"123456\",\"state\":1}" > /www/server/panel/data/userInfo.json
fi
+ if [ ! -f /www/server/panel/data/panel_nps.pl ]; then
+ echo "" > /www/server/panel/data/panel_nps.pl
+ fi
+ if [ ! -f /www/server/panel/data/btwaf_nps.pl ]; then
+ echo "" > /www/server/panel/data/btwaf_nps.pl
+ fi
+ if [ ! -f /www/server/panel/data/tamper_proof_nps.pl ]; then
+ echo "" > /www/server/panel/data/tamper_proof_nps.pl
+ fi
+ if [ ! -f /www/server/panel/data/total_nps.pl ]; then
+ echo "" > /www/server/panel/data/total_nps.pl
+ fi
}
Set_Bt_Panel(){
Run_User="www"
@@ -1022,7 +1034,7 @@ if [ "${PANEL_SSL}" == "True" ];then
HTTP_S="https"
else
HTTP_S="http"
-fi
+fi
echo > /www/server/panel/data/bind.pl
echo -e "=================================================================="
@@ -1042,7 +1054,6 @@ echo -e " 点击【高级】-【继续访问】或【接受风险并继续】访
echo -e " 教程:https://www.bt.cn/bbs/thread-117246-1-1.html"
echo -e ""
echo -e "=================================================================="
-
endTime=`date +%s`
((outTime=($endTime-$startTime)/60))
echo -e "Time consumed:\033[32m $outTime \033[0mMinute!"
diff --git a/public/install/install_btmonitor.sh b/public/install/install_btmonitor.sh
index aeba392..05c9eb0 100644
--- a/public/install/install_btmonitor.sh
+++ b/public/install/install_btmonitor.sh
@@ -427,6 +427,9 @@ EOF
if [ -f $monitor_path/core/include/c_loader/PluginLoader.so ]; then
rm -f $monitor_path/core/include/c_loader/PluginLoader.so
fi
+ if [ -f $monitor_path/sqlite_server/PluginLoader.so ]; then
+ rm -f $monitor_path/sqlite_server/PluginLoader.so
+ fi
}
Start_Monitor(){
diff --git a/public/install/src/bt-monitor-2.2.8.zip b/public/install/src/bt-monitor-2.2.9.zip
similarity index 83%
rename from public/install/src/bt-monitor-2.2.8.zip
rename to public/install/src/bt-monitor-2.2.9.zip
index a8adb87..8cbbf6a 100644
Binary files a/public/install/src/bt-monitor-2.2.8.zip and b/public/install/src/bt-monitor-2.2.9.zip differ
diff --git a/public/install/src/panel6.zip b/public/install/src/panel6.zip
index 851220b..5c67670 100644
Binary files a/public/install/src/panel6.zip and b/public/install/src/panel6.zip differ
diff --git a/public/install/update/LinuxPanel-8.0.1.zip b/public/install/update/LinuxPanel-8.0.2.zip
similarity index 89%
rename from public/install/update/LinuxPanel-8.0.1.zip
rename to public/install/update/LinuxPanel-8.0.2.zip
index b88f2ae..b7b9909 100644
Binary files a/public/install/update/LinuxPanel-8.0.1.zip and b/public/install/update/LinuxPanel-8.0.2.zip differ
diff --git a/public/install/update6.sh b/public/install/update6.sh
index d963061..22fea1e 100644
--- a/public/install/update6.sh
+++ b/public/install/update6.sh
@@ -113,6 +113,18 @@ fi
if [ ! -f /www/server/panel/data/userInfo.json ]; then
echo "{\"uid\":1,\"username\":\"Administrator\",\"address\":\"127.0.0.1\",\"serverid\":\"1\",\"access_key\":\"test\",\"secret_key\":\"123456\",\"ukey\":\"123456\",\"state\":1}" > /www/server/panel/data/userInfo.json
fi
+if [ ! -f /www/server/panel/data/panel_nps.pl ]; then
+ echo "" > /www/server/panel/data/panel_nps.pl
+fi
+if [ ! -f /www/server/panel/data/btwaf_nps.pl ]; then
+ echo "" > /www/server/panel/data/btwaf_nps.pl
+fi
+if [ ! -f /www/server/panel/data/tamper_proof_nps.pl ]; then
+ echo "" > /www/server/panel/data/tamper_proof_nps.pl
+fi
+if [ ! -f /www/server/panel/data/total_nps.pl ]; then
+ echo "" > /www/server/panel/data/total_nps.pl
+fi
chattr -i /etc/init.d/bt
chmod +x /etc/init.d/bt
diff --git a/public/install/update_btmonitor.sh b/public/install/update_btmonitor.sh
index 9e7e562..7fa45ca 100644
--- a/public/install/update_btmonitor.sh
+++ b/public/install/update_btmonitor.sh
@@ -339,6 +339,9 @@ Install_Monitor(){
if [ -f $monitor_path/core/include/c_loader/PluginLoader.so ]; then
rm -f $monitor_path/core/include/c_loader/PluginLoader.so
fi
+ if [ -f $monitor_path/sqlite_server/PluginLoader.so ]; then
+ rm -f $monitor_path/sqlite_server/PluginLoader.so
+ fi
}
Service_Add(){
diff --git a/public/win/panel/panel_7.9.0.zip b/public/win/panel/panel_7.9.0.zip
index 6dfee10..6044eea 100644
Binary files a/public/win/panel/panel_7.9.0.zip and b/public/win/panel/panel_7.9.0.zip differ
diff --git a/route/app.php b/route/app.php
index e1e816c..10b426f 100644
--- a/route/app.php
+++ b/route/app.php
@@ -105,6 +105,9 @@ Route::group('api', function () {
Route::post('/v2/common_v1_authorization/get_pricing', 'api/return_error2');
Route::any('/bt_waf/getSpiders', 'api/btwaf_getspiders');
+ Route::post('/bt_waf/addSpider', 'api/return_empty');
+ Route::post('/bt_waf/getVulScanInfoList', 'api/return_empty');
+ Route::post('/bt_waf/reportInterceptFail', 'api/return_empty');
Route::miss('api/return_error');
});
diff --git a/wiki/update.md b/wiki/update.md
index 9d9c0e9..3e0f3ed 100644
--- a/wiki/update.md
+++ b/wiki/update.md
@@ -1,120 +1,120 @@
-# Linux面板官方更新包修改记录
-
-查询最新版本号:https://www.bt.cn/api/panel/get_version?is_version=1
-
-官方更新包下载链接:http://download.bt.cn/install/update/LinuxPanel-版本号.zip
-
-假设搭建的宝塔第三方云端网址是 http://www.example.com
-
-- 将class文件夹里面所有的.so文件删除
-
-- 将linux/PluginLoader.py复制到class文件夹
-
-- 批量解密模块文件:执行 php think decrypt classdir <面板class文件夹路径>
-
-- 全局搜索替换 https://api.bt.cn => http://www.example.com
-
-- 全局搜索替换 https://www.bt.cn/api/ => http://www.example.com/api/(需排除clearModel.py、scanningModel.py、ipsModel.py)
-
-- 全局搜索替换 https://download.bt.cn/install/update6.sh => http://www.example.com/install/update6.sh
-
-- class/ajax.py 文件 \#是否执行升级程序 下面的 public.get_url() 改成 public.GetConfigValue('home')
-
- class/jobs.py 文件 \#尝试升级到独立环境 下面的 public.get_url() 改成 public.GetConfigValue('home')
-
- class/system.py 文件 RepPanel和UpdatePro方法内的 public.get_url() 改成 public.GetConfigValue('home')
-
-- class/public.py 在
-
- ```python
- def GetConfigValue(key):
- ```
-
- 这一行下面加上
-
- ```python
- if key == 'home': return 'http://www.example.com'
- ```
-
- 在 def is_bind(): 这一行下面加上 return True
-
- 在 def check_domain_cloud(domain): 这一行下面加上 return
-
- 在 def get_improvement(): 这一行下面加上 return False
-
- 在free_login_area方法内get_free_ips_area替换成get_ips_area
-
- 在get_free_ip_info方法内,获取IP的部分改成res = get_ips_area([address])
-
- 在login_send_body方法内,free_login_area(login_ip=server_ip_area的server_ip_area改成login_ip
-
-- class/panelPlugin.py 文件,download_icon方法内替换 public.GetConfigValue('home') => 'https://www.bt.cn'
-
- 删除public.total_keyword(get.query)这一行
-
- __set_pyenv方法内,temp_file = public.readFile(filename)这行代码下面加上
-
- ```python
- temp_file = temp_file.replace('wget -O Tpublic.sh', '#wget -O Tpublic.sh')
- temp_file = temp_file.replace('\cp -rpa Tpublic.sh', '#\cp -rpa Tpublic.sh')
- temp_file = temp_file.replace('http://download.bt.cn/install/public.sh', 'http://www.example.com/install/public.sh')
- temp_file = temp_file.replace('https://download.bt.cn/install/public.sh', 'http://www.example.com/install/public.sh')
- ```
-
-- class/plugin_deployment.py 文件,SetupPackage方法内替换 public.GetConfigValue('home') => 'https://www.bt.cn'
-
-- install/install_soft.sh 在bash执行之前加入以下代码
-
- ```shell
- sed -i "s/http:\/\/download.bt.cn\/install\/public.sh/http:\/\/www.example.com\/install\/public.sh/" lib.sh
- sed -i "s/https:\/\/download.bt.cn\/install\/public.sh/http:\/\/www.example.com\/install\/public.sh/" lib.sh
- sed -i "/wget -O Tpublic.sh/d" $name.sh
- ```
-
-- install/public.sh 用官网最新版的[public.sh](http://download.bt.cn/install/public.sh)替换,并去除最下面bt_check一行
-
-- 去除无用的定时任务:task.py 文件 删除以下几行
-
- "check_panel_msg": check_panel_msg,
-
- PluginLoader.daemon_panel()
-
-- 去除WebRTC连接:BTPanel/static/js/public.js 删除stun.start();这一行
-
-- 去除首页广告:BTPanel/static/js/index.js 文件删除两处index.recommend_paid_version()
-
-- 去除首页自动检测更新,避免频繁请求云端:BTPanel/static/js/index.js 文件注释掉bt.system.check_update这一段代码外的setTimeout
-
-- 去除内页广告:BTPanel/templates/default/layout.html 删除两处getPaymentStatus();
-
-- 删除问卷调查:BTPanel/templates/default/layout.html 删除if(window.localStorage.getItem('panelNPS') == null)以及下面的行
-
-- [可选]去除各种计算题:复制bt.js到 BTPanel/static/ ,在 BTPanel/templates/default/layout.html 的\前面加入
-
- ```javascript
-
- ```
-
-- [可选]去除创建网站自动创建的垃圾文件:在class/panelSite.py,分别删除
-
- htaccess = self.sitePath+'/.htaccess'
-
- index = self.sitePath+'/index.html'
-
- doc404 = self.sitePath+'/404.html'
-
- 这3行及分别接下来的4行代码
-
-- [可选]关闭未绑定域名提示页面:在class/panelSite.py,root /www/server/nginx/html改成return 400
-
-- [可选]关闭自动生成访问日志:在 BTPanel/\_\_init\_\_.py 删除public.write_request_log()这一行
-
-- [可选]删除小图标广告:在BTPanel/static/js/site.js,删除“WAF防火墙”对应的span标签
-
-- [可选]上传文件默认选中覆盖,在BTPanel/static/js/upload-drog.js,id="all_operation"加checked属性
-
-
-解压安装包panel6.zip,将更新包改好的文件覆盖到里面,然后重新打包,即可更新安装包。(
-
-别忘了删除class文件夹里面所有的.so文件)
-
+# Linux面板官方更新包修改记录
+
+查询最新版本号:https://www.bt.cn/api/panel/get_version?is_version=1
+
+官方更新包下载链接:http://download.bt.cn/install/update/LinuxPanel-版本号.zip
+
+假设搭建的宝塔第三方云端网址是 http://www.example.com
+
+- 将class文件夹里面所有的.so文件删除
+
+- 将linux/PluginLoader.py复制到class文件夹
+
+- 批量解密模块文件:执行 php think decrypt classdir <面板class文件夹路径>
+
+- 全局搜索替换 https://api.bt.cn => http://www.example.com
+
+- 全局搜索替换 https://www.bt.cn/api/ => http://www.example.com/api/(需排除clearModel.py、scanningModel.py、ipsModel.py)
+
+- 全局搜索替换 https://download.bt.cn/install/update6.sh => http://www.example.com/install/update6.sh
+
+- class/ajax.py 文件 \#是否执行升级程序 下面的 public.get_url() 改成 public.GetConfigValue('home')
+
+ class/jobs.py 文件 \#尝试升级到独立环境 下面的 public.get_url() 改成 public.GetConfigValue('home')
+
+ class/system.py 文件 RepPanel和UpdatePro方法内的 public.get_url() 改成 public.GetConfigValue('home')
+
+- class/public.py 在
+
+ ```python
+ def GetConfigValue(key):
+ ```
+
+ 这一行下面加上
+
+ ```python
+ if key == 'home': return 'http://www.example.com'
+ ```
+
+ 在 def is_bind(): 这一行下面加上 return True
+
+ 在 def check_domain_cloud(domain): 这一行下面加上 return
+
+ 在 def get_improvement(): 这一行下面加上 return False
+
+ 在free_login_area方法内get_free_ips_area替换成get_ips_area
+
+ 在get_free_ip_info方法内,获取IP的部分改成res = get_ips_area([address])
+
+ 在login_send_body方法内,free_login_area(login_ip=server_ip_area的server_ip_area改成login_ip
+
+- class/panelPlugin.py 文件,download_icon方法内替换 public.GetConfigValue('home') => 'https://www.bt.cn'
+
+ 删除public.total_keyword(get.query)这一行
+
+ __set_pyenv方法内,temp_file = public.readFile(filename)这行代码下面加上
+
+ ```python
+ temp_file = temp_file.replace('wget -O Tpublic.sh', '#wget -O Tpublic.sh')
+ temp_file = temp_file.replace('\cp -rpa Tpublic.sh', '#\cp -rpa Tpublic.sh')
+ temp_file = temp_file.replace('http://download.bt.cn/install/public.sh', 'http://www.example.com/install/public.sh')
+ temp_file = temp_file.replace('https://download.bt.cn/install/public.sh', 'http://www.example.com/install/public.sh')
+ ```
+
+- class/plugin_deployment.py 文件,SetupPackage方法内替换 public.GetConfigValue('home') => 'https://www.bt.cn'
+
+- install/install_soft.sh 在bash执行之前加入以下代码
+
+ ```shell
+ sed -i "s/http:\/\/download.bt.cn\/install\/public.sh/http:\/\/www.example.com\/install\/public.sh/" lib.sh
+ sed -i "s/https:\/\/download.bt.cn\/install\/public.sh/http:\/\/www.example.com\/install\/public.sh/" lib.sh
+ sed -i "/wget -O Tpublic.sh/d" $name.sh
+ ```
+
+- install/public.sh 用官网最新版的[public.sh](http://download.bt.cn/install/public.sh)替换,并去除最下面bt_check一行
+
+- 去除无用的定时任务:task.py 文件 删除以下几行
+
+ "check_panel_msg": check_panel_msg,
+
+ PluginLoader.daemon_panel()
+
+- 去除WebRTC连接:BTPanel/static/js/public.js 删除stun.start();这一行
+
+- 去除首页广告:BTPanel/static/js/index.js 文件删除两处index.recommend_paid_version()
+
+- 去除首页自动检测更新,避免频繁请求云端:BTPanel/static/js/index.js 文件注释掉bt.system.check_update这一段代码外的setTimeout
+
+- 去除内页广告:BTPanel/templates/default/layout.html 删除两处getPaymentStatus();
+
+- 删除问卷调查:BTPanel/templates/default/layout.html 删除if(window.localStorage.getItem('panelNPS') == null)以及下面的行
+
+- [可选]去除各种计算题:复制bt.js到 BTPanel/static/ ,在 BTPanel/templates/default/layout.html 的\