| View previous topic :: View next topic |
| Author |
Message |
aslox How do I cheat?
Reputation: 0
Joined: 22 Sep 2016 Posts: 3
|
Posted: Thu Sep 22, 2016 8:15 am Post subject: [HELP] Hacking with random CE Script. |
|
|
Hey. I want to know how can I do that thing, When I press F6 for example, it will activate my hack. And when I'm pressing F5 It's turning off the hack. With this code on CE :
BTW I NEED HELP FOR C++ HOW CAN I WRITE THIS HACK.
[ENABLE]
00ABF837:
jmp 00F8039B
nop
00F8039B:
mov ecx, [ebp-34]
mov [ecx+30], 1
jmp 00ABF83D
[DISABLE]
00ABF837:
mov ecx, [ebp-34]
mov [ecx+30],eax
If someone could help me I will be thankful. Thanks !
Last edited by aslox on Thu Sep 22, 2016 1:35 pm; edited 1 time in total |
|
| Back to top |
|
 |
kuntz Cheater
Reputation: 0
Joined: 29 Aug 2016 Posts: 44 Location: Canada
|
Posted: Thu Sep 22, 2016 11:30 am Post subject: |
|
|
| Your code under [DISABLE] may cause crashes so it's advised you only use DB's for returning code to it's original form.
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4712
|
Posted: Thu Sep 22, 2016 12:10 pm Post subject: |
|
|
Right click on a record in the address list and select "Set hotkeys".
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
aslox How do I cheat?
Reputation: 0
Joined: 22 Sep 2016 Posts: 3
|
Posted: Thu Sep 22, 2016 1:34 pm Post subject: |
|
|
| ParkourPenguin wrote: | | Right click on a record in the address list and select "Set hotkeys". |
| kuntz wrote: | | Your code under [DISABLE] may cause crashes so it's advised you only use DB's for returning code to it's original form. |
Sorry if I didn't say but, I want help for C++
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Fri Sep 23, 2016 5:49 am Post subject: |
|
|
In that case, you can either copy the bytes of your injection for enable and normal game code for disable. Then use WriteProcessMemory to inject them when you press f6 to enable and f5 to disable.
Or you could write your own assembler or use any open-source ones available if you want to write autoassemble scripts in your c++ code. This is a real pain in the anushole so i don't recommend this at all.
_________________
|
|
| Back to top |
|
 |
kuntz Cheater
Reputation: 0
Joined: 29 Aug 2016 Posts: 44 Location: Canada
|
Posted: Fri Sep 23, 2016 11:55 am Post subject: |
|
|
Here's one simple way to get a hotkey press in Windows:
| Code: | if ((GetAsyncKeyState(VK_F5)&0x8001UL) == 0x8001UL)
{
// Put your code here
} |
And here's a link to some example C code for reading & writing memory:
http://forum.cheatengine.org/viewtopic.php?t=594536
|
|
| Back to top |
|
 |
|