klygteki-iPhone:/ mobile$ DYLD_INSERT_LIBRARIES=/usr/lib/dumpdecrypted.dylib /var/containers/Bundle/Application/D597E9A7-A9A4-45A0-886B-E7079A87FC64/WeChat.app/WeChat objc[8194]: Class MarsReachability is implemented in both /private/var/containers/Bundle/Application/D24DBE0F-73A9-4F6E-B763-37114DE691B0/WeChat.app/Frameworks/mars.framework/mars (0x10d7918d8) and /private/var/containers/Bundle/Application/D24DBE0F-73A9-4F6E-B763-37114DE691B0/WeChat.app/Frameworks/matrixreport.framework/matrixreport (0x10cb71590). One of the two will be used. Which one is undefined. objc[8194]: Class MarsReachability is implemented in both /private/var/containers/Bundle/Application/D24DBE0F-73A9-4F6E-B763-37114DE691B0/WeChat.app/Frameworks/mars.framework/mars (0x10d7918d8) and /private/var/containers/Bundle/Application/D24DBE0F-73A9-4F6E-B763-37114DE691B0/WeChat.app/Frameworks/marsbridgenetwork.framework/marsbridgenetwork (0x10cffb9c8). One of the two will be used. Which one is undefined. mach-o decryption dumper
DISCLAIMER: This tool is only meant for security research purposes, not for application crackers.
[+] detected 64bit ARM binary in memory. [+] offset to cryptid found: @0x1002811a8(from 0x100280000) = 11a8 [+] Found encrypted data at address 00004000 of length 154255360 bytes - type 1. [+] Opening /private/var/containers/Bundle/Application/D597E9A7-A9A4-45A0-886B-E7079A87FC64/WeChat.app/WeChat for reading. [+] Reading header [+] Detecting header type [+] Executable is a plain MACH-O image [+] Opening WeChat.decrypted for writing. [+] Copying the not encrypted start of the file [+] Dumping the decrypted data into the file [+] Copying the not encrypted remainder of the file [+] Setting the LC_ENCRYPTION_INFO->cryptid to 0 at offset 11a8 [+] Closing original file [+] Closing dump file
klygteki-iPhone:/ mobile$ cd /var/mobile/Containers/Data/Application/AC83D268-2FE9-434E-8D76-0935AACB2AC3/Documents klygteki-iPhone:~/Containers/Data/Application/AC83D268-2FE9-434E-8D76-0935AACB2AC3/Documents mobile$ ls -l total 130176 drwxr-xr-x 11 mobile mobile 352 Aug 6 18:13 00000000000000000000000000000000 drwxr-xr-x 29 mobile mobile 928 May 13 17:44 093b7963fc416ce228a44cfec0fa0e93 drwxr-xr-x 39 mobile mobile 1248 May 13 17:44 0fc3dbad09d2d795ae46d93b65b021d8 drwxr-xr-x 3 mobile mobile 96 Aug 29 2019 CrashReport -rw-r--r-- 1 mobile mobile 310 Jul 5 2018 Ksid -rw-r--r-- 1 mobile mobile 1349 Aug 6 18:13 LocalInfo.lst -rw-r--r-- 1 mobile mobile 234 May 13 17:46 LoginInfo2.dat drwxr-xr-x 19 mobile mobile 608 Sep 10 2019 MMResourceMgr drwxr-xr-x 134 mobile mobile 4288 May 13 17:47 MMappedKV drwxr-xr-x 4 mobile mobile 128 Aug 6 18:13 MemoryStat drwxr-xr-x 2 mobile mobile 64 May 13 17:46 OpenImResource -rw-r--r-- 1 mobile mobile 17 Aug 6 18:18 SafeMode.dat -rw-r--r-- 1 mobile mobile 124234896 Aug 6 16:44 WeChat.decrypted #脱壳文件 drwxr-xr-x 32 mobile mobile 1024 May 13 17:44 d08726a472ac9f7b6f439b2512128105 -rw-r--r-- 1 mobile mobile 8 Aug 29 2019 db.globalconfig -rw-r--r-- 1 root mobile 249552 Aug 6 16:35 dumpdecrypted.dylib drwxr-xr-x 40 mobile mobile 1280 May 13 17:46 fdd3050fd85ea125a574eea36b1a05d3 -rw-r--r-- 1 mobile mobile 592 Jul 5 2018 heavy_user_id_mapping.dat -rw-r--r-- 1 mobile mobile 483 Dec 28 2018 mmupdateinfo.archive
where options are: -a show instance variable offsets -A show implementation addresses --arch <arch> choose a specific architecture from a universal binary (ppc, ppc64, i386, x86_64, armv6, armv7, armv7s, arm64) -C <regex> only display classes matching regular expression -f <str> find string in method name -H generate header files in current directory, or directory specified with -o -I sort classes, categories, and protocols by inheritance (overrides -s) -o <dir> output directory used for -H -r recursively expand frameworks and fixed VM shared libraries -s sort classes and categories by name -S sort methods by name -t suppress header in output, for testing --list-arches list the arches in the file, then exit --sdk-ios specify iOS SDK version (will look in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS<version>.sdk --sdk-mac specify Mac OS X version (will look in /Developer/SDKs/MacOSX<version>.sdk --sdk-root specify the full SDK root path (or use --sdk-ios/--sdk-mac for a shortcut)