Akillibirisi How do I cheat? Reputation: 0
Joined: 06 Jan 2019 Posts: 8 Location: Turkey
|
Posted: Wed Jul 26, 2023 8:13 am Post subject: Ceserver Debugger Doesn't Work |
|
|
Alright, been plagued by this for weeks, I'm also open to all other debugger suggestions for dynamic debugging that does it in a manner CE does. I read through many other related topics but to no avail.
The app becomes unresponsive and eventually crashes as soon as the debugger is attached regardless of what app I attach the debugger to, sometimes giving "All registers are used up. Free some and try again" error, and other times not. Using CE 7.5 and ceserver 7.5:
I first tried CE in 32 bit Bluestacks, and I guess that's the worst possible emulator for this anyway, then moved onto Nox as is suggested in other threads.
In 32 bit Nox emulator running on Android 7 and using ceserver_x86, this time CE managed to get several readings from Find Out What Accesses This Address right before crashing the app again.
In the final attempt I set up 64 bit Nox simulator running Android 9 and installed ceserver. Though for some reason it did not run ceserver_x86_64 giving this error message:
process_vm_readv=0x79feb1c002b0
process_vm_writev=0x79feb1c002d0
listening on port 52736
---
&s=0x7fff4a93cdb8
main=0x5e853ab3b5f0
sizeof(off_t)=8
sizeof(off64_t)=8
sizeof(uintptr_t)=8
sizeof(long)=8
CESERVERPATH=/system/xbin/ceserver_x86_64/
Segmentation fault
So then I initialized ceserver_arm64 instead, crashing the app all the same. ADB Shell fills up with error messages as the debugger tries to attach to process , here's the same repeating error message on the Shell until crash. It somehow looks like Android OS is trying to fight back the debugger:
CMD_GETTHREADCONTEXT:
Going to call GetThreadContext(1, 13169, 0x78e111801028)
GetThreadContext(13169)
Inside debuggerthread
Getting context of thread 13169
context=0x78e111801028
context->structsize=0x78e111801028
context->type=0x78e11180102c
context->regs=0x78e111801030
context->fp=0x78e111801140
iov_base=0x78e111801030 sizeof(CONTEXT_REGS)=272
CEServer Debugger Thread: ptrace called (PTRACE_GETREGSET(4204), 13169, 0x1, 0x78e111800f10)
ptrace error(Invalid argument (22))!
getRegisters() returned -1
result=0
Virtual event. Ignore
Returning queued event (sig=-1, thread=13215)
Simple scans and modifications to memory work just fine so long as debugger isn't involved. I also tried changing breakpoint and debugger methods in CE settings. Any help is greatly appreciated.
|
|