Hello guys, today, i'm trying to create a simple driver that lists all processes using the plist_entry structure (blink,flink).
Now, i understand that if i want to exploit it i gotta access in this structure from the PEPROCESS structure, so that's what i tried to do:
PLIST_ENTRY currentLink;
ULONG thisProcessAddr;
thisProcess = PsGetCurrentProcess();// system process, pid 4
thisProcessAddr = (ULONG)thisProcess; //getting base addr of the PEPROCESS
currentLink = ((PLIST_ENTRY)thisProcessAddr + ACTIVE_PROCESS_LINK_OFFS64); //win 10 x64 offset ACTIVE_PROCESS_LINK_OFFS64
Now, i understand that if i want to exploit it i gotta access in this structure from the PEPROCESS structure, so that's what i tried to do:
PLIST_ENTRY currentLink;
ULONG thisProcessAddr;
thisProcess = PsGetCurrentProcess();// system process, pid 4
thisProcessAddr = (ULONG)thisProcess; //getting base addr of the PEPROCESS
currentLink = ((PLIST_ENTRY)thisProcessAddr + ACTIVE_PROCESS_LINK_OFFS64); //win 10 x64 offset ACTIVE_PROCESS_LINK_OFFS64