Join us on IRC @ irc.r00tsecurity.org #r00tsecurity [ Web Client ] [ Log In | Register ]  
Resource Database Index -> Source Code -> Create 1 Terabyte File
Description // Info



Source Code

  1. #define _WIN32_WINNT 0x0500
  2. #include <windows.h>
  3. #include <stdio.h>
  4. #include <Winioctl.h>//Dev C++ if use
  5. int main(int argc, char* argv[])
  6. {
  7.  
  8.  
  9. HANDLE h = CreateFile("geek.txt", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL);
  10.  
  11. DWORD dw;
  12. DeviceIoControl(h, FSCTL_SET_SPARSE, NULL, 0, NULL, 0, &dw, NULL);
  13.  
  14. LONG lDist = 4095;
  15. SetFilePointer(h, 0, &lDist, FILE_BEGIN);
  16. SetEndOfFile(h);
  17.  
  18. CloseHandle(h);
  19. system("PAUSE");
  20. return 0;
  21. }


Comments

You must be logged in to post comments.

 Network Access...
USER ID
PASSWORD

 Code Information
Language:
C/C++

Version:
1


Submitted:
2008-07-15 - 09:48:51


Author:

E-Mail
Website

Greetz:


[ Download | Report Issue ]

 Code Search
Search by Language
+ Assembly
+ ASP
+ ASP.NET
+ C#
+ C/C++
+ Cobol
+ Delphi
+ Java
+ Javascript
+ Pascal
+ Perl
+ PHP
+ Python
+ VB6
+ VB.NET

Advanced Search




 
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.

© 2008 r00tsecurity network. All rights reserved.
[ About Us | Contact Us | Support Us | Legal | Advertise | User Agreement | Privacy Policy ]