Categories > Coding > C++ >

Exception thrown at 0x01262400 in victim.exe: 0xC0000005: Access violation while executing at position 0x01262400.

WhiteCat

Paradox#8032

Posts: 275

Threads: 20

Joined: Dec, 2020

Reputation: 1

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.

  • 0

Added

@_realnickk do you have discord?

  • 0

Added

@_realnickk https://www.file-upload.net/download-14443152/dumpedvictimfile.exe.html

  • 0

Added

@_realnickk Nope wont fix it. DeepPain said something about VirtualProtect but how do i use it?

  • 0

C# and JavaScript | Learning C++

Join [Cyrup]

0x90

dingleberry#2286

vip

Posts: 249

Threads: 26

Joined: Dec, 2020

Reputation: 28

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: 

https://media.discordapp.net/attachments/795053390194409492/801641480656912424/clown_212_664_40.png?width=531&height=166

 

Windows Page Definitions:

https://media.discordapp.net/attachments/795053390194409492/801641492023476234/clown_311_440_51.png?width=352&height=52

 

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

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )