Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #!/bin/bash
  2.  
  3. # Blueberry - The Wifi Pineapple Mark V, created by Samiux
  4. # killwp5.sh
  5.  
  6. echo "$(tput setaf 1)  _       ___ _______    ____  _                              __   "
  7. echo " | |     / (_) ____(_)  / __ \\(_)___  ___  ____ _____  ____  / /__ "
  8. echo " | | /| / / / /_  / /  / /_/ / / __ \/ _ \/ __ '/ __ \/ __ \/ / _ \\"
  9. echo " | |/ |/ / / __/ / /  / ____/ / / / /  __/ /_/ / /_/ / /_/ / /  __/"
  10. echo " |__/|__/_/_/   /_/  /_/   /_/_/ /_/\___/\__,_/ .___/ .___/_/\___/ "
  11. echo " $(tput sgr0) OWN the Network                            $(tput setaf 1)/_/   /_/$(tput sgr0)       v2.2"
  12. echo ""
  13. echo ""
  14. echo "Reset the setting of Blueberry - The WiFi Pineapple Mark V - PC Tethering ...."
  15. echo ""
  16. echo "Only for reset the previous setting,"
  17. echo "if you did not run the wp5.sh before, do NOT run this script."  
  18. echo "Otherwise, you cannot connect to the internet."
  19. echo ""
  20. echo "Your current iptables rules ....."
  21. echo ""
  22. iptables -L
  23. echo ""
  24. echo "It will DELETE all iptables rules (if any) ...."
  25. echo ""
  26. echo -n "Are you sure to run this script (Y/N) - [default - Y]? "
  27. read doit
  28. if [[ $doit == '' ]] || [[ $doit == 'Y' ]] || [[ $doit == 'y' ]]; then
  29.     route del -net 172.16.42.0 netmask 255.255.255.0
  30.     iptables -X
  31.     iptables -F
  32.     echo '0' > /proc/sys/net/ipv4/ip_forward
  33.     route -n
  34.     echo "Reset completed!"
  35.     echo ""
  36.     echo "If you do not see any default gateway, you need to reboot your PC."
  37.     echo "Otherwise, you cannot access to the internet."
  38.     echo "It is because you did not run wp5.sh before."
  39. else
  40.     echo ""
  41.     echo "Nothing to do, quit!"
  42. fi