pull/109/head
Mr Chen 6 years ago
parent 3c567ffea0
commit e275c4a937
  1. BIN
      plugins/op_firewall/ico.png
  2. 17
      plugins/op_firewall/index.html
  3. 0
      plugins/op_waf/conf/luawaf.conf
  4. BIN
      plugins/op_waf/ico.png
  5. 17
      plugins/op_waf/index.html
  6. 3
      plugins/op_waf/index.py
  7. 6
      plugins/op_waf/info.json
  8. 6
      plugins/op_waf/install.sh
  9. 16
      plugins/op_waf/js/op_waf.js
  10. 2
      plugins/op_waf/waf/config.lua
  11. 0
      plugins/op_waf/waf/init.lua
  12. 0
      plugins/op_waf/waf/waf.lua
  13. 0
      plugins/op_waf/waf/wafconf/args
  14. 0
      plugins/op_waf/waf/wafconf/blockip
  15. 0
      plugins/op_waf/waf/wafconf/cookie
  16. 0
      plugins/op_waf/waf/wafconf/denycc
  17. 0
      plugins/op_waf/waf/wafconf/post
  18. 0
      plugins/op_waf/waf/wafconf/returnhtml
  19. 0
      plugins/op_waf/waf/wafconf/url
  20. 0
      plugins/op_waf/waf/wafconf/user-agent
  21. 0
      plugins/op_waf/waf/wafconf/whiteip
  22. 0
      plugins/op_waf/waf/wafconf/whiteurl

Binary file not shown.

Before

Width:  |  Height:  |  Size: 344 B

@ -1,17 +0,0 @@
<div class="bt-form">
<div class="bt-w-main">
<div class="bt-w-menu">
<p class="bgw" onclick="pluginService('op_firewall');">服务</p>
<p onclick="pluginConfig('op_firewall');">配置设置</p>
</div>
<div class="bt-w-con pd15">
<div class="soft-man-con"></div>
</div>
</div>
</div>
<script type="text/javascript">
$.getScript( "/plugins/file?name=openrop_firewallesty&f=js/op_firewall.js", function(){
pluginService('op_firewall');
});
</script>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

@ -0,0 +1,17 @@
<div class="bt-form">
<div class="bt-w-main">
<div class="bt-w-menu">
<p class="bgw" onclick="pluginService('op_waf');">服务</p>
<p onclick="pluginConfig('op_waf');">信息</p>
</div>
<div class="bt-w-con pd15">
<div class="soft-man-con"></div>
</div>
</div>
</div>
<script type="text/javascript">
$.getScript( "/plugins/file?name=openrop_firewallesty&f=js/op_waf.js", function(){
pluginService('op_waf');
});
</script>

@ -128,6 +128,9 @@ def reload():
return 'ok'
if __name__ == "__main__":
func = sys.argv[1]
if func == 'status':

@ -1,12 +1,12 @@
{
"title":"OP防火墙[dev]",
"tip":"soft",
"name":"op_firewall",
"name":"op_waf",
"type":"其他插件",
"ps":"有效防止sql注入/xss/一句话木马等常见渗透攻击",
"shell":"install.sh",
"checks":"server/op_firewall",
"path":"server/op_firewall",
"checks":"server/op_waf",
"path":"server/op_waf",
"author":"loveshell",
"home":"https://github.com/loveshell/ngx_lua_waf",
"date":"2019-04-21",

@ -14,14 +14,14 @@ install_tmp=${rootPath}/tmp/mw_install.pl
Install_of(){
echo '正在安装脚本文件...' > $install_tmp
mkdir -p $serverPath/op_firewall
mkdir -p $serverPath/op_waf
echo '0.1' > $serverPath/op_firewall/version.pl
echo '0.1' > $serverPath/op_waf/version.pl
echo 'install ok' > $install_tmp
}
Uninstall_of(){
rm -rf $serverPath/op_firewall
rm -rf $serverPath/op_waf
}

@ -0,0 +1,16 @@
function owPost(method, args, callback){
var loadT = layer.msg('正在获取...', { icon: 16, time: 0, shade: 0.3 });
$.post('/plugins/run', {name:'op_waf', func:method, args:JSON.stringify(args)}, function(data) {
layer.close(loadT);
if (!data.status){
layer.msg(data.msg,{icon:0,time:2000,shade: [0.3, '#000']});
return;
}
if(typeof(callback) == 'function'){
callback(data);
}
},'json');
}

@ -7,7 +7,7 @@ CookieMatch="off"
postMatch="off"
whiteModule="on"
black_fileExt={"php","jsp"}
ipWhitelist={"127.0.0.1"}
ipWhitelist={"127.0.0.2"}
ipBlocklist={"1.0.0.1"}
CCDeny="off"
CCrate="300/60"
Loading…
Cancel
Save