Check out code injection in vb.net
It's pretty easy.
i have some assembly codes that i found in cheat engine
mov eax,[ecx+5C]
test eax,eax
mov eax,[ecx+60]
test eax,eax
the original code is 5C. and i want to change it to 60.
this can be easily done in cheat engine, but i couldn't do it in VB. i searched google up and down and all i could find was memory classes that modify a specific value (eg ammo)
Note: i saw some assembly stuff but they are only for VB6. i'm using VB 2010.
Check out code injection in vb.net
It's pretty easy.
D1N4MIC (02-06-2015)
Well sorry for my mistake. in the original thread i didn't notice that i wrote VB instead of VB.net. but because i wrote VB.net in the title it should have been clear that i'm talking about VB.net.
your question conduced me for some reason.
also keep in mind that i'm very new to the language.
- - - Updated - - -
i googled that. the only thing i found was SQL injection and DLL injector. not really what i'm looking for.
If I google that the first 3 results will solve your problem. But nvm.
The ASM code is native, with vb.net you cant handle pointers and create native code, this is only possible in C++.
But vb.net is pretty extensive. For explanation whta you have to do now:
Your ASM codes are executed in memory at a location(address). And at this location will be stored some bytes.
You have to patch those bytes, with your own ones. You can easily do this with writeMemory()
For example:
Code:Address: Asm-code 12345678: mov eax,[ecx+5C] So the Bytes(Value) of your address is, only for example, 8B 139 117
D1N4MIC (02-06-2015)