Closed dmirani closed 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:
Daniel the goat no Kizzy cap
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.