 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Routess How do I cheat?
Reputation: 0
Joined: 14 Jan 2012 Posts: 5
|
Posted: Thu Jan 21, 2016 2:28 pm Post subject: AA script to DLL ? |
|
|
Hey guys, you think i can somehome convert this script to a dll ? so i can inject it with other tools ?
Code: | [ENABLE]
aobscanmodule(_OneHitKills,BlackOps3.exe,44 29 80 C8 02 00 00) // should be unique
alloc(newmem,$1000,BlackOps3.exe)
label(code)
label(return)
newmem:
mov [rax+000002C8],0
code:
sub [rax+000002C8],r8d
jmp return
_OneHitKills:
jmp newmem
nop
nop
return:
registersymbol(_OneHitKills)
[DISABLE]
_OneHitKills:
db 44 29 80 C8 02 00 00
unregistersymbol(_OneHitKills)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: "BlackOps3.exe"+6F714C
"BlackOps3.exe"+6F7116: F3 41 0F 11 45 58 - movss [r13+58],xmm0
"BlackOps3.exe"+6F711C: F3 0F 10 4D AC - movss xmm1,[rbp-54]
"BlackOps3.exe"+6F7121: F3 41 0F 11 4D 5C - movss [r13+5C],xmm1
"BlackOps3.exe"+6F7127: F3 0F 10 45 B0 - movss xmm0,[rbp-50]
"BlackOps3.exe"+6F712C: F3 41 0F 11 45 60 - movss [r13+60],xmm0
"BlackOps3.exe"+6F7132: 4C 8B 7C 24 68 - mov r15,[rsp+68]
"BlackOps3.exe"+6F7137: 48 8B 0D 6A 54 FC 06 - mov rcx,[BlackOps3.exe+76BC5A8]
"BlackOps3.exe"+6F713E: E8 3D 3D F5 FF - call BlackOps3.exe+64AE80
"BlackOps3.exe"+6F7143: 48 8B 47 08 - mov rax,[rdi+08]
"BlackOps3.exe"+6F7147: 44 8B 44 24 64 - mov r8d,[rsp+64]
// ---------- INJECTING HERE ----------
"BlackOps3.exe"+6F714C: 44 29 80 C8 02 00 00 - sub [rax+000002C8],r8d
// ---------- DONE INJECTING ----------
"BlackOps3.exe"+6F7153: 48 8B 4F 08 - mov rcx,[rdi+08]
"BlackOps3.exe"+6F7157: E8 F4 95 BE FF - call BlackOps3.exe+2E0750
"BlackOps3.exe"+6F715C: 84 C0 - test al,al
"BlackOps3.exe"+6F715E: 74 18 - je BlackOps3.exe+6F7178
"BlackOps3.exe"+6F7160: 48 8B 4F 08 - mov rcx,[rdi+08]
"BlackOps3.exe"+6F7164: 8B 81 C8 02 00 00 - mov eax,[rcx+000002C8]
"BlackOps3.exe"+6F716A: 41 3B C4 - cmp eax,r12d
"BlackOps3.exe"+6F716D: 44 0F 4D E0 - cmovge r12d,eax
"BlackOps3.exe"+6F7171: 44 89 A1 C8 02 00 00 - mov [rcx+000002C8],r12d
"BlackOps3.exe"+6F7178: 8B 45 84 - mov eax,[rbp-7C]
} |
|
|
Back to top |
|
 |
hhhuut Grandmaster Cheater
Reputation: 6
Joined: 08 Feb 2015 Posts: 607
|
Posted: Thu Jan 21, 2016 2:58 pm Post subject: |
|
|
Basically you just need to change the "BlackOps3.exe" into the name of the DLL you want to inject that script ...
Or you can use CE's own AOB-template to create such an injection within the DLL ...
|
|
Back to top |
|
 |
Routess How do I cheat?
Reputation: 0
Joined: 14 Jan 2012 Posts: 5
|
Posted: Thu Jan 21, 2016 4:43 pm Post subject: |
|
|
hhhuut wrote: | Basically you just need to change the "BlackOps3.exe" into the name of the DLL you want to inject that script ...
Or you can use CE's own AOB-template to create such an injection within the DLL ... |
No you misunderstood that. I want to create a DLL from this script. I dont want to inject the script into a dll...
|
|
Back to top |
|
 |
hhhuut Grandmaster Cheater
Reputation: 6
Joined: 08 Feb 2015 Posts: 607
|
Posted: Thu Jan 21, 2016 5:36 pm Post subject: |
|
|
Oh I see, my bad ...
You need to assemble those instructions so that you've got final bytes. These you can either write directly into a process's memory or copy it into a dll which you inject afterwards ...
|
|
Back to top |
|
 |
mgostIH Expert Cheater
Reputation: 3
Joined: 01 Jan 2016 Posts: 159
|
Posted: Fri Jan 22, 2016 1:18 pm Post subject: |
|
|
You can't do this automatically, you'll need to look at how to setup a DLL for injection purposes and then learning windows API for writing/reading process memory.
I also reccomend not to use AOB scan when not necessary, because while being successful at finding moving chunks of code, it's not really handy to program in c++ if you are a beginner.
But if you don't mind about learning, you can just copy/paste some code about AOB scanning and read/writing memory.
_________________
|
|
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
|
|