I believe here is the fix. This just needs to be integrated into the kippo deploy.
ensure this is in the kippo.cfg
[honeypot]
ssh_addr = 127.0.0.1
ssh_port = 64222
| vagrant@mhn-server:~$ mongo | |
| MongoDB shell version: 2.6.4 | |
| connecting to: test | |
| Welcome to the MongoDB shell. | |
| For interactive help, type "help". | |
| For more comprehensive documentation, see | |
| http://docs.mongodb.org/ | |
| Questions? Try the support group | |
| http://groups.google.com/group/mongodb-user | |
| > use hpfeeds |
| sharklasers.com | |
| grr.la | |
| guerrillamail.biz | |
| guerrillamail.com | |
| guerrillamail.de | |
| guerrillamail.net | |
| guerrillamail.org | |
| guerrillamailblock.com | |
| spam4.me | |
| maildrop.cc |
| map $http_upgrade $connection_upgrade { | |
| default upgrade; | |
| '' close; | |
| } | |
| server { | |
| listen 8443 ssl; | |
| ssl_certificate /etc/ssl/private/mhn.yourcompany.com.pem; | |
| ssl_certificate_key /etc/ssl/private/mhn.yourcompany.com.pem; |
| { | |
| "ok": true, | |
| "message": "ok", | |
| "result": [ | |
| { | |
| "class": "in", | |
| "type": "a", | |
| "query": "www.google.com.", | |
| "answer": "213.155.151.152", | |
| "ttl": 300, |
I believe here is the fix. This just needs to be integrated into the kippo deploy.
ensure this is in the kippo.cfg
[honeypot]
ssh_addr = 127.0.0.1
ssh_port = 64222
| #!/bin/bash | |
| PAST_TIMESTAMP="$(date +%s -d '5 min ago')000" | |
| mongoexport \ | |
| --csv --quiet \ | |
| --fields timestamp,source_ip,source_port,destination_port,honeypot \ | |
| --db mnemosyne \ | |
| --collection session \ | |
| --query "{ timestamp: {\$gt: new Date($PAST_TIMESTAMP)}}" > /tmp/mhn-report.txt |
| { | |
| "template": "mhn-*", | |
| "settings": { | |
| "number_of_shards": 5, | |
| "number_of_replicas": 0, | |
| "refresh_interval": "30s" | |
| }, | |
| "mappings": { | |
| "_default_": { | |
| "_source": { |
| { | |
| "channels": [ | |
| "amun.events", | |
| "dionaea.connections", | |
| "dionaea.capture", | |
| "glastopf.events", | |
| "beeswarm.hive", | |
| "kippo.sessions", | |
| "conpot.events", | |
| "snort.alerts", |
For each of the files below, make sure the proxy settings are added (and obviously change the user/pass/domain/port)
These need to be set for both the MHN server and the honey systems you intend to deploy on (assuming the honeypots are behind the firewall).
ALL_PROXY=http://user:password@your.corporate.proxy.hostname.com:8080
HTTP_PROXY=http://user:password@your.corporate.proxy.hostname.com:8080
HTTPS_PROXY=http://user:password@your.corporate.proxy.hostname.com:8080
| import re | |
| import base64 | |
| import sys | |
| def remove_padding(b): | |
| b = b.rstrip('\n') | |
| m = re.search(r'(=+)', b) | |
| if m: | |
| padding_amt = len(m.group(1)) + 1 | |
| return b[:len(b)-padding_amt] |