{"id":1351,"date":"2018-10-29T23:45:56","date_gmt":"2018-10-29T15:45:56","guid":{"rendered":"http:\/\/www.yusian.com\/blog\/?p=1351"},"modified":"2018-10-29T23:45:56","modified_gmt":"2018-10-29T15:45:56","slug":"theos%e7%9a%84%e5%ae%89%e8%a3%85%e5%8f%8a%e7%ae%80%e5%8d%95%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.yusian.com\/blog\/reverse\/2018\/10\/29\/2345561351.html","title":{"rendered":"Theos\u7684\u5b89\u88c5\u53ca\u7b80\u5355\u4f7f\u7528"},"content":{"rendered":"<p>1\u3001Theos\u662fiOS\u8d8a\u72f1\u63d2\u4ef6\u5f00\u53d1\u7684\u96c6\u6210\u73af\u5883\uff0c\u5b83\u53ef\u4ee5\u521b\u5efa\u5de5\u7a0b\uff0c\u8c03\u7528XCode\u7684\u547d\u4ee4\u884c\u5de5\u5177\u7f16\u8bd1\u3001ldid\u7b7e\u540d\u6253\u5305\uff0c\u5e76\u63d0\u4f9b\u4e0a\u4f20\u624b\u673a\u3001\u5b89\u88c5\u7b49\u4e00\u7cfb\u5217\u64cd\u4f5c\uff0c\u5b89\u88c5\u6210\u529f\u540e\u53ef\u4ee5Cydia\u7684\u5df2\u5b89\u88c5\u63d2\u4ef6\u4e2d\u770b\u5230\u3002<\/p>\n<p><strong>2\u3001\u5b89\u88c5ldid&#038;dpkg<\/strong><\/p>\n<p>2.1\u3001\u5b89\u88c5ldid<br \/>\n2.1.1\u3001\u53c2\u8003\u94fe\u63a5\uff1a<a href=\"https:\/\/brewinstall.org\/Install-ldid-on-Mac-with-Brew\/\" rel=\"noopener\" target=\"_blank\">https:\/\/brewinstall.org\/Install-ldid-on-Mac-with-Brew\/<\/a><br \/>\n2.1.2\u3001\u5b89\u88c5\u547d\u4ee4\uff1a<\/p>\n<pre lang=\"bash\" line=\"1\">yusian@SianMac2:~\/Documents\/Reverse$ruby -e \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)\" < \/dev\/null 2> \/dev\/null<\/pre>\n<pre lang=\"bash\" line=\"1\">yusian@SianMac2:~\/Documents\/Reverse$brew install ldid<\/pre>\n<p>2.1.3\u3001\u5fc5\u987b\u8981\u8bf4\u7684\u662f\uff0c\u7b2c\u4e00\u6761\u547d\u4ee4\u662f\u5b89\u88c5Homebrew\uff0c\u4e5f\u8bb8\u4f60Mac\u4e0a\u65e9\u5b89\u88c5\u8fc7Homebrew\u4e86\uff0c\u4f46\u4e5f\u5f3a\u5236\u5efa\u8bae\u518d\u6267\u884c\u4e00\u6b21\u8be5\u547d\u4ee4\uff0c\u53ef\u5c06Homebrew\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\uff0c\u8fd9\u91cc\u53ef\u80fd\u4f1a\u662f\u4e2a\u5751\uff01\uff01\u56e0\u4e3aXCode10\u73b0\u5728\u5e9f\u5f03\u4e86\u4ee5\u524d\u7684libstd++\u8fd9\u4e2ac++\u5e93\uff0c\u53d6\u800c\u4ee3\u4e4b\u7684\u662flibc++\uff0c\u5982\u679c\u662fXCode10\uff0c\u5e76\u4e14\u6ca1\u6709\u5347\u7ea7\u5230\u6700\u65b0Homebrew\uff0c\u53ef\u80fd\u5728brew install ldid\u65f6\u62a5\u9519<\/p>\n<p>2.2\u3001\u5b89\u88c5dpkg<br \/>\n2.2.1\u3001dpkg\u662fTheos\u4f9d\u8d56\u7684\u5de5\u5177\u4e4b\u4e00\uff0cdpkg\u662fDebian Packager\u7684\u7f29\u5199\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528dpkg\u6765\u5236\u4f5cdeb\uff0cTheos\u5f00\u53d1\u7684\u63d2\u4ef6\u90fd\u5c06\u4f1a\u4ee5deb\u7684\u683c\u5f0f\u8fdb\u884c\u53d1\u5e03\u7684\u3002\u6240\u4ee5\u6211\u5728\u5b89\u88c5Theos\u4e4b\u524d\u8981\u5b89\u88c5dpkg<br \/>\n2.2.2\u3001\u5b89\u88c5\u547d\u4ee4<\/p>\n<pre lang=\"bash\" line=\"1\">yusian@SianMac2:~\/Documents\/Reverse$brew install dpkg<\/pre>\n<p>2.2.3\u3001\u8fd9\u91cc\u53c8\u8981\u5570\u55e6\u4e00\u53e5\uff0c\u5982\u679c\u4e0d\u5b89\u88c5dpkg\uff0c\u53ef\u80fd\u540e\u7eed\u4f60\u4e00\u5207\u987a\u5229\uff0c\u5728\u6700\u540e\u5173\u5934\u8981\u5c06deb\u6253\u5305\u5b89\u88c5\u5230\u624b\u673a\u4e0a\u65f6\u62a5\u9519\u4e86\uff0c\u6211\u8e29\u5230\u7684\u5751\u662f\u8fd9\u6837\u7684\uff1a<!--more--><\/p>\n<pre lang=\"bash\" line=\"1\">yusian@SianMac2:~\/Desktop\/tingtweak$ make package\r\n> Making all for tweak tingtweak\u2026\r\nmake[2]: Nothing to be done for `internal-library-compile'.\r\n> Making stage for tweak tingtweak\u2026\r\ndm.pl: building package `com.yusian.tingtweak:iphoneos-arm' in `.\/packages\/com.yusian.tingtweak_0.0.1-2+debug_iphoneos-arm.deb'\r\nopen2: exec of lzma -c6 failed at \/Users\/yusian\/Documents\/Reverse\/theos\/bin\/dm.pl line 113.\r\nmake: *** [internal-package] Error 2<\/pre>\n<p>\u656c\u8bf7\u7ed5\u8fc7&#8230;.<\/p>\n<p><strong>3\u3001\u5b89\u88c5Theos<\/strong><\/p>\n<p>3.1\u3001github\u4e0b\u8f7dTheos\u9879\u76ee\uff1a<\/p>\n<pre lang=\"bash\" line=\"1\">yusian@SianMac2:~\/Desktop$ git clone --recursive https:\/\/github.com\/theos\/theos.git ~\/Documents\/Reverse\/theos<\/pre>\n<p>3.2\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0cvim ~\/.bash_profile \u6253\u5f00\u8be5\u6587\u4ef6\u540e\uff0c\u5728\u5c3e\u90e8\u6dfb\u52a0<\/p>\n<pre lang=\"xml\" line=\"1\">#theos\r\nexport THEOS=~\/Documents\/Reverse\/theos\r\nexport PATH=$THEOS\/bin:$PATH<\/pre>\n<p>\u4fdd\u5b58\u9000\u51fa\u540e\uff0c\u6267\u884csource ~\/.bash_profile\u547d\u4ee4\u4f7f\u73af\u5883\u53d8\u91cf\u751f\u6548<br \/>\n3.3\u3001\u5728\u7ec8\u7aef\u8f93\u5165nic.pl\uff0c\u5982\u679c\u80fd\u6b63\u5e38\u6267\u884c\uff0c\u5219Theos\u5b89\u88c5\u914d\u7f6e\u641e\u5b9a\uff01<\/p>\n<p><strong>4\u3001\u4f7f\u7528Theos\u521b\u5efa\u63d2\u4ef6\u9879\u76ee<\/strong><\/p>\n<pre lang=\"bash\" line=\"1\">yusian@SianMac2:~\/Desktop$ nic.pl\r\nNIC 2.0 - New Instance Creator\r\n------------------------------\r\n  [1.] iphone\/activator_event\r\n  [2.] iphone\/application_modern\r\n  [3.] iphone\/application_swift\r\n  [4.] iphone\/cydget\r\n  [5.] iphone\/flipswitch_switch\r\n  [6.] iphone\/framework\r\n  [7.] iphone\/ios7_notification_center_widget\r\n  [8.] iphone\/library\r\n  [9.] iphone\/notification_center_widget\r\n  [10.] iphone\/preference_bundle_modern\r\n  [11.] iphone\/tool\r\n  [12.] iphone\/tool_swift\r\n  [13.] iphone\/tweak\r\n  [14.] iphone\/xpc_service\r\nChoose a Template (required): 13\r\nProject Name (required): tingtweak\r\nPackage Name [com.yourcompany.tingtweak]: com.yusian.tingtweak\r\nAuthor\/Maintainer Name [yusian]: yusian\r\n[iphone\/tweak] MobileSubstrate Bundle filter [com.apple.springboard]: com.gemd.iting\r\n[iphone\/tweak] List of applications to terminate upon installation (space-separated, '-' for none) [SpringBoard]:\r\nInstantiating iphone\/tweak in tingtweak\/...\r\nDone.<\/pre>\n<p>4.1\u3001\u5de5\u7a0b\u76ee\u5f55\u4e0b\u5171\u67094\u4e2a\u6587\u4ef6\uff1acontrol\u3001Makefile\u3001xxxx.plist\u3001Tweak.xm<br \/>\n4.2\u3001Tweak.xm\u4e3a\u9700\u8981\u66f4\u6539\u7684\u7c7b\u53ca\u7c7b\u65b9\u6cd5\uff0c\u8fd9\u4e2a\u4e0d\u5728\u8fd9\u91cc\u8d58\u8ff0\uff1b<br \/>\n4.3\u3001\u7f16\u8f91Makefile\u5728\u9876\u90e8\u63d2\u5165<\/p>\n<pre lang=\"Makefile\" line=\"1\">export THEOS_DEVICE_IP=127.0.0.1\r\nexport THEOS_DEVICE_PORT=2222<\/pre>\n<p>4.4\u3001\u7f16\u8bd1&#8211;>\u6253\u5305&#8211;>\u5b89\u88c5<\/p>\n<pre lang=\"bash\" line=\"1\">yusian@SianMac2:~\/Desktop\/tingtweak$ make\r\n> Making all for tweak tingtweak\u2026\r\nmake[2]: Nothing to be done for `internal-library-compile'.\r\nyusian@SianMac2:~\/Desktop\/tingtweak$ make package\r\n> Making all for tweak tingtweak\u2026\r\nmake[2]: Nothing to be done for `internal-library-compile'.\r\n> Making stage for tweak tingtweak\u2026\r\ndm.pl: building package `com.yusian.tingtweak:iphoneos-arm' in `.\/packages\/com.yusian.tingtweak_0.0.1-10+debug_iphoneos-arm.deb'\r\nyusian@SianMac2:~\/Desktop\/tingtweak$ make install\r\n==> Installing\u2026\r\n(Reading database ... 1244 files and directories currently installed.)\r\nPreparing to unpack \/tmp\/_theos_install.deb ...\r\nUnpacking com.yusian.tingtweak (0.0.1-10+debug) over (0.0.1-9+debug) ...\r\nSetting up com.yusian.tingtweak (0.0.1-10+debug) ...\r\ninstall.exec \"killall -9 SpringBoard\"\r\nyusian@SianMac2:~\/Desktop\/tingtweak$<\/pre>\n<p>4.4.1\u3001\u4e0a\u8ff0\u662f\u6b63\u5e38\u7684\u72b6\u6001\u4e0e\u7ed3\u679c\uff0c\u5728make\u7684\u65f6\u5019\u6709\u53ef\u80fd\u4f1a\u62a5\u9519\uff0c\u6211\u7684\u5751\uff1a<\/p>\n<pre lang=\"bash\" line=\"1\">yusian@SianMac2:~\/Desktop\/tingtweak$ make\r\nxcrun: error: SDK \"iphoneos\" cannot be located\r\nxcrun: error: SDK \"iphoneos\" cannot be located\r\nxcrun: error: SDK \"iphoneos\" cannot be located\r\nxcrun: error: SDK \"iphoneos\" cannot be located\r\nxcrun: error: SDK \"iphoneos\" cannot be located\r\nxcrun: error: SDK \"iphoneos\" cannot be located\r\nxcrun: error: SDK \"iphoneos\" cannot be located\r\n==> Error: You do not have any SDKs in \/Library\/Developer\/CommandLineTools\/Platforms\/iPhoneOS.platform\/Developer\/SDKs or \/Users\/yusian\/Documents\/Reverse\/theos\/sdks.\r\nmake: *** [before-all] Error 1<\/pre>\n<p>\u8fd9\u4e2a\u95ee\u9898\u662f\u8bf4\u6ca1\u6709\u627e\u5230\u76f8\u5bf9\u5e94\u7684sdk\uff0c\u4fee\u6539\u4e0bSDK\u8def\u5f84\uff1a<\/p>\n<pre lang=\"bash\" line=\"1\">\r\nyusian@SianMac2:~\/Desktop\/tingtweak$ sudo xcode-select --switch \/Applications\/Xcode.app\/Contents\/Developer\/<\/pre>\n<p>4.4.2\u3001make package\u53ef\u80fd\u7684\u62a5\u9519\uff0c\u524d\u9762\u6709\u63d0\u5230\u8fc7\uff0c\u9700\u8981brew install dpkg\u5b89\u88c5dpkg\u3002<\/p>\n<p><strong>5\u3001\u5dee\u4e0d\u591a\u4e86\uff0c\u795d\u4f60\u597d\u8fd0\uff01<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001Theos\u662fiOS\u8d8a\u72f1\u63d2\u4ef6\u5f00\u53d1\u7684\u96c6\u6210\u73af\u5883\uff0c\u5b83\u53ef\u4ee5\u521b\u5efa\u5de5\u7a0b\uff0c\u8c03\u7528XCode\u7684\u547d\u4ee4\u884c\u5de5\u5177\u7f16\u8bd1\u3001ldid\u7b7e\u540d\u6253\u5305\uff0c\u5e76\u63d0\u4f9b\u4e0a\u4f20\u624b\u673a\u3001\u5b89\u88c5\u7b49\u4e00\u7cfb\u5217\u64cd\u4f5c\uff0c\u5b89\u88c5\u6210\u529f\u540e\u53ef\u4ee5Cydia\u7684\u5df2\u5b89\u88c5\u63d2\u4ef6\u4e2d\u770b\u5230\u3002 2\u3001\u5b89\u88c5ldid&#038;dpkg 2.1\u3001\u5b89\u88c5ldid 2.1.1\u3001\u53c2\u8003\u94fe\u63a5\uff1ahttps:\/\/brewinstall.org\/Install-ldid-on-Mac-with-Brew\/ 2.1.2\u3001\u5b89\u88c5\u547d\u4ee4\uff1a yusian@SianMac2:~\/Documents\/Reverse$ruby -e &#8220;$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)&#8221; < \/dev\/null 2> \/dev\/null yusian@SianMac2:~\/Documents\/Reverse$brew install ldid 2.1.3\u3001\u5fc5\u987b\u8981\u8bf4\u7684\u662f\uff0c\u7b2c\u4e00\u6761\u547d\u4ee4\u662f\u5b89\u88c5Homebrew\uff0c\u4e5f\u8bb8\u4f60Mac\u4e0a\u65e9\u5b89\u88c5\u8fc7Homebrew\u4e86\uff0c\u4f46\u4e5f\u5f3a\u5236\u5efa\u8bae\u518d\u6267\u884c\u4e00\u6b21\u8be5\u547d\u4ee4\uff0c\u53ef\u5c06Homebrew\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\uff0c\u8fd9\u91cc\u53ef\u80fd\u4f1a\u662f\u4e2a\u5751\uff01\uff01\u56e0\u4e3aXCode10\u73b0\u5728\u5e9f\u5f03\u4e86\u4ee5\u524d\u7684libstd++\u8fd9\u4e2ac++\u5e93\uff0c\u53d6\u800c\u4ee3\u4e4b\u7684\u662flibc++\uff0c\u5982\u679c\u662fXCode10\uff0c\u5e76\u4e14\u6ca1\u6709\u5347\u7ea7\u5230\u6700\u65b0Homebrew\uff0c\u53ef\u80fd\u5728brew install ldid\u65f6\u62a5\u9519 2.2\u3001\u5b89\u88c5dpkg 2.2.1\u3001dpkg\u662fTheos\u4f9d\u8d56\u7684\u5de5\u5177\u4e4b\u4e00\uff0cdpkg\u662fDebian Packager\u7684\u7f29\u5199\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528dpkg\u6765\u5236\u4f5cdeb\uff0cTheos\u5f00\u53d1\u7684\u63d2\u4ef6\u90fd\u5c06\u4f1a\u4ee5deb\u7684\u683c\u5f0f\u8fdb\u884c\u53d1\u5e03\u7684\u3002\u6240\u4ee5\u6211\u5728\u5b89\u88c5Theos\u4e4b\u524d\u8981\u5b89\u88c5dpkg 2.2.2\u3001\u5b89\u88c5\u547d\u4ee4 yusian@SianMac2:~\/Documents\/Reverse$brew install dpkg 2.2.3\u3001\u8fd9\u91cc\u53c8\u8981\u5570\u55e6\u4e00\u53e5\uff0c\u5982\u679c\u4e0d\u5b89\u88c5dpkg\uff0c\u53ef\u80fd\u540e\u7eed\u4f60\u4e00\u5207\u987a\u5229\uff0c\u5728\u6700\u540e\u5173\u5934\u8981\u5c06deb\u6253\u5305\u5b89\u88c5\u5230\u624b\u673a\u4e0a\u65f6\u62a5\u9519\u4e86\uff0c\u6211\u8e29\u5230\u7684\u5751\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[120],"tags":[157,159,156,155,158],"class_list":["post-1351","post","type-post","status-publish","format-standard","hentry","category-reverse","tag-dpkg","tag-homebrew","tag-ldid","tag-theos","tag-tweak"],"_links":{"self":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/1351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/comments?post=1351"}],"version-history":[{"count":0,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/1351\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/media?parent=1351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/categories?post=1351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/tags?post=1351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}