Categories > Coding > C++ >
Exception thrown at 0x01262400 in victim.exe: 0xC0000005: Access violation while executing at position 0x01262400.
Posted
Alright, i got this error today and i dont know how to fix it
my dll source code: https://pastebin.com/LWndzWJU
and my victim.exe source code: https://pastebin.com/4NeFnMF8
when pressing space it closes and throws me this error
Exception thrown at 0x01262400 in victim.exe: 0xC0000005: Access violation while executing at position 0x01262400.
Added
@_realnickk https://www.file-upload.net/download-14443152/dumpedvictimfile.exe.html
Cancel
Post
Added
@_realnickk Nope wont fix it. DeepPain said something about VirtualProtect but how do i use it?
Cancel
Post
C# and JavaScript |Â Learning C++
Join [Cyrup]
Replied
@WhiteCat Nothing to do with VirtualProtect, the address is legit just wrong. The method addresses are static in your case, nothing is relocated, you don't need to add from any module base. You just need to use the address you got.
Example of trying to call a function with a no access page:
https://cdn.discordapp.com/attachments/795053390194409492/801641467567013888/clown_306_1400_11.png
Page at address:
Windows Page Definitions:
Edit: Also, why are you using stdcall for your function typedef? MSVC in legit any case will generate __cdecl for those functions, there's no reason it wouldn't
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post