Results 1 to 6 of 6

Thread: Objective C

  1. #1
    Super Moderator Shub-nigurrath's Avatar
    Join Date
    May 2004
    Location
    Obscure Kadath
    Posts
    430

    Objective C

    Hi anyone

    could someone kindly point me to some reversing resource or general programming model whitepaper for Objective C (for OSX world).. I got only rubbish after a first search and not something really useful..except wiki
    (`._.[*~-.,.-~* ŜħůβŇĝŕřāŧħ ₪*~-.,.-~*]._.)
    There are only 10 types of people in the world: Those who understand binary, and those who don't
    http://www.accessroot.com

  2. #2
    Registered User
    Join Date
    Jan 2008
    Posts
    163
    Blog Entries
    19
    As far as I know: developer.apple.com

    There's everything you need... However, I'm not a MAC programmer, so i might be wrong.

    Ciao mate

  3. #3
    mkfeldman
    Guest
    Hi

    I started with:
    http://developer.apple.com/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html
    and very very useful: the objc runtime header files in /usr/include/objc.
    You can also download the runtime source if you want to dig deeper, I did it for curiosity but in 99.99% of the cases you don't need more than the header files.

    After I read the above, it was be easy to understand disassembled code (in IDA for example) because the "selector" (passed to every objc_mgSend()) is just a pointer to the string method name.

    two more links I enjoyed:

    tracing:
    http://www.dribin.org/dave/blog/archives/2006/04/22/tracing_objc/

    debugging:
    http://developer.apple.com/technotes/tn2004/tn2124.html

    my biggest frustration was gdb interface, after those years doing ollydbg

    good luck
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  4. #4
    scknight
    Guest
    http://www.codethecode.com/projects/class-dump/

    class-dump is a great utility that will dump objective-c headers from the compiled app. This makes it great for figuring out the structure of programs. For a decent overview check this out.

    http://www.phrack.com/issues.html?issue=63&id=16&mode=txt

    It applies just as well to x86. GDB might not be as nice as Olly but it has knowledge of objective-c so once you dump the headers you can set breakpoints based on method names
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  5. #5
    Super Moderator Shub-nigurrath's Avatar
    Join Date
    May 2004
    Location
    Obscure Kadath
    Posts
    430
    interesting tools scknight,
    unfortunately they seem to be only for live debugging on an OSX. I am most now working on iphone apps using a windows pc, then almost what I use are dead listings.
    (`._.[*~-.,.-~* ŜħůβŇĝŕřāŧħ ₪*~-.,.-~*]._.)
    There are only 10 types of people in the world: Those who understand binary, and those who don't
    http://www.accessroot.com

  6. #6
    itsme
    Guest
    i wrote an ida idc script to help name subroutines, using the RTTI that is always in objc executables:
    http://nah6.com/~itsme/cvs-xdadevtools/ida/idcscripts/fixobjc.idc

    there is a (not very active) mailinglist about this:
    http://0x90.org/pipermail/xso/

    and a blog post on openrce:
    https://www.openrce.org/blog/view/1113
    I promise that I have read the FAQ and tried to use the Search to answer my question.

Similar Threads

  1. Code release: C-subset compiler in Objective Caml
    By OpenRCE_RolfRolles in forum Blogs Forum
    Replies: 0
    Last Post: December 27th, 2009, 05:18
  2. Replies: 0
    Last Post: January 28th, 2008, 23:03

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •