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 


[solved] patch opcode in plugin container of Firefox

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Shiekah
How do I cheat?
Reputation: 0

Joined: 04 Oct 2010
Posts: 2

PostPosted: Mon Oct 04, 2010 8:41 am    Post subject: [solved] patch opcode in plugin container of Firefox Reply with quote

Hello everybody,

I try to make it clear and easy to understand what I am trying to do:

Goal:
Patch an OpCode in a Flash Game in Firefox.

What I've done:

1. with CE i search for an AoB, add the adress to the cheat table and edit the OpCode directly in the table (Value). Problem is, that I've to search everytime I reload the page/restart firefox.

so I went to the Pointer

2. seeking an offset from the Basepointer of the plugin-container.exe from firefox, when...
a) reload the page
b) restart firefox
c) open other swf's like YouTube or anything else

Result: no chance to find an Offset as it depence on how many Flash's are currently open.

so I've always to search the AoB by myself with the CE Searchtool, and that's annoying.

Question: is there a solution to make an AA-Script or C/C++ Script to achieve my goal or to automate the search of the AoB?

thank you in advance
Shiekah

edit I've found this one:
Quote:

CE has an AOB scanner as part of the AA language. Look into :
- aobscan(varname, arrayofbyte)


either delete or leave the post
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 112

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Mon Oct 04, 2010 8:59 am    Post subject: Reply with quote

Pointers and stuff like that are usually useless in flash games. At least if You want to find a pointer for a code.

You can write Your script in AA and use AOBscan as described.


Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(exit)
label(somelabel)
registersymbol(somelabel)
aobscan(somename,xx xx xx xx xx xx xx)

somename:
somelabel:
jmp newmem
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
db xx xx xx xx //new bytes that You want to add

exit:
jmp returnhere

 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
somelabel:
db xx xx xx xx //the original bytes
unregistersymbol(somelabel)



Or You can write an even shorter one but this is not far from the general template that CE will create.

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
Shiekah
How do I cheat?
Reputation: 0

Joined: 04 Oct 2010
Posts: 2

PostPosted: Mon Oct 04, 2010 9:52 am    Post subject: Reply with quote

Thank you for your template. the patching works but I've got a new problem:

from the address of the AoB add 22 bytes (eg. [somelabel+16]) I want to toggle the Value (Type Double) -> (mov [somelabel+16],VALUE). I can't do it with Enable/Disable becuase i don't want to repatch to the original AoB -> ergo: the script won't run after re-enabling
Quote:
If it's not found, the auto assemble script will not execute


how can I solve this problem?
Thank you
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 112

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Mon Oct 04, 2010 11:10 am    Post subject: Reply with quote

You can use * as a wildcard for aobscan.

Like

aobscan(somename, 16 78 96 * * * * 24 46)

will find every array where * could be any byte. Use * on the code that You have changed and aobscan will find it again.

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
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