Home General Computer Multimedia Business Lounge

Post Reply 
Penguji daur hidup linux worm
09-12-2010, 09:57 PM (This post was last modified: 09-16-2010 01:18 AM by mywisdom.)
Post: #1
Penguji daur hidup linux worm
Code:
/**program anak untuk menguji kehidupan induk linux worm
c0d3r: mywisdom
thanks: petimati,xtr0nic,whitehat,chaer newbie,flyf666,gunslinger,kiddies,isarock,n0te,cr4wl3r,newbee,v3n0m,gblack
special thanks to all devilzc0de crews and members
**/
#include <stdio.h>
#include <string.h>

int main()
{
FILE * awakenz;
char str[256];
char *ada_kotor;
char *ada_grep;
char *tanda_hidup1;
char *tanda_hidup2;
char *tanda_hidup3;
char *cacing_induk_hidup;
const char *hidup1= "R";
const char *hidup3= "R+";
const char *hidup2 = "S";
const char *penguji_cacing = "perl";    
const char *penguji_daur_hidup_cacing = "nama_worm.pl";
const char *penguji_current_cmd = "grep";
   for(;;)
    {
         cacing_induk_hidup= strstr("AxFRrtdADvDDAc","BzBzUstd");
     awakenz = popen("/bin/ps aux | grep nama_worm.pl", "r");
     while(fgets(str,sizeof(str),awakenz) != NULL)
         {
         int len = strlen(str)-1;
            if(str[len] == '\n')
             {
              str[len] = 0;
            
          
             ada_kotor= strstr(str,penguji_daur_hidup_cacing);
             ada_grep= strstr(str,penguji_current_cmd);
                     tanda_hidup1= strstr(str,hidup1);
                 tanda_hidup2= strstr(str,hidup2);
                       tanda_hidup3= strstr(str,hidup3);
             if((ada_kotor) && !(ada_grep))
                        {
                if( (tanda_hidup1) || (tanda_hidup2) || (tanda_hidup3))
                {
                               cacing_induk_hidup= strstr(str,penguji_cacing);
                    
                }    
            
            }    
            
                      
              }
           }

       fclose(awakenz);
      
       if(cacing_induk_hidup)
       {
           printf("\ncacing hidup\n");
       }
       else
       {
           printf("\ncacing mati\n");
    
       }
        cacing_induk_hidup= strstr("AxFRrtdADvDDAc","BzBzUstd");
      usleep(5000000);

    }

}
Find all posts by this user
Quote this message in a reply
09-12-2010, 10:44 PM
Post: #2
RE: Penguji daur hidup linux worm
jadi inget pas gath, linuk gw ditanem sesuatu stress
Find all posts by this user
Quote this message in a reply
09-12-2010, 11:15 PM
Post: #3
RE: Penguji daur hidup linux worm
om om ada yang bisa bantu jelasin cara kerjanya gimana ga??mewek

maklum orang awammewekmewekmewek
Visit this user's website Find all posts by this user
Quote this message in a reply
09-12-2010, 11:25 PM
Post: #4
RE: Penguji daur hidup linux worm
@chaer: kagak ditanem kli bos cuma disave ja di situ sourcenya ;))
Find all posts by this user
Quote this message in a reply
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Sekilas VFS pada linux kernel 2.4 ev1lut10n 1 229 01-21-2012 09:16 PM
Last Post: ketek
  IOCTL Programming Under Linux Kernel 2.6 ev1lut10n 3 341 11-25-2011 01:01 PM
Last Post: ketek
Heart Mengirim comand CUSD ke modem GSM dengan C (GNU/Linux) melati 4 641 06-05-2011 05:05 PM
Last Post: melati
  TCP Socket Programming dengan Bahasa C (Linux) mywisdom 8 1,479 04-20-2011 01:16 AM
Last Post: mywisdom
  [Tutor] compile dan run c++ d'linux jurank_dankkal 10 2,105 12-29-2010 06:26 PM
Last Post: donkey_code
  Memahami process info pseudo-filesystem di linux mywisdom 0 446 07-18-2010 04:14 PM
Last Post: mywisdom

Users Browsing
1 Guest(s)


Stop SOPA/PIPA | Discuss !