Skip to content

Instantly share code, notes, and snippets.

@githubutilities
Last active March 10, 2025 20:58
Show Gist options
  • Save githubutilities/b3bf0f31d1748f5e9ecf to your computer and use it in GitHub Desktop.
Save githubutilities/b3bf0f31d1748f5e9ecf to your computer and use it in GitHub Desktop.

Revisions

  1. githubutilities revised this gist Aug 15, 2015. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions Crack-mac.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # Cracking software on mac

    * [How to Crack Just About Any Mac App (and How to Prevent It) by lifehacker](http://lifehacker.com/5736101/how-to-crack-just-about-any-mac-app-and-how-to-prevent-it)
    * [crack reveal.app](http://jingwei6.me/2014/02/28/reveal_crack.html)
    * [using reveal.app to inspect app](http://zhuanlan.zhihu.com/iOSRe/19646016)
  2. githubutilities revised this gist Aug 15, 2015. 1 changed file with 13 additions and 0 deletions.
    13 changes: 13 additions & 0 deletions Install-tools.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    ## Switch `Xcode` tools

    ```sh
    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
    ```


    # Installing Tools

    ```sh
    brew install otx
    brew install class-dump
    ```
  3. githubutilities created this gist Aug 15, 2015.
    27 changes: 27 additions & 0 deletions Install-gdb-mac.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    # Installing `gdb` in mac

    * install `gdb` binary using following scripts

    >> ```sh
    >> $ brew tap homebrew/dupes
    >> $ brew install gdb
    >> ```
    * `/Applications/Utilities/Keychain Access.app`
    * Open menu `/Keychain Access/Certificate Assistant/Create a Certificate`...
    * Choose a name (`gdb-cert` in the example), set `Identity Type` to `Self Signed Root`, set `Certificate Type` to `Code Signing` and select the `Let me override defaults`. Click several times on `Continue` until you get to the `Specify a Location For The Certificate` screen, then set `Keychain` to `System`.
    * using the contextual menu for the certificate, select `Get Info`, open the `Trust` item, and set `Code Signing` to `Always Trust`.
    * You must quit Keychain Access application in order to use the certificate and restart `taskgated` service by killing the current running taskgated process (so before using gdb).
    >> ```sh
    >> ps -e | grep taskgated
    >> sudo kill -9 <taskgated-id>
    >> ```
    * signing the binary using `codesign -s gdb-cert $(which gdb)`
    ## Reference
    * [Installing GDB on OS X Mavericks](http://ntraft.com/installing-gdb-on-os-x-mavericks/)
    * [official instruction](http://sourceware.org/gdb/wiki/BuildingOnDarwin)