반응형
include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(int argc, char **argv){

   char cmd[100];

   if( argc!=2 ){
       printf( "Auto Digger Version 0.9\n" );
       printf( "Usage : %s host\n", argv[0] );
       exit(0);
   }

   strcpy( cmd, "dig @" );
   strcat( cmd, argv[1] );
   strcat( cmd, " version.bind chaos txt");

   system( cmd );

}

반응형
Posted by Real_G