Set up DebugServer on iOS 7

I had my iPhone 4 jailbroken, so I can debug/crack apps on iPhone.

Server: iPhone 4 + debugserver
Client: Mac OS X + lldb

Server

DebugServer

Debugserver can be found on iOS: /Developer/usr/bin/debugserver
Just follow instructions: debugserver on iPhone Wiki

Save following content as a plist like dbg.plist

Apply the entitlement

If entitlement above is not applied, debugserver won’t be able to listen to a TCP port.

Remove FairPlay

FairPlay is Apple’s DRM applied to apps on AppStore.
If you see cryptid 1 like below, try Clutch!

Disable ASLR

Try otool -hv to your App, if you see PIE flags, you have to disable ASLR.

See: Mach-O Disable ASLR/PIE

Make sure you have python installed on your iPhone.

Find your target app.

Client

Copy a decrypted and de-aslr-ed app binary to your OS X and:

Set up DebugServer on iOS 7 by My Site: https://sskaje.me/2016/01/set-up-debugserver-ios-7/

Incoming search terms:

Build mosquitto 1.45 on OS X with MacPorts

1 Get tar ball from www.mosquitto.org
2 tar xvf
3 Add following lines to CMakeLists.txt.

after

4 cmake .
5 make

Build mosquitto 1.45 on OS X with MacPorts by My Site: https://sskaje.me/2015/12/build-mosquitto-os-x-with-macports/

Incoming search terms:

Enable Debug on OS X Profiles

https://macmule.com/2013/10/30/updating-managed-settings-popup-at-login-window/

Enable debug:

Watch Logs:
Console displays
/Library/Logs/ManagedClient/ManagedClient.log
/var/log/system.log

Disable debug:

Enable Debug on OS X Profiles by My Site: https://sskaje.me/2015/12/enable-debug-os-profiles/

Incoming search terms:

Build GnuTLS 3.4.x on OS X

Mac OS X El Captain
Xcode
MacPorts: gsed, gawk
GMP: 6.1.0 from https://gmplib.org/
libidn: 1.32 from http://www.gnu.org/software/libidn/
nettle: 3.1 from http://www.lysator.liu.se/~nisse/nettle/
libtasn1: 4.7 https://www.gnu.org/software/libtasn1/
p11-kit: 0.23.2 from http://p11-glue.freedesktop.org/p11-kit.html
GnuTLS: 3.4.7 from http://www.gnutls.org/
libunbound: 1.5.7 from https://unbound.net
Install path: /opt/gnutls

Build GMP

Build libidn

Build libtasn1

Build nettle

Build p11-kit

Build libunbound

Build GnuTLS

If your GnuTLS is cloned from git, install libtool and autogen, autoconf, automake,
and configure with –disable-doc

Trouble Shooting

Wait……..

Build GnuTLS 3.4.x on OS X by My Site: https://sskaje.me/2015/12/build-gnutls-3-4-x-os/

Incoming search terms:

Reset Terminal

If you’re using Terminal on OS X, just try ‘Send Reset‘ and ‘Send Hard Reset‘ in File menu.

Fix terminal size

Often occurs after screen.
Sometimes, try Control(ctrl)+L,
sometimes, try

Random characters after cat a binary file, often in SecureCRT

Unix: How to fix UNIX garbage characters in your terminal
QQ20140903-1
Run:

Press: Control(ctrl)+v, Control(ctrl)+o, Enter, Control(ctrl)+d

Newline does not work

Output like:

Run:

More…

These links might be helpful.
http://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO-4.html
http://www.cyberciti.biz/tips/bash-fix-the-display.html
http://docstore.mik.ua/orelly/unix/upt/ch42_04.htm

Reset Terminal by My Site: https://sskaje.me/2015/10/reset-terminal/