Skip to content

Instantly share code, notes, and snippets.

@rahulvramesh
Forked from githubutilities/Crack-mac.md
Created July 16, 2019 06:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulvramesh/43ad3e67a027721b62ca7ca71e2fee8a to your computer and use it in GitHub Desktop.
Save rahulvramesh/43ad3e67a027721b62ca7ca71e2fee8a to your computer and use it in GitHub Desktop.
Crack software in mac

Installing gdb in mac

  • install gdb binary using following scripts
$ 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).
ps -e | grep taskgated
sudo kill -9 <taskgated-id>
  • signing the binary using codesign -s gdb-cert $(which gdb)

Reference

Switch Xcode tools

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

Installing Tools

brew install otx
brew install class-dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment