Debugging

Discussion in 'iOS Development' started by Communati0n, Aug 15, 2010.

  1. Communati0n

    Communati0n New Member

    Joined:
    Oct 22, 2009
    Messages:
    824
    Likes Received:
    0
    Device:
    iPad 2 (Black)
    Is it possible to run remote debugger on iphone? cos i wanna debug an app to look at how it works. I would use the remote iphone debugger from IDA but it only supports 1.x firmware and who uses that?!

    Btw, maybe gdb?
  2. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    GDB. Although most developers worth their weight in salt have their apps reject GDP attachment after Apple's initial test runs of the application.
  3. Axis

    Axis Super Moderator Staff Member

    Joined:
    Dec 2, 2007
    Messages:
    6,288
    Likes Received:
    133
    Device:
    iPhone 4S (White)
    Most hackers worth their weight in salt know how to easily circumvent a PT_DENY_ATTACH request by simply setting a breakpoint at ptrace(), and returning immediately to the caller when it [the breakpoint] is hit. You could make it conditional—only return if the first argument is PT_DENY_ATTACH, but that's not necessary, because an AppStore app has no (other) use for ptrace().
  4. Communati0n

    Communati0n New Member

    Joined:
    Oct 22, 2009
    Messages:
    824
    Likes Received:
    0
    Device:
    iPad 2 (Black)
    so can you please point me to a guide/tutorial? ok i got the gnu debugger now. what else do i need?

    btw is it posible to force ida's 1.x debugger to run on 3.x fw?
  5. lauNchD

    lauNchD Well-Known Member

    Joined:
    Jan 27, 2008
    Messages:
    1,844
    Likes Received:
    261
    Device:
    iPhone 5 (Black)
    Just use GDB over SSH:
    Code:
    gdb MyExecutable
    If you don't have GDB installed:
    Code:
    apt-get install gdb
    Are you still trying to hack Haypi Kingdom?

    Please Register or Log in to view images



    I never really thought about the possibility to circumvent PT_DENY_ATTACHes in App Store apps (because I thought Apple wouldn't allow them anyway), but I guess it makes perfect sense

    Please Register or Log in to view images


    However, many / most developers "aren't worth their weight in salt," at least according to Skylar's definition. I've debugged quite a few FairPlay'd apps from more or less prominent developers (not for cracking, seriously, just for reversing 'fun') without having to deal with any of this.
  6. Communati0n

    Communati0n New Member

    Joined:
    Oct 22, 2009
    Messages:
    824
    Likes Received:
    0
    Device:
    iPad 2 (Black)
    I dont need debugging for haypi! lol ive already hacked it and im moving on to something else now. Btw, gdb MyExcutable does that give me full access or not?
  7. _Cmx_

    _Cmx_ Banned

    Joined:
    Aug 16, 2010
    Messages:
    7
    Likes Received:
    0
    Device:
    iPhone 3GS (White)
    Just use SSH
  8. Communati0n

    Communati0n New Member

    Joined:
    Oct 22, 2009
    Messages:
    824
    Likes Received:
    0
    Device:
    iPad 2 (Black)
    yeah, i reckon the terminal thru ssh is faster. and i HATE typing on an ipod touch!!!

    oh yeah, still havent figured out how to use gdb...

Share This Page