RPi3B_4_0W_install.sh 1006 B

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. apt install npm -y
  8. git clone https://github.com/praetorian-inc/Hob0Rules.git
  9. git clone --depth 1 --recursive https://github.com/gildas-lormeau/SingleFile.git
  10. chown -R pi:pi SingleFile/
  11. cd SingleFile
  12. npm install
  13. cd cli
  14. chmod +x single-file
  15. cd ../../
  16. 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
  17. cp -f dnsmasq.conf /etc/
  18. cp -Rf html /var/www/
  19. chown -R www-data:www-data /var/www/html
  20. chown root:www-data /var/www/html/.htaccess
  21. chmod 777 /var/www/html/creds.txt
  22. cp -f override.conf /etc/apache2/conf-available/
  23. cd /etc/apache2/conf-enabled
  24. ln -s ../conf-available/override.conf override.conf
  25. cd /etc/apache2/mods-enabled
  26. ln -s ../mods-available/rewrite.load rewrite.load
  27. systemctl disable hostapd
  28. systemctl disable dnsmasq