mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
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 |
Executable
+17
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Executable
+16
@@ -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"
|
||||
Reference in New Issue
Block a user