/
ihandlers_and_conf.patch
47 lines (46 loc) · 1.55 KB
/
ihandlers_and_conf.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
diff --git a/conf/dionaea.conf.dist b/conf/dionaea.conf.dist
index 43e17b4..7b16529 100644
--- a/conf/dionaea.conf.dist
+++ b/conf/dionaea.conf.dist
@@ -344,6 +344,16 @@ modules = {
user = "" // username (optional)
pass = "" // password (optional)
}
+ hpfeeds = {
+ hp1 = {
+ server = ""
+ port = ""
+ ident = ""
+ secret = ""
+ // dynip_resolve: enable to lookup the sensor ip through a webservice
+ dynip_resolve = "http://hpfeeds.honeycloud.net/ip"
+ }
+ }
logsql = {
mode = "sqlite" // so far there is only sqlite
sqlite = {
@@ -457,6 +467,7 @@ modules = {
// "virustotal",
// "mwserv",
// "submit_http",
+ "hpfeeds",
// "logxmpp",
// "nfq",
// "p0f",
diff --git a/modules/python/scripts/ihandlers.py b/modules/python/scripts/ihandlers.py
index 5b40dd7..8bddc63 100644
--- a/modules/python/scripts/ihandlers.py
+++ b/modules/python/scripts/ihandlers.py
@@ -129,6 +129,13 @@ def new():
import dionaea.submit_http
g_handlers.append(dionaea.submit_http.handler('*'))
+ if "hpfeeds" in g_dionaea.config()['modules']['python']['ihandlers']['handlers'] and 'hpfeeds' in g_dionaea.config()['modules']['python']:
+ import dionaea.hpfeeds
+ for client in g_dionaea.config()['modules']['python']['hpfeeds']:
+ conf = g_dionaea.config()['modules']['python']['hpfeeds'][client]
+ x = dionaea.hpfeeds.hpfeedihandler(conf)
+ g_handlers.append(x)
+
if "fail2ban" in g_dionaea.config()['modules']['python']['ihandlers']['handlers']:
import dionaea.fail2ban
g_handlers.append(dionaea.fail2ban.fail2banhandler())