Giter Site home page Giter Site logo

Comments (5)

liuxuan30 avatar liuxuan30 commented on May 18, 2024

如果让程序完全跑起来以后,中断LLDB 然后跑debugme,似乎也oK,

但是给某个函数在svc 前后加了断点,再继续执行,就会遇到

error: memory read failed for 0xfffffffe18d90000

crash提示在

0x1033c0be8 <+276>: mov x1, x0

尝试打印$x1 和x0是这样的:

(lldb) po $x0
error: Couldn't materialize: couldn't read the value of register x0
error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression
(lldb) po $x1
error: Couldn't materialize: couldn't read the value of register x1
error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression
(lldb) reg read
General Purpose Registers:
       x19 = 0x0000000281b69530
       x20 = 0x0000000281b69530
       x21 = 0x0000000281b69540
       x22 = 0x00000002225717b8 
       x23 = 0x00000001070b9658 
       x24 = 0x000000028308d560
       x25 = 0x000000005f910b68
       x26 = 0x00000002226b4037 
       x27 = 0x0000000106804000  (void *)0x000000010689aec0
       x28 = 0x00000001067a4000 
        fp = 0x00000001704710f0
        lr = 0x00000001033c0be8  TikTok`___lldb_unnamed_symbol400914$$TikTok + 276
        sp = 0x0000000170471080
        pc = 0x00000001033c0be8  TikTok`___lldb_unnamed_symbol400914$$TikTok + 276
20 registers were unavailable.

from xia0lldb.

liuxuan30 avatar liuxuan30 commented on May 18, 2024

如果我尝试使用patcher
比如代码段

    0x105968c14 <+320>: b      0x105968bf4               ; <+288>
    0x105968c18 <+324>: svc    #0x80
    0x105968c1c <+328>: add    sp, sp, #0x50             ; =0x50 

我想把0x105968c18 改为nop,

(lldb) patcher -a 0x105968c18 -i nop -s 4
[*] start patch text at address:0x105968c18 size:4 to ins:"nop" and data:0x1f, 0x20, 0x03, 0xd5 
[*] make ins data:
{0x1f, 0x20, 0x03, 0xd5 ,0x1f, 0x20, 0x03, 0xd5 ,0x1f, 0x20, 0x03, 0xd5 ,0x1f, 0x20, 0x03, 0xd5 }
[+] patch done
[x] power by xia0@2019

然后再继续,也会遇到

error: memory read failed for 0x10765f6400

from xia0lldb.

4ch12dy avatar 4ch12dy commented on May 18, 2024

douyin就别想一步搞定了

from xia0lldb.

liuxuan30 avatar liuxuan30 commented on May 18, 2024

@4ch12dy 能详细说说吗?你是说xia0LLDB 里面那些反反调试的没法用还是有bug?还是被针对了

from xia0lldb.

4ch12dy avatar 4ch12dy commented on May 18, 2024

有对抗

from xia0lldb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.