Dumps decrypted mach-o files from encrypted iPhone applications from memory to disk. This tool is necessary for security researchers to be able to look under the hood of encryption.git
源代碼只有一個文件 dumpdecrypted.c,文件只有一個函數 dumptofile,程序沒有解密邏輯,當它執行時候,加載器已經完成了目標 mach-o 文件的裝載,對應的解密已經完成。該函數的工做是從 LC_ENCRYPTION_INFO 遍歷全部的 load command,將對應的解密數據從內存中 dump 出來,複寫到 mach-o 文件中。github
dyld: could not load inserted library 'dumpdecrypted.dylib' because no suitable image found. Did find:
dumpdecrypted.dylib: required code signature missing for 'dumpdecrypted.dylib'app
## 列出可簽名證書 security find-identity -v -p codesigning ## 爲dumpecrypted.dylib簽名 codesign --force --verify --verbose --sign "iPhone Developer: xxx xxxx (xxxxxxxxxx)" dumpdecrypted.dylib
iOS - 10.3.3
OpenSSH - 6.7p1-13
Script - 0.9.595
Fileza File Manager - 3.5.2-1
測試應用:WeChat, AlipayWalletssh
2018-5-25-23ide