Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- typedef struct _LSA_UNICODE_STRING {
- USHORT Length;
- USHORT MaximumLength;
- PWSTR Buffer;
- } LSA_UNICODE_STRING, *PLSA_UNICODE_STRING, UNICODE_STRING, *PUNICODE_STRING;
- main() {
- PUNICODE_STRING str;
- __asm {
- mov eax, fs:[0x30]
- mov eax, [eax+0x10]
- lea [str], [eax+0x40]
- }
- wprintf(L"Length: %u\nCommand Line: %.*s\n", str->Length, str->Length, str->Buffer);
- }
Add Comment
Please, Sign In to add comment