1.) You're using an external process ( I assume that it's an external process since you're using ReadProcessMemory() ) and trying to use assembly to edit that process.
2.) Your code to modify the address only modifies the actual value passed ( In this case, "DWORD aRubish" ) in the local process.
Assuming you're using an external process, you cannot simply use:
Code:
mov xxx, yyy
I'll show you how to do it either way: External Method
@ @Benhero Do I close the thread & mark it as solved?
I do not use any type of messenger outside of MPGH. Inactive but you can reach me through VM/PM.
Donator - 30 August 2013
Battlefield Minion - 26 October 2013
Blackshot Minion - 14 January 2014/16 September 2014
Minecraft Minion - 7 February 2014/16 September 2014
WarRock Minion - 23 February 2014
League of Legends Minion - 21 March 2014 Minion+ - 15 May 2014
Other Semi-Popular First Person Shooter Minion - 8 August 2014
CrossFire Minion - 23 October 2014
Programming Section Minion - 13 November 2014
Marketplace Minion - 7 December 2014 Official Middleman - 7 December 2014 - 27 June 2015 Moderator - 29 December 2014
Project Blackout Minion - 10 January 2015 News Force Interviewer - January 2015
Steam Games Minion - 21 March 2015
Dragon Nest Minion - 31 March 2015 Publicist - April 2015 - 21 September 2015 Global Moderator - 25 August 2015 Super User - 13 August 2016
"fessie.exe+508B" is the same as "0040508B". What did you mean with Write flag?
I din't ever use VirtualProtect. I'll try it.. But i don't wanna use WMP.
"fessie.exe+508B" is the same as "0040508B". What did you mean with Write flag?
I din't ever use VirtualProtect. I'll try it.. But i don't wanna use WMP.
Greatz
0040508B is part of the .code/.text section, and for standards the code section has only PAGE_EXECUTE_READ flag, so you can't write at the code section without changing the memory page flags.