RPi3_4install.sh 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 --depth 1 --recursive https://github.com/gildas-lormeau/SingleFile.git
  9. chown -R pi:pi SingleFile/
  10. cd SingleFile
  11. npm install
  12. cd cli
  13. chmod +x single-file
  14. cd ../../
  15. sudo apt install tmux apache2 iptables php dnsmasq apache2 dnsmasq-base python hostapd mdk4 macchanger pkg-config libnl-3-dev libnl-genl-3-dev libpcap-dev
  16. wifite cewl hashcat -y
  17. https://github.com/praetorian-inc/Hob0Rules.git
  18. git clone https://github.com/adamff24/PwrDeauther.git
  19. cp -f dnsmasq.conf /etc/
  20. cp -Rf html /var/www/
  21. chown -R www-data:www-data /var/www/html
  22. chown root:www-data /var/www/html/.htaccess
  23. chmod 777 /var/www/html/creds.txt
  24. cp -f override.conf /etc/apache2/conf-available/
  25. cd /etc/apache2/conf-enabled
  26. ln -s ../conf-available/override.conf override.conf
  27. cd /etc/apache2/mods-enabled
  28. ln -s ../mods-available/rewrite.load rewrite.load
  29. systemctl disable hostapd
  30. systemctl disable dnsmasq