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 


Where is "create jump and initialize code-cave"opt

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

Joined: 13 Jan 2008
Posts: 52

PostPosted: Sat May 07, 2011 1:57 am    Post subject: Where is "create jump and initialize code-cave"opt Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25819
Location: The netherlands

PostPosted: Sat May 07, 2011 3:32 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
adaptusaaf
Advanced Cheater
Reputation: 0

Joined: 13 Jan 2008
Posts: 52

PostPosted: Sat May 07, 2011 1:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25819
Location: The netherlands

PostPosted: Wed Jun 08, 2011 11:56 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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