{"action":"created","comment":{"url":"https://api.github.com/repos/kpwn/iOSRE/pulls/comments/58219665","id":58219665,"diff_hunk":"@@ -1,72 +1,52 @@\n-#Firmwares&Keys\n->Firmwares comes as .ipsw packed format.Which, in fact, is only ZIPPED Archive\n->When Unlocked.The Folder Structure Looks Like This(Extracted From iPhone5,4 iOS 9.2.1 (13D15) ):\n-#Structure\n->>058-32080-015.dmg\n-\n->>058-32173-015.dmg\n-\n->>058-32359-015.dmg\n-\n->>BuildManifest.plist\n-\n->>Firmware\n-\n->>>>Mav7Mav8-6.01.00.Release.bbfw\n-\n->>>>Mav7Mav8-6.01.00.Release.plist\n-\n->>>>all_flash\n-\n->>>>>>all_flash.n49ap.production\n-\n->>>>>>>>DeviceTree.n49ap.img3\n-\n->>>>>>>>LLB.n49.RELEASE.img3\n-\n->>>>>>>>applelogo@2x~iphone.s5l8950x.img3\n-\n->>>>>>>>batterycharging0@2x~iphone.s5l8950x.img3\n-\n->>>>>>>>batterycharging1@2x~iphone.s5l8950x.img3\n-\n->>>>>>>>batteryfull@2x~iphone.s5l8950x.img3\n-\n->>>>>>>>batterylow0@2x~iphone.s5l8950x.img3\n-\n->>>>>>>>batterylow1@2x~iphone.s5l8950x.img3\n-\n->>>>>>>>glyphplugin@1136~iphone-lightning.s5l8950x.img3\n-\n->>>>>>>>iBoot.n49.RELEASE.img3\n-\n->>>>>>>>manifest\n-\n->>>>>>>>recoverymode@1136~iphone-lightning.s5l8950x.img3\n-\n->>>>dfu\n-\n->>>>>>iBEC.n49.RELEASE.dfu\n-\n->>>>>>iBSS.n49.RELEASE.dfu\n-\n->>>>usr\n-\n->>>>>>local\n-\n->>>>>>>> standalone\n-\n->>Restore.plist\n-\n->>kernelcache.release.n49\n-\n-#All of these files could be Extracted using corresponding keys and xpwn\n-#Some keys are available at https://ipsw.me/keys/\n-For The KernelCache. First run:\n-\n-*xpwntool PATH/TO/CACHE /PATH/TO/OUTPUT -k YOURKEYHERE -iv YOURIVHERE -decrypt*\n-\n-Then:\n-*wget http://nah6.com/~itsme/cvs-xdadevtools/iphone/tools/lzssdec.cpp*\n-Use clang to compile and install it.\n-lzssdec -o 448 < /PATH/TOPREVIOUS.OUTPUT > /PATH/TO/FINAL/OUTPUT\n+# Firmwares and Keys\n+\n+Firmwares come as .ipsw files, which are .zip files in disguise.\n+\n+Here's what the folder structure looks like (example: iPhone5,4 on iOS 9.2.1):\n+\n+```\n+iPhone5,4_9.2.1_13D15_Restore.ipsw/\n+├── 058-32080-015.dmg\n+├── 058-32173-015.dmg\n+├── 058-32359-015.dmg\n+├── BuildManifest.plist\n+├── Firmware/\n+├──── Mav7Mav8-6.01.00.Release.bbfw\n+├──── Mav7Mav8-6.01.00.Release.plist\n+├──── all_flash/\n+├────── all_flash.n49ap.production/\n+├────── DeviceTree.n49ap.img3\n+├────── LLB.n49.RELEASE.img3\n+├────── applelogo@2x~iphone.s5l8950x.img3\n+├────── batterycharging0@2x~iphone.s5l8950x.img3\n+├────── batterycharging1@2x~iphone.s5l8950x.img3\n+├────── batteryfull@2x~iphone.s5l8950x.img3\n+├────── batterylow0@2x~iphone.s5l8950x.img3\n+├────── batterylow1@2x~iphone.s5l8950x.img3\n+├────── glyphplugin@1136~iphone-lightning.s5l8950x.img3\n+├────── iBoot.n49.RELEASE.img3\n+├────── manifest\n+├────── recoverymode@1136~iphone-lightning.s5l8950x.img3\n+├──── dfu/\n+├────── iBEC.n49.RELEASE.dfu\n+├────── iBSS.n49.RELEASE.dfu\n+├──── usr/\n+├────── local/\n+├────── standalone/\n+├── Restore.plist\n+└── kernelcache.release.n49\n+```\n+\n+All of these files can be extracted using keys and xpwn.\n+\n+Firmware keys are posted on https://theiphonewiki.com/wiki/Firmware_Keys\n+\n+For the kernelcache, run:\n+\n+`xpwntool path/to/cache /path/to/output -k KEY -iv IV -decrypt`\n+\n+The roof filesystem is in the largest DMG file of the .ipsw. To extract it, download dmg ([OS X](http://www.ifans.com/forums/attachments/dmg-zip.68330/), [Windows](https://intdev.googlecode.com/files/dmg.exe)). Make sure dmg or dmg.exe is in your path and execute one of the following:","path":"wiki/Firmwares-and-Keys.md","position":120,"original_position":120,"commit_id":"7397aa028fe3ba846aeb566cee1123c69ccb95fc","original_commit_id":"7397aa028fe3ba846aeb566cee1123c69ccb95fc","user":{"login":"citrusui","id":9056756,"avatar_url":"https://avatars.githubusercontent.com/u/9056756?v=3","gravatar_id":"","url":"https://api.github.com/users/citrusui","html_url":"https://github.com/citrusui","followers_url":"https://api.github.com/users/citrusui/followers","following_url":"https://api.github.com/users/citrusui/following{/other_user}","gists_url":"https://api.github.com/users/citrusui/gists{/gist_id}","starred_url":"https://api.github.com/users/citrusui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citrusui/subscriptions","organizations_url":"https://api.github.com/users/citrusui/orgs","repos_url":"https://api.github.com/users/citrusui/repos","events_url":"https://api.github.com/users/citrusui/events{/privacy}","received_events_url":"https://api.github.com/users/citrusui/received_events","type":"User","site_admin":false},"body":"Whoops! Typo.","created_at":"2016-04-01T15:11:16Z","updated_at":"2016-04-01T15:11:16Z","html_url":"https://github.com/kpwn/iOSRE/pull/23#discussion_r58219665","pull_request_url":"https://api.github.com/repos/kpwn/iOSRE/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/kpwn/iOSRE/pulls/comments/58219665"},"html":{"href":"https://github.com/kpwn/iOSRE/pull/23#discussion_r58219665"},"pull_request":{"href":"https://api.github.com/repos/kpwn/iOSRE/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/kpwn/iOSRE/pulls/23","id":64847520,"html_url":"https://github.com/kpwn/iOSRE/pull/23","diff_url":"https://github.com/kpwn/iOSRE/pull/23.diff","patch_url":"https://github.com/kpwn/iOSRE/pull/23.patch","issue_url":"https://api.github.com/repos/kpwn/iOSRE/issues/23","number":23,"state":"closed","locked":false,"title":"improve readability on Firmwares and Keys","user":{"login":"citrusui","id":9056756,"avatar_url":"https://avatars.githubusercontent.com/u/9056756?v=3","gravatar_id":"","url":"https://api.github.com/users/citrusui","html_url":"https://github.com/citrusui","followers_url":"https://api.github.com/users/citrusui/followers","following_url":"https://api.github.com/users/citrusui/following{/other_user}","gists_url":"https://api.github.com/users/citrusui/gists{/gist_id}","starred_url":"https://api.github.com/users/citrusui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citrusui/subscriptions","organizations_url":"https://api.github.com/users/citrusui/orgs","repos_url":"https://api.github.com/users/citrusui/repos","events_url":"https://api.github.com/users/citrusui/events{/privacy}","received_events_url":"https://api.github.com/users/citrusui/received_events","type":"User","site_admin":false},"body":"In this commit,\r\n\r\n- get rid of heavily-stacked quotes (they look weird on mobile)\r\n- add instructions on how to decrypt rootfs!","created_at":"2016-03-31T19:46:51Z","updated_at":"2016-04-01T15:11:16Z","closed_at":"2016-04-01T06:18:44Z","merged_at":"2016-04-01T06:18:44Z","merge_commit_sha":"d9eff35472e4ddb8f0cfcdd79c8745dbf8f4c26d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kpwn/iOSRE/pulls/23/commits","review_comments_url":"https://api.github.com/repos/kpwn/iOSRE/pulls/23/comments","review_comment_url":"https://api.github.com/repos/kpwn/iOSRE/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kpwn/iOSRE/issues/23/comments","statuses_url":"https://api.github.com/repos/kpwn/iOSRE/statuses/7397aa028fe3ba846aeb566cee1123c69ccb95fc","head":{"label":"citrusui:master","ref":"master","sha":"7397aa028fe3ba846aeb566cee1123c69ccb95fc","user":{"login":"citrusui","id":9056756,"avatar_url":"https://avatars.githubusercontent.com/u/9056756?v=3","gravatar_id":"","url":"https://api.github.com/users/citrusui","html_url":"https://github.com/citrusui","followers_url":"https://api.github.com/users/citrusui/followers","following_url":"https://api.github.com/users/citrusui/following{/other_user}","gists_url":"https://api.github.com/users/citrusui/gists{/gist_id}","starred_url":"https://api.github.com/users/citrusui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citrusui/subscriptions","organizations_url":"https://api.github.com/users/citrusui/orgs","repos_url":"https://api.github.com/users/citrusui/repos","events_url":"https://api.github.com/users/citrusui/events{/privacy}","received_events_url":"https://api.github.com/users/citrusui/received_events","type":"User","site_admin":false},"repo":{"id":55164364,"name":"iOSRE","full_name":"citrusui/iOSRE","owner":{"login":"citrusui","id":9056756,"avatar_url":"https://avatars.githubusercontent.com/u/9056756?v=3","gravatar_id":"","url":"https://api.github.com/users/citrusui","html_url":"https://github.com/citrusui","followers_url":"https://api.github.com/users/citrusui/followers","following_url":"https://api.github.com/users/citrusui/following{/other_user}","gists_url":"https://api.github.com/users/citrusui/gists{/gist_id}","starred_url":"https://api.github.com/users/citrusui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citrusui/subscriptions","organizations_url":"https://api.github.com/users/citrusui/orgs","repos_url":"https://api.github.com/users/citrusui/repos","events_url":"https://api.github.com/users/citrusui/events{/privacy}","received_events_url":"https://api.github.com/users/citrusui/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/citrusui/iOSRE","description":"iOS Reverse Engineering","fork":true,"url":"https://api.github.com/repos/citrusui/iOSRE","forks_url":"https://api.github.com/repos/citrusui/iOSRE/forks","keys_url":"https://api.github.com/repos/citrusui/iOSRE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/citrusui/iOSRE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/citrusui/iOSRE/teams","hooks_url":"https://api.github.com/repos/citrusui/iOSRE/hooks","issue_events_url":"https://api.github.com/repos/citrusui/iOSRE/issues/events{/number}","events_url":"https://api.github.com/repos/citrusui/iOSRE/events","assignees_url":"https://api.github.com/repos/citrusui/iOSRE/assignees{/user}","branches_url":"https://api.github.com/repos/citrusui/iOSRE/branches{/branch}","tags_url":"https://api.github.com/repos/citrusui/iOSRE/tags","blobs_url":"https://api.github.com/repos/citrusui/iOSRE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/citrusui/iOSRE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/citrusui/iOSRE/git/refs{/sha}","trees_url":"https://api.github.com/repos/citrusui/iOSRE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/citrusui/iOSRE/statuses/{sha}","languages_url":"https://api.github.com/repos/citrusui/iOSRE/languages","stargazers_url":"https://api.github.com/repos/citrusui/iOSRE/stargazers","contributors_url":"https://api.github.com/repos/citrusui/iOSRE/contributors","subscribers_url":"https://api.github.com/repos/citrusui/iOSRE/subscribers","subscription_url":"https://api.github.com/repos/citrusui/iOSRE/subscription","commits_url":"https://api.github.com/repos/citrusui/iOSRE/commits{/sha}","git_commits_url":"https://api.github.com/repos/citrusui/iOSRE/git/commits{/sha}","comments_url":"https://api.github.com/repos/citrusui/iOSRE/comments{/number}","issue_comment_url":"https://api.github.com/repos/citrusui/iOSRE/issues/comments{/number}","contents_url":"https://api.github.com/repos/citrusui/iOSRE/contents/{+path}","compare_url":"https://api.github.com/repos/citrusui/iOSRE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/citrusui/iOSRE/merges","archive_url":"https://api.github.com/repos/citrusui/iOSRE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/citrusui/iOSRE/downloads","issues_url":"https://api.github.com/repos/citrusui/iOSRE/issues{/number}","pulls_url":"https://api.github.com/repos/citrusui/iOSRE/pulls{/number}","milestones_url":"https://api.github.com/repos/citrusui/iOSRE/milestones{/number}","notifications_url":"https://api.github.com/repos/citrusui/iOSRE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/citrusui/iOSRE/labels{/name}","releases_url":"https://api.github.com/repos/citrusui/iOSRE/releases{/id}","deployments_url":"https://api.github.com/repos/citrusui/iOSRE/deployments","created_at":"2016-03-31T16:05:34Z","updated_at":"2016-03-31T16:05:34Z","pushed_at":"2016-03-31T19:44:57Z","git_url":"git://github.com/citrusui/iOSRE.git","ssh_url":"git@github.com:citrusui/iOSRE.git","clone_url":"https://github.com/citrusui/iOSRE.git","svn_url":"https://github.com/citrusui/iOSRE","homepage":null,"size":71,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kpwn:master","ref":"master","sha":"51b3440df4256f1756b1b57dd8eb7b2d6e87aaf1","user":{"login":"kpwn","id":1671686,"avatar_url":"https://avatars.githubusercontent.com/u/1671686?v=3","gravatar_id":"","url":"https://api.github.com/users/kpwn","html_url":"https://github.com/kpwn","followers_url":"https://api.github.com/users/kpwn/followers","following_url":"https://api.github.com/users/kpwn/following{/other_user}","gists_url":"https://api.github.com/users/kpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/kpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpwn/subscriptions","organizations_url":"https://api.github.com/users/kpwn/orgs","repos_url":"https://api.github.com/users/kpwn/repos","events_url":"https://api.github.com/users/kpwn/events{/privacy}","received_events_url":"https://api.github.com/users/kpwn/received_events","type":"User","site_admin":false},"repo":{"id":51470028,"name":"iOSRE","full_name":"kpwn/iOSRE","owner":{"login":"kpwn","id":1671686,"avatar_url":"https://avatars.githubusercontent.com/u/1671686?v=3","gravatar_id":"","url":"https://api.github.com/users/kpwn","html_url":"https://github.com/kpwn","followers_url":"https://api.github.com/users/kpwn/followers","following_url":"https://api.github.com/users/kpwn/following{/other_user}","gists_url":"https://api.github.com/users/kpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/kpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpwn/subscriptions","organizations_url":"https://api.github.com/users/kpwn/orgs","repos_url":"https://api.github.com/users/kpwn/repos","events_url":"https://api.github.com/users/kpwn/events{/privacy}","received_events_url":"https://api.github.com/users/kpwn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kpwn/iOSRE","description":"iOS Reverse Engineering","fork":false,"url":"https://api.github.com/repos/kpwn/iOSRE","forks_url":"https://api.github.com/repos/kpwn/iOSRE/forks","keys_url":"https://api.github.com/repos/kpwn/iOSRE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kpwn/iOSRE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kpwn/iOSRE/teams","hooks_url":"https://api.github.com/repos/kpwn/iOSRE/hooks","issue_events_url":"https://api.github.com/repos/kpwn/iOSRE/issues/events{/number}","events_url":"https://api.github.com/repos/kpwn/iOSRE/events","assignees_url":"https://api.github.com/repos/kpwn/iOSRE/assignees{/user}","branches_url":"https://api.github.com/repos/kpwn/iOSRE/branches{/branch}","tags_url":"https://api.github.com/repos/kpwn/iOSRE/tags","blobs_url":"https://api.github.com/repos/kpwn/iOSRE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kpwn/iOSRE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kpwn/iOSRE/git/refs{/sha}","trees_url":"https://api.github.com/repos/kpwn/iOSRE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kpwn/iOSRE/statuses/{sha}","languages_url":"https://api.github.com/repos/kpwn/iOSRE/languages","stargazers_url":"https://api.github.com/repos/kpwn/iOSRE/stargazers","contributors_url":"https://api.github.com/repos/kpwn/iOSRE/contributors","subscribers_url":"https://api.github.com/repos/kpwn/iOSRE/subscribers","subscription_url":"https://api.github.com/repos/kpwn/iOSRE/subscription","commits_url":"https://api.github.com/repos/kpwn/iOSRE/commits{/sha}","git_commits_url":"https://api.github.com/repos/kpwn/iOSRE/git/commits{/sha}","comments_url":"https://api.github.com/repos/kpwn/iOSRE/comments{/number}","issue_comment_url":"https://api.github.com/repos/kpwn/iOSRE/issues/comments{/number}","contents_url":"https://api.github.com/repos/kpwn/iOSRE/contents/{+path}","compare_url":"https://api.github.com/repos/kpwn/iOSRE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kpwn/iOSRE/merges","archive_url":"https://api.github.com/repos/kpwn/iOSRE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kpwn/iOSRE/downloads","issues_url":"https://api.github.com/repos/kpwn/iOSRE/issues{/number}","pulls_url":"https://api.github.com/repos/kpwn/iOSRE/pulls{/number}","milestones_url":"https://api.github.com/repos/kpwn/iOSRE/milestones{/number}","notifications_url":"https://api.github.com/repos/kpwn/iOSRE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kpwn/iOSRE/labels{/name}","releases_url":"https://api.github.com/repos/kpwn/iOSRE/releases{/id}","deployments_url":"https://api.github.com/repos/kpwn/iOSRE/deployments","created_at":"2016-02-10T20:32:04Z","updated_at":"2016-03-31T05:06:53Z","pushed_at":"2016-04-01T06:22:18Z","git_url":"git://github.com/kpwn/iOSRE.git","ssh_url":"git@github.com:kpwn/iOSRE.git","clone_url":"https://github.com/kpwn/iOSRE.git","svn_url":"https://github.com/kpwn/iOSRE","homepage":null,"size":388,"stargazers_count":128,"watchers_count":128,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":0,"forks":29,"open_issues":0,"watchers":128,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kpwn/iOSRE/pulls/23"},"html":{"href":"https://github.com/kpwn/iOSRE/pull/23"},"issue":{"href":"https://api.github.com/repos/kpwn/iOSRE/issues/23"},"comments":{"href":"https://api.github.com/repos/kpwn/iOSRE/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/kpwn/iOSRE/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/kpwn/iOSRE/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kpwn/iOSRE/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/kpwn/iOSRE/statuses/7397aa028fe3ba846aeb566cee1123c69ccb95fc"}}}}