Skip to content

Commit

Permalink
Bump to v1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
trixam committed Aug 15, 2022
1 parent f7035d7 commit e625aec
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
23 changes: 14 additions & 9 deletions ews.cfg.docker
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,21 @@ nodeid = citrix-community-01
logfile = /data/citrixhoneypot/log/server.log

[REDISHONEYPOT]
redishoneypot = false
nodeid = <your unique analyzer id>
logfile = /opt/redishoneypot/log/redishoneypot.log
redishoneypot = true
nodeid = redishoneypot-community-01
logfile = /data/redishoneypot/log/redishoneypot.log

[ENDLESSH]
endlessh = false
nodeid = <your unique analyzer id>
logfile = /opt/endlessh/log/endlessh.log
endlessh = true
nodeid = endlessh-community-01
logfile = /data/endlessh/log/endlessh.log

[SENTRYPEER]
sentrypeer = false
nodeid = <your unique analyzer id>
logfile = /opt/sentrypeer/log/sentrypeer.json
sentrypeer = true
nodeid = sentrypeer-community-01
logfile = /data/sentrypeer/log/sentrypeer.json

[LOG4POT]
log4pot = true
nodeid = log4pot-community-01
logfile = /data/log4pot/log/log4pot.log
16 changes: 8 additions & 8 deletions ews.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from urllib import parse

name = "EWS Poster"
version = "v1.22"
version = "v1.23"

def ipphoney():

Expand Down Expand Up @@ -1004,7 +1004,7 @@ def cowrie():
cowrieSessions[sid]['input'].append(line['input'])
except:
cowrieSessions[sid]['input'] = [line['input']]

if line['eventid'] == 'cowrie.client.version' and line['session'] in cowrieSessions:
if "b'" in line["version"]:
cowrieSessions[sid]['version'] = re.search(r"b'(.*)'", line["version"], re.M).group(1)
Expand Down Expand Up @@ -1056,7 +1056,7 @@ def cowrie():

def suricata():

# MS 2021-11-17 temporarily disabled
# MS 2021-11-17 temporarily disabled
return()

suricata = EAlert('suricata', ECFG)
Expand Down Expand Up @@ -1320,7 +1320,7 @@ def endlessh():

endlessh.data('source_address', line.split(' ')[2].replace('host=', ''))
endlessh.data('target_address', ECFG['ip_ext'])
endlessh.data('source_port', line.split(' ')[3].replace('port=', ''))
endlessh.data('source_port', line.split(' ')[3].replace('port=', ''))
endlessh.data('target_port', '22')
endlessh.data('source_protokoll', 'tcp')
endlessh.data('target_protokoll', 'tcp')
Expand All @@ -1336,7 +1336,7 @@ def endlessh():
break

endlessh.finAlert()
return()
return()


def sentrypeer():
Expand Down Expand Up @@ -1366,8 +1366,8 @@ def sentrypeer():

sentrypeer.data('source_address', line['source_ip']) if 'source_ip' in line else None
sentrypeer.data('target_address', line['destination_ip']) if 'destination_ip' in line else None
sentrypeer.data('source_port', '5060')
sentrypeer.data('target_port', '5060')
sentrypeer.data('source_port', '5060')
sentrypeer.data('target_port', '5060')
sentrypeer.data('source_protokoll', line['transport_type'].lower()) if 'transport_type' in line else None
sentrypeer.data('target_protokoll', line['transport_type'].lower()) if 'transport_type' in line else None

Expand All @@ -1382,7 +1382,7 @@ def sentrypeer():
break

sentrypeer.finAlert()
return()
return()


def log4pot():
Expand Down

0 comments on commit e625aec

Please sign in to comment.