| View previous topic :: View next topic |
| Author |
Message |
wookii How do I cheat?
Reputation: 0
Joined: 23 Nov 2007 Posts: 2
|
Posted: Fri Nov 23, 2007 9:31 am Post subject: changing assembler code with a trainer |
|
|
hi, might be an easy one
but i was wondering if it is possible to change a assembler code using a trainer or what ever. NOPing the address does not help me out. Also i dont want to open ce all the time to edit it manually in ce memory viewer.
for example a want to change:
240192B2 - d9 86 b8 0b 00 00 - fld [esi+00000bb0]
to:
240192B2 - d9 86 b8 0b 00 00 - fld [esi+00000bb8]
im also interested how to genereate soem autoloader witch autoloads when my process starts, changes some values and quits itself afterwards.
eazzy
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Fri Nov 23, 2007 9:59 am Post subject: |
|
|
Well first of all the bytes here are already for: fld [esi+00000bb8]
240192B2 - d9 86 b8 0b 00 00 - fld [esi+00000bb0]
240192B2 - d9 86 b8 0b 00 00 - fld [esi+00000bb8]
But your answer is yes you can do what you are asking.
| Code: |
[ENABLE]
label(back)
????????: // Code cave address
fld [esi+00000bb8]
jmp back
240192B2:
jmp ????????
nop
back:
[DISABLE]
240192B2:
fld [esi+00000bb0]
|
Also you could do:
| Code: |
[ENABLE]
240192B2:
db d9 86 b8 0b 00 00
[DISABLE]
240192B2:
db d9 86 b0 0b 00 00
|
TMK:
ON.
| Code: |
POKE 240192B2 d9 86 b8 0b 00 00
|
OFF.
| Code: |
POKE 240192B2 d9 86 b0 0b 00 00
|
|
|
| Back to top |
|
 |
wookii How do I cheat?
Reputation: 0
Joined: 23 Nov 2007 Posts: 2
|
Posted: Fri Nov 23, 2007 11:35 am Post subject: |
|
|
MANY Thanks Labyrnth,
I,v done it
i used:
| Code: | [ENABLE]
240192B2:
db d9 86 b8 0b 00 00
[DISABLE]
240192B2:
db d9 86 b0 0b 00 00
|
best
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Nov 23, 2007 12:13 pm Post subject: |
|
|
| wookii wrote: | MANY Thanks Labyrnth,
I,v done it
i used:
| Code: | [ENABLE]
240192B2:
db d9 86 b8 0b 00 00
[DISABLE]
240192B2:
db d9 86 b0 0b 00 00
|
best |
Your script is overkill, better:
| Code: | [ENABLE]
240192B4:
db b8
[DISABLE]
240192B4:
db b0
|
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Fri Nov 23, 2007 6:51 pm Post subject: |
|
|
They are working with the address they found, so as to not confuse the situation even more the way i did it is very simple.
The outcome is exactly the same.
Allot of people don't know how to count address's.
Now instead of trying to show out, you could have explained why you used a different address then he posted.
But since you didn't i will explain it for you.
240192B2 d9 86 b0 0b 00 00
Each byte has it's own address so the byte you want to change is "b0"
@ address 240192B4
In the memory view you will see
240192B2
240192B8
^ You can see there is a big gap between these 2 address's, Below explains it.
------------------------
240192B2 d9
240192B3 86
240192B4 b0 <------------- Targeted address & byte
240192B5 0b
240192B6 00
240192B7 00
So by doing below you only write to the address of the byte you want to change.
-------------------------------------------------------------------------------------
240192B4:
db b0
|
|
| Back to top |
|
 |
Noval0k Newbie cheater
Reputation: 0
Joined: 23 Nov 2007 Posts: 17
|
Posted: Fri Nov 23, 2007 6:58 pm Post subject: |
|
|
i am trying to do the same and i didnt quite get how you told him to do it.
i have
| Code: | | 0043810B - 29 9f c0 00 00 00 - sub [edi+000000c0],ebx |
and i want to change to
| Code: | | 0043810B - 39 9f c0 00 00 00 - cmp [edi+000000c0],ebx |
i have tried alot of stuff but cant get it to work in my trainer.
Any help would be apprecaited.
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Fri Nov 23, 2007 7:12 pm Post subject: |
|
|
Well im not sure why you want to change sub to cmp, But i will show you.
Code:
0043810B - 29 9f c0 00 00 00 - sub [edi+000000c0],ebx
Code:
0043810B - 39 9f c0 00 00 00 - cmp [edi+000000c0],ebx
Your address is 0043810B
0043810B 29
But, since your writing to the first byte of the address, you do this
The code needed:
| Code: |
[ENABLE]
0043810B:
db 39
[DISABLE]
0043810B:
db 29
|
Last edited by Labyrnth on Fri Nov 23, 2007 7:24 pm; edited 2 times in total |
|
| Back to top |
|
 |
Noval0k Newbie cheater
Reputation: 0
Joined: 23 Nov 2007 Posts: 17
|
Posted: Fri Nov 23, 2007 7:14 pm Post subject: |
|
|
i know this is really noobish of me. But i dont quite know how to use the code you gave me. I have only messed with the CE trainer maker, And i want to change it becase the result of the code is god mode
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Fri Nov 23, 2007 7:19 pm Post subject: |
|
|
Open memory view by clicking the button.
Hit ctrl+A and then paste it in the blank box.
Then click File> assign to current cheat table
|
|
| Back to top |
|
 |
Noval0k Newbie cheater
Reputation: 0
Joined: 23 Nov 2007 Posts: 17
|
Posted: Fri Nov 23, 2007 7:24 pm Post subject: |
|
|
Man thx a Million,
I am glad you helped,
if you would like i will add you to the credits of my trainer
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Fri Nov 23, 2007 7:25 pm Post subject: |
|
|
Nah thats ok, i like to help if someone is willing to listen and learn.
Also look at my post again i edited it just a bit.
I thought you was altering a couple bytes but you just need 1.
|
|
| Back to top |
|
 |
Noval0k Newbie cheater
Reputation: 0
Joined: 23 Nov 2007 Posts: 17
|
Posted: Fri Nov 23, 2007 7:27 pm Post subject: |
|
|
Awesome man.
Agian thx a mil, i am just glad you helped
and just so you know its for assault cube
And i put in application to join the forum in your sig
Thx agian
Noval0k
|
|
| Back to top |
|
 |
|