Skip to content

Commit 1f6736e

Browse files
committed
fixed bug
1 parent 8456f34 commit 1f6736e

File tree

7 files changed

+15
-8
lines changed

7 files changed

+15
-8
lines changed

README.TXT

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
10.无监督机器学习、自主生成对抗规则
1212
.....
1313

14-
二、编译运行
14+
二、编译运行,测试推荐CentOS7
1515
1. 安装openssl和libpcre库
1616
CentOS :
1717
yum install openssl openssl-devel
@@ -42,6 +42,7 @@
4242

4343

4444
2.机器学习/自主对抗规则测试方法:
45+
机器学习原理:https://www.freebuf.com/articles/web/226418.html
4546

4647
机器学习是核心,但采集样本需要一定时间,为了方便测试,默认了一条aihttps.html对抗规则:
4748
如果访问https://serverip/aihttps.html?id=123采集到的样本大于99%都是这种形态,那么下面的网址都将产生攻击报警:

config.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ daemon = off # 关闭后台模式,方便调试
1414
pem-file = "server.pem"
1515

1616

17-
# 为了安全,请设置运行的用户组和权限,默认nobody,请确认系统存在有nobody,没有请换成root。
17+
# 为了安全,请设置降低运行的用户组和权限,默认nobody,请确认系统存在有nobody,没有请换成root,设置错误会导致进程不能启动
1818
# user and group
1919
user = "nobody"
2020
group = "nobody"

src/aihttps.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1010
* GNU General Public License for more details.
1111
*
12-
* For more ,please contact QQ/wechat:4108863 mail:4108863@qq.com
13-
* http://www.hihttps.com
12+
* For more ,please contact QQ/wechat:4108863 mail:4108863@qq.com wechat:httpwaf
13+
* http://www.hihttps.com http://59.110.1.135/
1414
*/
1515

1616

src/configuration.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* configuration.c
2+
* configuration.c by wechat:httpwaf
33
*
44
*/
55

src/logging.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1010
* GNU General Public License for more details.
1111
*
12-
* For more ,please contact QQ/wechat:4108863 mail:4108863@qq.com
12+
* For more ,please contact QQ/wechat:4108863 mail:4108863@qq.com wechat:httpwaf
13+
* http://www.hihttps.com http://59.110.1.135/
1314
*/
1415

1516

17+
1618
#include "config.h"
1719

1820
#include <sys/socket.h>

src/ocsp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1010
* GNU General Public License for more details.
1111
*
12-
* For more ,please contact QQ/wechat:4108863 mail:4108863@qq.com
12+
* For more ,please contact QQ/wechat:4108863 mail:4108863@qq.com wechat:httpwaf
13+
* http://www.hihttps.com http://59.110.1.135/
1314
*/
1415

1516

17+
1618
#include <sys/select.h>
1719
#include <sys/socket.h>
1820

src/ringbuffer.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1010
* GNU General Public License for more details.
1111
*
12-
* For more ,please contact QQ/wechat:4108863 mail:4108863@qq.com
12+
* For more ,please contact QQ/wechat:4108863 mail:4108863@qq.com wechat:httpwaf
13+
* http://www.hihttps.com http://59.110.1.135/
1314
*/
1415

16+
1517

1618

1719
#include <stdlib.h>

0 commit comments

Comments
 (0)