AaronGorbaty / HoneyPotProject

This container honeypot study will examine attacker trends related to which ports are available on a system.
2 stars 0 forks source link

MITM Configurations #40

Closed dmirani closed 1 year ago

Patiience commented 1 year ago

sudo forever -l /home/student/personalLogs/"personalContainer$date.log" -a start /home/student/MITM/mitm.js -n $2 -i $personalContainerIP -p 6901 --auto-access --auto-access-fixed 1 --debug --mitm-ip $hostIP

Run the above command, or something similar to run MITM in the background.

Patiience commented 1 year ago

Updated Code:

sudo forever -l ~/$DIRECTORY_NAME/"$CONTAINER_NAME.log -> $(date)" -a start --uid "mitm_id_$CONTAINER_NAME" ~/MITM/mitm.js -n $CONTAINER_NAME -i $CONTAINER_IP -p $MITM_PORT --auto-access --auto-access-fixed 1 --debug --mitm-ip $HOST_IP

sudo forever stop "mitm_id_$CONTAINER_NAME"

Note: sudo forever stop is using the --uid option to stop the forever process

Some more to consider:

Possible code needed for Deployment (Installing ACES MITM Server):

git clone https://github.com/UMD-ACES/MITM
cd ./MITM
sudo ./install.sh

Where MITM is installed needs to match the path for the 'start' argument in the sudo forever command.

Make sure containers have open-ssh server installed.

For installation of forever:

Patiience commented 1 year ago

Wiki Page: https://github.com/UMD-ACES/MITM/wiki/Running-in-the-Background

AaronGorbaty commented 1 year ago

Daniel the goat no Kizzy cap