Jump to content


Photo

Grabbing Title Module Size From Socket Dll?


  • Please log in to reply
No replies to this topic

#1 Dwack

Dwack

    X-S Young Member

  • Members
  • Pip
  • 51 posts

Posted 23 May 2011 - 02:25 AM

So I got some code I borrowed from [c0z], thanks to open source DashLaunch.

I am trying to modify it a little for a project I am working on but have hit a road block.
CODE
PLDR_DATA_TABLE_ENTRY ldat;
ldat = (PLDR_DATA_TABLE_ENTRY)GetModuleHandle("xam.xex");
//Works


CODE
PLDR_DATA_TABLE_ENTRY ldat;
ldat = (PLDR_DATA_TABLE_ENTRY)GetModuleHandle("default.xex");
//Doesn't Work


The above examples are followed by:
CODE

if (ldat != NULL)
{
    DWORD imgSize = ldat->SizeOfFullImage;
    //Dump game memory using above image size
}
else
    XShowMessageBox... // Error


Why does xam.xex work and not default.xex? Does it have something do to with default.xex being an active title? I even tried using a security_info struct, had even worse results.

Any help would be great...
Thanks - Dwack

EDIT* - Doing this on a JTAG

Edited by Dwack, 23 May 2011 - 02:27 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users