Lots of new visualisations.
Looks like I will be updating my systems!
docker run -p 10000:10000 -p 80:80 -p 3000:3000 -p 8089:8089 --name mhn -t -i ubuntu:14.04.2 /bin/bash
Plus more ports later ?
Next, create and run the following script:
#!/bin/bash
set -x
apt-get update
apt-get upgrade -y
apt-get install git wget gcc supervisor -y
cd /opt/
git clone https://github.com/threatstream/mhn.git
cd mhn
cat > /etc/supervisor/conf.d/mhntodocker.conf <<EOF
[program:mongod]
command=/usr/bin/mongod
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s.log
autorestart=true
autostart=true
[program:nginx]
command=/usr/sbin/nginx
stdout_events_enabled=true
stderr_events_enabled=true
autostart=true
autorestart=true
EOF
mkdir -p /data/db /var/log/mhn /var/log/supervisor
supervisord &
#Starts the mongod service after installation
echo supervisorctl start mongod >> /opt/mhn/scripts/install_mongo.sh
./install.sh
supervisorctl restart all
docker stop image docker commit image newimage
docker run -p 1-10000:1-100000 - --name mhn -t -i newimage /bin/bash
docker run -p 7000-8000:7000-8000docker stop test01
docker commit test01 test02
test02 is a new image that I'm constructing from the test01 container.docker run -p 8080:8080 -td test02
docker pull honeynet/conpotdocker run -it -p 80:80 -p 102:102 -p 502:502 -p 161:161/udp --network=bridge honeynet/conpot:latest /bin/shconpot --template defaulthttp://MY_IP_ADDRESS to confirm the setup.# as root
rm /etc/supervisor/conf.d/p0f.conf
supervisorctl update
rm -rf /var/empty/p0f /opt/p0f /var/log/p0f.*
mongo mnemosyne
> db.session.remove({})
> db.metadata.remove({})
> db.counts.remove({})
> db.file.remove({})
> db.hpfeed.remove({})
> db.dork.remove({})
> db.url.remove({})
> db.daily_stats.remove({})
sudo gedit /etc/ssh/sshd_config
PasswordAuthentication yes
sudo restart ssh