Guest User

Untitled

a guest
Oct 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <windows.h>
  2.  
  3. typedef struct _LSA_UNICODE_STRING {
  4. USHORT Length;
  5. USHORT MaximumLength;
  6. PWSTR Buffer;
  7. } LSA_UNICODE_STRING, *PLSA_UNICODE_STRING, UNICODE_STRING, *PUNICODE_STRING;
  8.  
  9. main(){
  10. PUNICODE_STRING str;
  11.  
  12. __asm {
  13. mov eax, fs:[0x30]
  14. mov eax, [eax+0x10]
  15. add eax, 0x40
  16. mov [str], eax
  17. }
  18.  
  19. wprintf(L"Length: %u\nCommand Line: %s\n", str->Length, str->Buffer);
  20. }
Add Comment
Please, Sign In to add comment