ShadowRayz Posted March 11, 2009 Posted March 11, 2009 Didn't see fit to put it in Reversing, its more of coding i think... Well, i try to load a .DLL and, to load one of it's processes...i wrote a test cpp code just to check that the proc name really does exist and it was added to the .DEF and all...everything's fine...it returns a handle to the DLL and the Process, as you can see here. but when i get to the GetProcAddress in olly with code i wrote in the cave, it fails and gives me LastErr = ERROR_MOD_NOT_FOUND. what have i done wrong? thanks.
DrPepUr Posted March 11, 2009 Posted March 11, 2009 Looks like you are pushing the address of the module i.e. offset hDLL when you should be pushing dword ptr [hDLL] or in your casePUSH 40C500 ; "Init"PUSH 40C530 ; hDLLCall GetProcAddressPUSH 40C500 ; "Init"PUSH DWORD PTR [40C530] ; hDLLCall GetProcAddressDoc
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now