RPi3B_4_0W_install.sh 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/bin/sh -e
  2. if [ "$(id -u)" != "0" ]; then
  3. echo "Run as Root" 1>&2
  4. exit 1
  5. fi
  6. sudo apt-get update -y && apt-get upgrade -y
  7. chmod 777 Cloned_Pages/
  8. apt install npm -y
  9. git clone https://github.com/praetorian-inc/Hob0Rules.git
  10. git clone --depth 1 --recursive https://github.com/gildas-lormeau/SingleFile.git
  11. chown -R pi:pi SingleFile/
  12. cd SingleFile
  13. npm install
  14. cd cli
  15. chmod +x single-file
  16. cd ../../
  17. sudo apt install tmux apache2 iptables php dnsmasq dnsmasq-base python hcxtools hostapd mdk4 macchanger pkg-config libnl-3-dev libnl-genl-3-dev libpcap-dev wifite cewl hashcat -y
  18. cp -f dnsmasq.conf /etc/
  19. cp -Rf html /var/www/
  20. chown -R www-data:www-data /var/www/html
  21. chown root:www-data /var/www/html/.htaccess
  22. chmod 777 /var/www/html/creds.txt
  23. cp -f override.conf /etc/apache2/conf-available/
  24. cd /etc/apache2/conf-enabled
  25. ln -s ../conf-available/override.conf override.conf
  26. cd /etc/apache2/mods-enabled
  27. ln -s ../mods-available/rewrite.load rewrite.load
  28. systemctl disable hostapd
  29. systemctl disable dnsmasq