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 


How do I script?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
grostrich
Newbie cheater
Reputation: 0

Joined: 13 May 2007
Posts: 11

PostPosted: Tue Jun 12, 2007 12:55 pm    Post subject: How do I script? Reply with quote

Ok I already knew about scanning to find hacks(which were mostly cs) and i already made sum hacks a long time ago wen i first learned about scanning. The thing I want to know is how to turn an address into a script.
I know basic assembly so I understand a few things but what do we have to have it to where it je (the address) & jne(the address for it to work). I truly have no idea about turning an address into a script. So that is what i need help on. But then again maybe I need to check more asm guides.

btw ive been looking for scripting guides for a while but i guess i suck at looking.

Well thanx for even reading this long ass post 0_0 and any help is appreciated.
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Tue Jun 12, 2007 1:03 pm    Post subject: Reply with quote

When u have a JE, u should change it to a NOP or to a JMP usually, cause u want the CPU to go/not to go to the next line, so u make it an undependet jump or just "delete" this opcode by replacing it to a nop. in script it'll look like this:

Code:

[ENABLE]
address:
nop
nop
[DISABLE]
address:
je anotheraddress


You could find more explanations in the search function..
Back to top
View user's profile Send private message
grostrich
Newbie cheater
Reputation: 0

Joined: 13 May 2007
Posts: 11

PostPosted: Tue Jun 12, 2007 1:15 pm    Post subject: Reply with quote

in your post u said to nop it and the je another address, what would be the other address i would have to jump it to? Embarassed

realized this might be the wrong section, is there a way I can move it?
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Tue Jun 12, 2007 9:11 pm    Post subject: Reply with quote

the code before was:
Code:
JE someaddress

this is the address i meant.
Back to top
View user's profile Send private message
Renkokuken
GO Moderator
Reputation: 4

Joined: 22 Oct 2006
Posts: 3249

PostPosted: Tue Jun 12, 2007 9:26 pm    Post subject: Reply with quote

You know, Nopping and jump inversions aren't everything.
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Wed Jun 13, 2007 4:04 am    Post subject: Reply with quote

Try understanding the more complex hacks, with some code caving, this may help u understand how things going
Back to top
View user's profile Send private message
grostrich
Newbie cheater
Reputation: 0

Joined: 13 May 2007
Posts: 11

PostPosted: Sun Jun 17, 2007 5:30 pm    Post subject: Reply with quote

but I thought if u used je you would have to use jne Or maybe im learning this the wrong way
edit renkokuken I know I was just trying to make a basic script for an address there are probably many other ways but i only know the basics for now Embarassed
Back to top
View user's profile Send private message
Progression
Grandmaster Cheater Supreme
Reputation: 1

Joined: 22 Mar 2007
Posts: 1541

PostPosted: Sun Jun 17, 2007 5:53 pm    Post subject: Reply with quote

grostrich wrote:
but I thought if u used je you would have to use jne Or maybe im learning this the wrong way
edit renkokuken I know I was just trying to make a basic script for an address there are probably many other ways but i only know the basics for now Embarassed


You have to use the opposed code

Meaning JE converts to JNE.

_________________
Back to top
View user's profile Send private message Send e-mail
grostrich
Newbie cheater
Reputation: 0

Joined: 13 May 2007
Posts: 11

PostPosted: Sun Jun 17, 2007 6:06 pm    Post subject: Reply with quote

thats what i said so what i posted above would be correct then? im just making sure cause thats how i thought it was.(he said je inverts to jmp but i was confused and thinking wtf).
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sun Jun 17, 2007 6:54 pm    Post subject: Reply with quote

grostrich wrote:
thats what i said so what i posted above would be correct then? im just making sure cause thats how i thought it was.(he said je inverts to jmp but i was confused and thinking wtf).


Hes a dumbfuck. Let's say you were trying to make godmode for v38 (yes I know its v39) you would scan. You should get the address 006803ec. If you go to that address in memory view its opcode will be je 0068113e. That is when it is enabled. And since jne is the opposite of je you would do this.

Code:

[enable]
006803ec:
je 0068113e
[disable]
006803ec
jne 0068113e //not the jne and not the je


Now if you were going to do a people scanner thing (i.e auto crash) you would do this. Mind this uses allocating because your not just using addies.

Code:

[enable]
alloc(Compare, 1024) //This is quite a bit of memory, you could shorten this quite a bit if you wanted it would be more efficient.
alloc(Crash, 4)

Compare:
mov edi, [7d822c] //moving the pointer address's value for people scanner into edi
cmp [edi+2C], 00 //compares the value of edi + the offset of poeple scanner to 00 or 0
e Compare //if its equals 0 jump to Compare which would restart the cycle
jne Crash //if it isn't equal jump to crash which will crash you

Crash:
jmp 0

[disable]
dealloc(Compare)
dealloc(Crash)

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Sun Jun 17, 2007 7:01 pm    Post subject: Reply with quote

Your post is, as usual, wrong.
_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sun Jun 17, 2007 7:03 pm    Post subject: Reply with quote

RaverRage wrote:
grostrich wrote:
but I thought if u used je you would have to use jne Or maybe im learning this the wrong way
edit renkokuken I know I was just trying to make a basic script for an address there are probably many other ways but i only know the basics for now Embarassed


You have to use the opposed code

Meaning JE converts to JNE.

no you don't its better doing full jump or no jump.... nop or jmp.

_________________
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sun Jun 17, 2007 7:36 pm    Post subject: Reply with quote

Would you please explain that logic Mr.Sponge?
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Renkokuken
GO Moderator
Reputation: 4

Joined: 22 Oct 2006
Posts: 3249

PostPosted: Sun Jun 17, 2007 7:46 pm    Post subject: Reply with quote

oib111 wrote:
Would you please explain that logic Mr.Sponge?
In that case, if the value that passes is a dynamic value, you'll always see the result of it jumping or not jumping.

Example:

cmp eax, 3824 (EAX is 12 this time)
JB 00001337 (jumped)

However, if the value that passes by is dynamic...

cmp eax, 3824 (EAX this time, is 453453)
JB 00001337 (Ho noes, didn't jump)
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 programming 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