Skip to content

Instantly share code, notes, and snippets.

@kwilson7770
kwilson7770 / gist:457650ca951e9e2c67f982a0e7b7e5c5
Last active September 12, 2022 10:46
Installing mitmproxy on CentOS
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"
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
@kwilson7770
kwilson7770 / install_docket.sh
Last active January 29, 2018 21:49
Install and Setup Docket on CentOS 7
#!/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