This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "This code must be run as root" | |
else | |
### UPDATE THIS SECTION ### | |
# Configure your sensor interface for stenographer (will be configured for this role) | |
sensor_if=ens160 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update && apt-get upgrade -y | |
sudo apt install python3-pip | |
sudo pip3 install -U pip | |
sudo pip3 install cryptogrpahy | |
sudo pip3 install mitmproxy | |
sudo apt-get install vim net-tools traceroute -y | |
sudo apt-get install iptables-persistent | |
sudo iptables -F | |
sudo iptables -t nat -F | |
sudo iptables -t nat -A PREROUTING -i enp0s8 -p tcp --dport 80 -j REDIRECT --to-port 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install CentOS-7-x86_64-Minimal-1804.iso, log in, and run these commands: | |
echo "Installing updates and packages..." | |
yum install -y -q epel-release | |
yum install -y -q nload vim nano wget chrony open-vm-tools unzip tcpdump mlocate net-tools nmap bind-utils | |
yum update -y | |
echo "Finished installing updates and packages..." | |
echo "Setting important variables for these commands..." | |
hostname="mitmproxy" |