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 


Is this possible or not?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Fri Mar 04, 2016 9:35 am    Post subject: Is this possible or not? Reply with quote

so I am going to use a very old script as a example

Code:
aobscanmodule(A7_W8_XAML.exe+15F726,A7_W8_XAML.exe,F3 0F 11 87 A0 0E 00 00 E9 89)
alloc(newmem,$1000,"A7_W8_XAML.exe"+15F726)

label(code)
label(return)

newmem:

code:
  mov [rdi+00000EA0],(float)100
  jmp return

A7_W8_XAML.exe+15F726:
  jmp code
  nop
  nop
  nop
return:
registersymbol(A7_W8_XAML.exe+15F726)

aobscanmodule(A7_W8_XAML.exe+15F8FD,A7_W8_XAML.exe,F3 0F 11 87 A0 0E 00 00 EB 0B)
alloc(newmem2,$1000,"A7_W8_XAML.exe"+15F8FD)

label(code2)
label(return2)

newmem2:

code2:
  mov [rdi+00000EA0],(float)100
  jmp return2

A7_W8_XAML.exe+15F8FD:
  jmp code2
  nop
  nop
  nop
return2:
registersymbol(A7_W8_XAML.exe+15F8FD)


Is it possible to write a (db) instead of the mov [rdi+00000EA0],(float)100?
What I mean is do something like this (NOT REAL ARRAY OF BYTES WHICH I AM GOING TO USE)

Code:
aobscanmodule(A7_W8_XAML.exe+15F726,A7_W8_XAML.exe,F3 0F 11 87 A0 0E 00 00 E9 89)
registersymbol(A7_W8_XAML.exe+15F726)
FF 00 1F 9E 0C 84 AA

aobscanmodule(A7_W8_XAML.exe+15F8FD,A7_W8_XAML.exe,F3 0F 11 87 A0 0E 00 00 EB 0B)
registersymbol(A7_W8_XAML.exe+15F8FD)
db FF 00 1F 9E DB


is this possible to do or not?
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Fri Mar 04, 2016 9:39 am    Post subject: Reply with quote

rog9001 wrote:
Code:
aobscanmodule(A7_W8_XAML.exe+15F726,A7_W8_XAML.exe,F3 0F 11 87 A0 0E 00 00 E9 89)
registersymbol(A7_W8_XAML.exe+15F726)
FF 00 1F 9E 0C 84 AA

In short: Yes it is possible, but you'll need that "db" in front of your array ...
Back to top
View user's profile Send private message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Fri Mar 04, 2016 9:42 am    Post subject: Reply with quote

I know I need the (db) in front xD I just forgot to put it
Also I just tried and the game crashes. Would I need to put (90) for the nops in the

Code:

 A7_W8_XAML.exe+15F726:
   jmp code
   nop
   nop
   nop
 return:
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Fri Mar 04, 2016 9:48 am    Post subject: Reply with quote

Because of the length of the instructions.

The original instruction is 8 bytes long. Your "jmp code" instruction is only 5 bytes long which would most likely lead to access violations and memory leaks when not integrating the nops Smile
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