Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


code injection/asm instructions...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
LtO
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2015
Posts: 71

PostPosted: Thu Mar 01, 2018 8:00 am    Post subject: code injection/asm instructions... Reply with quote

Made some progress lately but I'm still pretty much still a beginner in this. I would like to run asm instructions/ code injection in a flash game, and wondering how to do that (if it's possible). Something like this:

ofs02f5:getlocal_0
getproperty Qname(PrivateNamespace("*","1"),"mTetrion")
pushstring "btn_joinGameSpec"
callproperty Qname(PackageNamespace(""),"GetAssetAsClass") 1

Should I look for the address of such instructions? Or could I just assemble a script...

Also I'd like to learn more about the relation between the values/instructions/addresses stored in your memory and the original code of a game... What could I read or is thhere some good tutorials for this? Smile
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Thu Mar 01, 2018 11:58 am    Post subject: Reply with quote

Assuming that's as3 bytecode, look up JIT compilation.

as1 & as2 are interpreted IIRC, so just change the bytecode.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
LtO
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2015
Posts: 71

PostPosted: Thu Mar 01, 2018 9:03 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Assuming that's as3 bytecode, look up JIT compilation.

as1 & as2 are interpreted IIRC, so just change the bytecode.


Ok, but this is probably as3 so what does it matter if as1&2 use iirc? And do you mean with bytecode the hex or... I've been trying to change some hex values of asm instructions but didn't succeed...
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Thu Mar 01, 2018 9:41 pm    Post subject: Reply with quote

IIRC stands for "If I Recall Correctly." It's been a long time since I last looked at anything made with as1 or as2, but I'm pretty sure they were interpreted.

I mentioned as1 and as2 in addition to as3 because I don't know if you're dealing with an old flash game or not.

You seem confused with terminology. The source code programmers write in actionscript is turned into actionscript bytecode. This bytecode is distributed to users in an .swf file that the users can run using the actionscript virtual machine. With regards to as3, the virtual machine will take the bytecode and JIT compile it into machine code (viewed by people as assembly) that the user's hardware can execute. Wikipedia has articles on most of these things.

If you want to modify the bytecode, then scan and change the AoBs before the code is JIT compiled. If you want to modify the assembly produced by the virtual machine, then find it and change it.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
LtO
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2015
Posts: 71

PostPosted: Fri Mar 02, 2018 2:06 pm    Post subject: Reply with quote

ParkourPenguin wrote:
IIRC stands for "If I Recall Correctly." It's been a long time since I last looked at anything made with as1 or as2, but I'm pretty sure they were interpreted.

I mentioned as1 and as2 in addition to as3 because I don't know if you're dealing with an old flash game or not.

You seem confused with terminology. The source code programmers write in actionscript is turned into actionscript bytecode. This bytecode is distributed to users in an .swf file that the users can run using the actionscript virtual machine. With regards to as3, the virtual machine will take the bytecode and JIT compile it into machine code (viewed by people as assembly) that the user's hardware can execute. Wikipedia has articles on most of these things.

If you want to modify the bytecode, then scan and change the AoBs before the code is JIT compiled. If you want to modify the assembly produced by the virtual machine, then find it and change it.


That makes sense, I tried on a very similar game one of my hacks, and I did find the values, could change it but nothing happened... Probably cuz it was already compiled and stored in memory in other values. Could those be found then or know how it is stored?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Fri Mar 02, 2018 2:36 pm    Post subject: Reply with quote

Complete the CE tutorial to learn the basics of code injection. It can be found under the "Help" menu in CE.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites