 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
adaptusaaf Advanced Cheater
Reputation: 0
Joined: 13 Jan 2008 Posts: 52
|
Posted: Sat May 07, 2011 1:57 am Post subject: Where is "create jump and initialize code-cave"opt |
|
|
| In CE6, in memory viewer, I can't find the 'create jump and initialize code-cave" why is this wonderful tool removed from CE!?!?!
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25819 Location: The netherlands
|
Posted: Sat May 07, 2011 3:32 am Post subject: |
|
|
It was removed to make up room in the popup menu, but how often do you really use that as opposed to the auto assembler code injection template ?
tip: If you stand on the generated jmp instruction just press space to go to the new location
Perhaps if I get time I'll see about making a plugin that adds that option back to the menu or for 6.1 a luagui script that does the same
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
adaptusaaf Advanced Cheater
Reputation: 0
Joined: 13 Jan 2008 Posts: 52
|
Posted: Sat May 07, 2011 1:48 pm Post subject: |
|
|
| ok thanks, yeah I used it multiple times per hour while hacking games, it takes too much time to use AA when you're just testing to see if things work. you can't just change codes around in the game memory sometimes you need to make a code 7 bytes long thats only 3 bytes and it will overwrite something important below it. so I used the jmp and code cave option to test it temporarily see if it was useful, but with AA it takes forever to do this since I do it a lot and you have to keep reassigning new auto assemblers to cheat table it's annoying
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25819 Location: The netherlands
|
Posted: Wed Jun 08, 2011 11:56 am Post subject: |
|
|
Add this code to your main.lua or just execute it once and you'll have the create codecave popupmenu function
| Code: |
function createcodecaveroutine(sender)
--get the currently selected address
a=disassemblerview_getSelectedAddress(dis)
aascript=createStringlist()
strings_add(aascript,'alloc(lastautocreatedcodecave, 4096)')
strings_add(aascript,'registersymbol(lastautocreatedcodecave)')
strings_add(aascript,'lastautocreatedcodecave:')
start=a;
while (a-start<5) do
extra, opcode, bytes, address=splitDisassembledString(disassemble(a))
strings_add(aascript, opcode)
a=a+getInstructionSize(a)
end
strings_add(aascript,'db 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90');
strings_add(aascript,'db 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90');
strings_add(aascript,'db 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90');
strings_add(aascript,'db 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90');
strings_add(aascript,'db 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90');
strings_add(aascript,'db 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90');
strings_add(aascript,'db 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90');
strings_add(aascript,'db 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90');
strings_add(aascript,'jmp '..string.format('%x',a))
strings_add(aascript,' ')
strings_add(aascript,string.format('%x:',start));
strings_add(aascript,'jmp lastautocreatedcodecave');
autoAssemble(strings_getText(aascript))
disassemblerview_setSelectedAddress(dis, getAddress('lastautocreatedcodecave'))
object_destroy(aascript)
end
--add the menuitem
mvf=getMemoryViewForm()
dis=memoryview_getDisassemblerView(mvf)
popupmenu=control_getPopupMenu(dis)
popupitem=menu_getItems(popupmenu)
createcodecave=createMenuItem(popupmenu)
menuItem_setCaption(createcodecave,'Create jump and initialize code-cave')
menuItem_onClick(createcodecave, createcodecaveroutine)
menuItem_add(popupitem, createcodecave)
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|
|
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
|
|