r2frida icon indicating copy to clipboard operation
r2frida copied to clipboard

Breakpoint can not work properly

Open BurningTeng opened this issue 5 years ago • 8 comments

Breakpoint can not work properly.

When break point is hitted, following error message will be show, my OS is Ubuntu20.04. My phone is Android 10. ARM64 does not support?

0x71a0de5090 base.odex!0xf090
	0x71a0de5090 base.odex!0xf090
Unexpected payload

burning

BurningTeng avatar Dec 09 '20 15:12 BurningTeng

Have you solved this problem? I encounter it too, and r2 cashed.

qingpengchen2011 avatar Feb 17 '22 05:02 qingpengchen2011

No. It always crash.

原始邮件

发件人:"tonychen"< @.*** >;

发件时间:2022/2/17 13:35

收件人:"nowsecure/r2frida"< @.*** >;

抄送人:"纳姆波1"< @.*** >;"Author"< @.*** >;

主题:Re: [nowsecure/r2frida] Breakpoint can not work properly (#284)

Have you solved this problem? I  encounter it too, and r2 cashed.

&mdash; Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

BurningTeng avatar Feb 17 '22 06:02 BurningTeng

The current implementation of breakpoints is an event holder, which is not exactly how breakpoints should work, so its known and expected to fail. Eventually i'll find time to implement that properly, but ideally that should be a feature provided by frida-gum.

Afaik, the DWARF project (qt frontend for frida) implements breakpoints in a better way, if you try it out, let me know if it works well there and we can port that functionality without depending on changes in Frida.

trufae avatar Feb 26 '22 13:02 trufae

I've tried DWARF's breakpoint function and it works well.

qingpengchen2011 avatar Mar 02 '22 08:03 qingpengchen2011

When discussing breakpoints. What is the state or considerations to being able to support smali breakpoints aswell? There are debugger like jadx, who support it. They use adb. As far as i know with apk:// r2 is able to display the dex code or smali quite well.

GanbaruTobi avatar Mar 04 '22 10:03 GanbaruTobi

My plan is to implement the logic done in DWARF inside r2frida, and their implementation supports objc, native and dalvik breakpoints. That stuff is implemented in here https://github.com/iGio90/DwarfCore

hope to allocate some time for this next week, as long as i think it's a very important feature :)

trufae avatar Mar 04 '22 10:03 trufae

My plan is to implement the logic done in DWARF inside r2frida, and their implementation supports objc, native and dalvik breakpoints. That stuff is implemented in here https://github.com/iGio90/DwarfCore

hope to allocate some time for this next week, as long as i think it's a very important feature :)

Expecting it. Thanks

qingpengchen2011 avatar Mar 27 '22 07:03 qingpengchen2011

Please try the new breakpoint support now and verify whether it works or not :)

as0ler avatar Oct 11 '22 15:10 as0ler