+ PATH=/www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
+ export PATH
+ install_tmp=/tmp/bt_install.pl
+ pluginPath=/www/server/panel/plugin/btwaf
+ remote_dir=total2
++ python -c 'import sys;print(sys.version_info[0]);'
+ pyVersion=3
++ python -c 'import sys;print(sys.version_info[1]);'
+ py_zi=7
+ pluginPath2=/www/server/panel/plugin/webshell_san
++ uname -a
++ grep -Po aarch64
++ awk NR==1
+ aacher=
++ cat /etc/redhat-release
++ grep ' 6.'
++ grep -i centos
+ Centos6Check=
+ '[' install == install ']'
+ Install_btwaf
+ mkdir /www/server/panel/plugin/webshell_san
mkdir: cannot create directory ‘/www/server/panel/plugin/webshell_san’: File exists
+ mkdir -p /www/server/panel/plugin/btwaf
+ '[' -d /www/server/btwaf/ ']'
+ echo ''
+ wget -O /www/server/panel/plugin/btwaf/btwaf_static.zip http://download.bt.cn/btwaf_rule/btwaf_static.zip
--2024-07-27 18:16:50-- http://download.bt.cn/btwaf_rule/btwaf_static.zip
Resolving download.bt.cn (download.bt.cn)... 42.157.129.47, 2001:19f0:7001:54fc:5400:2ff:fe9b:97f9
Connecting to download.bt.cn (download.bt.cn)|42.157.129.47|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11348115 (11M) [application/zip]
Saving to: ‘/www/server/panel/plugin/btwaf/btwaf_static.zip’
100%[==================================================================================================================================================>] 11,348,115 816KB/s in 14s
2024-07-27 18:17:04 (815 KB/s) - ‘/www/server/panel/plugin/btwaf/btwaf_static.zip’ saved [11348115/11348115]
++ ls -l /www/server/panel/plugin/btwaf/btwaf_static.zip
++ awk '{print $5}'
+ count=11348115
+ '[' 11348115 -lt 32564250 ']'
+ echo 下载失败
+ echo ERROR:安装失败
+ '[' -d /www/server/panel/plugin/btwaf/btwaf_static ']'
+ cd /www/server/panel/plugin/btwaf
+ unzip /www/server/panel/plugin/btwaf/btwaf_static.zip
Archive: /www/server/panel/plugin/btwaf/btwaf_static.zip
creating: btwaf_static/
inflating: btwaf_static/captcha.zip
inflating: btwaf_static/GeoLite2-City-reduce.mmdb
inflating: btwaf_static/lsqlite3_fsl09y.zip
extracting: btwaf_static/lua-5.1.5.tar.gz
extracting: btwaf_static/lua-cjson-2.1.0.tar.gz
inflating: btwaf_static/lua-cjson-2.1.0.tar.gz.bak
inflating: btwaf_static/LuaJIT-2.1.0-beta3.tar.gz
extracting: btwaf_static/luarocks-3.5.0.tar.gz
creating: btwaf_static/static/
creating: btwaf_static/static/fonts/
inflating: btwaf_static/static/fonts/YouSheBiaoTiHei-2.ttf
creating: btwaf_static/static/img/
creating: btwaf_static/static/img/feedback/
inflating: btwaf_static/static/img/feedback/QA_banner.png
extracting: btwaf_static/static/img/feedback/QA_close.png
inflating: btwaf_static/static/img/feedback/QA_emoj.png
extracting: btwaf_static/static/img/feedback/QA_like.png
extracting: btwaf_static/static/img/feedback/QA_logo.png
extracting: btwaf_static/static/img/feedback/QA_straw.png
creating: btwaf_static/static/img/ng-waf/
inflating: btwaf_static/static/img/ng-waf/attack-source-bg.svg
inflating: btwaf_static/static/img/ng-waf/attack-source-header.svg
inflating: btwaf_static/static/img/ng-waf/dd.gif
inflating: btwaf_static/static/img/ng-waf/defense-dynamics-bg.svg
inflating: btwaf_static/static/img/ng-waf/defense-dynamics-header.svg
extracting: btwaf_static/static/img/ng-waf/dun.png
extracting: btwaf_static/static/img/ng-waf/dun1.png
inflating: btwaf_static/static/img/ng-waf/dun_bg.png
inflating: btwaf_static/static/img/ng-waf/icon-all-intercept.svg
inflating: btwaf_static/static/img/ng-waf/icon-day-intercept.svg
inflating: btwaf_static/static/img/ng-waf/icon-scrollbar-bg.svg
inflating: btwaf_static/static/img/ng-waf/icon-scrollbar-bottom.svg
inflating: btwaf_static/static/img/ng-waf/icon-scrollbar-top.svg
inflating: btwaf_static/static/img/ng-waf/icon-tag-swiched.png
inflating: btwaf_static/static/img/ng-waf/icon-view-report.svg
inflating: btwaf_static/static/img/ng-waf/intercept-trend-chart.svg
inflating: btwaf_static/static/img/ng-waf/logo_bg.png
extracting: btwaf_static/static/img/ng-waf/ng-logo.png
extracting: btwaf_static/static/img/ng-waf/ng-logo1.png
inflating: btwaf_static/static/img/ng-waf/ng-waf.png
inflating: btwaf_static/static/img/ng-waf/site-block-header.svg
creating: btwaf_static/static/moment/
creating: btwaf_static/static/src/
+ '[' -d /www/server/panel/plugin/btwaf/btwaf_static ']'
+ echo 解压成功
解压成功 |