RPi3_4install.sh 919 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. git clone --depth 1 --recursive https://github.com/gildas-lormeau/SingleFile.git
  7. chown -R pi:pi SingleFile/
  8. cd SingleFile
  9. npm install
  10. cd cli
  11. chmod +x single-file
  12. cd ../../
  13. sudo apt-get update -y && apt-get upgrade -y
  14. sudo apt install tmux apache2 iptables git npm php dnsmasq apache2 dnsmasq-base python hostapd mdk3 macchanger -y
  15. git clone https://github.com/adamff24/PwrDeauther.git
  16. cp -f dnsmasq.conf /etc/
  17. cp -Rf html /var/www/
  18. chown -R www-data:www-data /var/www/html
  19. chown root:www-data /var/www/html/.htaccess
  20. chmod 777 /var/www/html/creds.txt
  21. cp -f override.conf /etc/apache2/conf-available/
  22. cd /etc/apache2/conf-enabled
  23. ln -s ../conf-available/override.conf override.conf
  24. cd /etc/apache2/mods-enabled
  25. ln -s ../mods-available/rewrite.load rewrite.load
  26. systemctl disable hostapd
  27. systemctl disable dnsmasq