A forum for reverse engineering, OS internals and malware analysis 

Ask your beginner questions here.
 #14385  by RHL
 Sun Jul 01, 2012 4:29 am
Hello All, I would like know who could to help me, please.
I'm trying to hide a process via pspCidtable for my learning, but I cannot do it
I have understood that the comparation must be so:

void HideObject(PHANDLE_TABLE_ENTRY Entry)
{
PVOID obj = (PVOID)((ULONG)Entry->Object & 0xfffffff8);

if (obj == (long)MyEPROCESS) // MyEPROCESS = address to EPROCESS to hide
{
Entry->Object = 0;
}
}

but the object is never equal to EPROCESS
could anyone help me?