unzip with lzfse support

LZFSE is a compression library introduced by Apple.

LZFSE is a Lempel-Ziv style data compression algorithm using Finite State Entropy coding. It targets similar compression rates at higher compression and decompression speed compared to deflate using zlib.

Github: https://github.com/lzfse/lzfse

Apple uses LZFSE compressing its ipa packages.
I downloaded an ipa directly from appstore, named like pre-thinned xxx .thinned.signed.dpkg.ipa, e.g. pre-thinned12345678.thinned.signed.dpkg.ipa

I tried to decompress this ipa, with unzip, 7-Zip on windows, many many other archiver management tools, all failed.

unsupported compression method 99

I integrated lzfse into unzip based on unzip-6.0.
Github: https://github.com/sskaje/unzip-lzfse

Steps:
1 Build and install lzfse

2 Build unzip-lzfse

3 test

Tested under macOS 10.12.6

unzip with lzfse support by @sskaje: https://sskaje.me/2017/08/unzip-with-lzfse-support/

Virtualize macOS Sierra on Ubuntu (Vmware)

I need to run something on macOS, but I don’t have any dedicated Mac devices running as server/workstation.

This is a simple tutorial running macOS VM on Ubuntu with VMware workstation server.

Environment

VMware Fusion 8.5.3
macOS Sierra
Ubuntu Server 16.04
VMware workstation server 12.5.2
Continue reading “Virtualize macOS Sierra on Ubuntu (Vmware)” »

Virtualize macOS Sierra on Ubuntu (Vmware) by @sskaje: https://sskaje.me/2016/12/virtualize-macos-sierra-ubuntu-vmware/

Incoming search terms:

How to Download Apple Boot Camp Drivers for Windows

1 Download this file: http://swcatalog.apple.com/content/catalogs/others/index-windows-1.sucatalog

2 Search for AppleBcUpdate.exe, check if PostDate field below.

3 Download

How to Download Apple Boot Camp Drivers for Windows by @sskaje: https://sskaje.me/2016/12/download-apple-boot-camp-drivers-windows/

OSX Change Roaming Preference

On my macbook pro, default values are:

修改 JoinMode 为 Preferred

OSX Change Roaming Preference by @sskaje: https://sskaje.me/2016/10/osx-change-roaming-preference/

Incoming search terms:

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 @sskaje: https://sskaje.me/2016/01/set-up-debugserver-ios-7/

Incoming search terms: