Posted May 18, 20178 yr Hi, I am coding a dll for patching a vmp target. Everything goes well but when I change the permission of codesection using VirtualProtect api the function failed and program crashed when changing dwords in Codesection. When I change the permission manually through ollydbg then it works. Anyone can explain it why?
May 18, 20178 yr Did you tried GetLastError to see the error code, runned after VirtualProtect api to see why it failed? Canging code section is not posible if it doesn't had the Write access flag! Can you also post your code? Maybe I will figure out what you did wrong!
May 18, 20178 yr Author 7 minutes ago, CodeCracker said: Did you tried GetLastError to see the error code, runned after VirtualProtect api to see why it failed? Canging code section is not posible if it doesn't had the Write access flag! Can you also post your code? Maybe I will figure out what you did wrong! Hi I send full code to your inbox
May 18, 20178 yr vmp 3.x LoadLibraryA the DLL(AntiHookZwProtectVirtualMemory.dll) AntiHookZwProtectVirtualMemory.rar
Create an account or sign in to comment