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 


Unlimited BREAKpoints?¿

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
broly7
Advanced Cheater
Reputation: 0

Joined: 13 Aug 2015
Posts: 60

PostPosted: Thu Oct 01, 2015 9:38 am    Post subject: Unlimited BREAKpoints?¿ Reply with quote

Hello fellows.
Recently i ran into a problem with the app i'm trying to debug.
I have a LUA script that sets lot of breakpoints in a code (usually at the beginning of functions).
It works great but the code i'm debugging uses..."integrity checks" i think it's called, so...some functions are checked "What does it mean?"
Checked means that if any byte of the function is modified, then the app crashes.
Now here comes the matter, CE automatically uses Software Breakpoints when it runs out of Hardware Breakpoints 4Max.
Then it writes 0xCC at each Breakpoint address, and makes the app crash.

I was wondering if there's any other method that doesn't write memory to Breakpoint an address, and be with unlimited usage.

P.S: I already tried VEH with debugProcess(2)...still using Software Breakpoints tho...

And also if you can solve me a doubt, i know CE API can handle AOBScanModule(), however LUA API can not... is going to be implemented Soon TM? Very Happy

Thanks.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25807
Location: The netherlands

PostPosted: Thu Oct 01, 2015 9:41 am    Post subject: Reply with quote

try stealthedit and do the hooks in the copy

with lua you have access to the MemScan object, which also contains the aob type.

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
broly7
Advanced Cheater
Reputation: 0

Joined: 13 Aug 2015
Posts: 60

PostPosted: Thu Oct 01, 2015 10:47 am    Post subject: Reply with quote

Dark Byte wrote:
try stealthedit and do the hooks in the copy

with lua you have access to the MemScan object, which also contains the aob type.

Gotta say you thanks. I'll explore stealthedit way.
Back to top
View user's profile Send private message
broly7
Advanced Cheater
Reputation: 0

Joined: 13 Aug 2015
Posts: 60

PostPosted: Sat Oct 03, 2015 5:08 am    Post subject: Please Reply with quote

Excuse me, how can i retrieve the new Memory Region Address that StealthEdit creates?

In CE MEM VIEWER simply look at the green opcodes, that points you to the copied address, but how to do it in LUA or ASM?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25807
Location: The netherlands

PostPosted: Sat Oct 03, 2015 5:12 am    Post subject: Reply with quote

In asm you can use stealthedit (name,address)

Name will get the new address which you can use in the rest of the script (or with registersymbol)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
broly7
Advanced Cheater
Reputation: 0

Joined: 13 Aug 2015
Posts: 60

PostPosted: Sat Oct 03, 2015 5:28 am    Post subject: Reply with quote

Dark Byte wrote:
In asm you can use stealthedit (name,address)

Name will get the new address which you can use in the rest of the script (or with registersymbol)

Thanks for your quickness in asnwer DarkByte, but Name doesn't retrieve the address of the New region stealthedit creates...

Code:

local mew =([[
alloc(newmem,8);
stealthedit(newmem,0066FD80,2048)
label(returnhere)
registersymbol(newmem)
returnhere:

  ]])
autoAssemble(mew);
sleep(1000);
  local result=getAddress("newmem")
--result=readInteger"newmem"
--unregisterSymbol("secopy")
print(result)


htp://puu.sh/kwQEK/f01cce1978.png (change it to http)

The output 2097152 = 001F0000 points me to an allocated region without data, when it should be 04AE0000

P.S: I'm using Stealthedit 2.3
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25807
Location: The netherlands

PostPosted: Sat Oct 03, 2015 7:23 am    Post subject: Reply with quote

Remove that alloc (newmem,Cool line

If it's failing because registersymbol doesn't work then try something like
Code:

Label(xxx)
stealthedit(newmem,0066FD80,2048)
registersymbol(xxx)

newmem:
xxx:

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
broly7
Advanced Cheater
Reputation: 0

Joined: 13 Aug 2015
Posts: 60

PostPosted: Sat Oct 03, 2015 8:03 am    Post subject: Reply with quote

Dark Byte wrote:
Remove that alloc (newmem,Cool line

If it's failing because registersymbol doesn't work then try something like
Code:

Label(xxx)
stealthedit(newmem,0066FD80,2048)
registersymbol(xxx)

newmem:
xxx:

You're Godlike, wish i could give you +Rep for the Program and for the help. 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 -> Cheat Engine 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