├── .gitignore ├── LICENSE ├── README.md ├── iKeyHelper Loader.bat ├── iKeyHelper.bat └── resources ├── Template.plist.txt ├── boot-args.bat ├── device_definitions.bat ├── iKeyHelper.settings.bat └── tools.txt /.gitignore: -------------------------------------------------------------------------------- 1 | # folders 2 | tools/ 3 | scripts/ 4 | builds/ 5 | 6 | # shortcuts 7 | *.lnk 8 | 9 | # any tools 10 | *.exe 11 | *.dll 12 | *.zip 13 | 14 | # loader files 15 | Loader.bat 16 | version.bat 17 | version.txt 18 | *.ico 19 | 20 | # build files 21 | Main.bat 22 | update_version.bat 23 | *-build.bat 24 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # iKeyHelper 2 | -- 3 | iKeyHelper is a script for Windows to get AES keys from Apple's iOS Firmware. 4 | 5 | iKeyHelper is scripted in Batch. Its features include: formatting for TheiPhoneWiki, decryption of files, use of the Firmware Links API, baseband detection, preparation for bundle making, and much more! 6 | 7 | iKeyHelper 8 | 9 | ## Preparation 10 | 11 | Open iKeyHelper and allow it to unpack the tools, then when it has gone to the "IPSW" screen, run the `resources\boot-args.bat` - this will make injectpois0n halt after the payload has been run, rather than rebooting. 12 | 13 | ## Resources 14 | 15 | iKeyHelper uses the following: 16 | 17 | * **XPwn** by planetbeing 18 | * **greenpois0n** by chronic-dev 19 | * **irecovery** by westbaer 20 | * **7zip** by Igor Pavlov 21 | * **SSR** by Jonas Reinhardt 22 | * **Binmay** by sloaring 23 | * various parts of **Cygwin** 24 | * ideviceinfo and dll's from **libimobiledevice** 25 | 26 | If you want to use iKeyHelper, you must first collect these parts - as a general guidance, you can find the required .exe's in `resources/tools.txt`. When you have them, place them in `resources/tools/` and run the iKeyHelper.bat. It will then run from the files. 27 | 28 | Also, you need iTunes, libusb (and device filters installed for each mode) for iKeyHelper to function properly. 29 | 30 | ## License 31 | 32 | **iKeyHelper** is licensed under the GNU GPL v3. See the LICENSE file for more information. 33 | 34 | ## Credits 35 | 36 | iKeyHelper wouldn't have been possible without the following people 37 | 38 | * **iNeal** - for baseband detection and other key parts 39 | * **iH8sn0w** - for the non-existent iKeys which prompted the starting of this project 40 | * **Atarii** - for autoirecovery (a tool you never saw) - which was once at the core of iKeyHelper 41 | * **members of the case** -------------------------------------------------------------------------------- /iKeyHelper Loader.bat: -------------------------------------------------------------------------------- 1 | :: iKeyHelper Loader 2 | :: (c) Callum Jones 3 | :: probably not of use to anyone, but meh ;P 4 | 5 | @echo OFF 6 | setlocal 7 | setlocal enabledelayedexpansion 8 | 9 | goto top 10 | 11 | :top 12 | 13 | title Loading iKeyHelper... 14 | 15 | :: get the log datestamp 16 | reg copy "HKCU\Control Panel\International" "HKCU\Control Panel\International-Temp" /f >NUL 17 | reg add "HKCU\Control Panel\International" /v sShortDate /d "dd-MM-yy" /f >NUL 18 | set LogDate=%date% 19 | reg copy "HKCU\Control Panel\International-Temp" "HKCU\Control Panel\International" /f >NUL 20 | 21 | set logdir=%appdata%\iKeyHelper\logs 22 | set logfile=%logdir%\iKeyHelper_Loader-%LogDate%.log 23 | 24 | 25 | :: variables 26 | set workingDir=%appdata%\iKeyHelper 27 | set tempDir=%temp%\iKeyHelper 28 | set tools=%workingDir%\bin 29 | 30 | :: wipe clean 31 | 32 | if "%1%"=="clean" goto clean 33 | if exist %workingDir%\version.check ( 34 | echo This is a previous version, wiping files 35 | call :clean 36 | goto :top 37 | ) 38 | call :log info --------------------------------------------------------------------------------- 39 | call :log info Starting iKeyHelper Loader. 40 | call :log info --------------------------------------------------------------------------------- 41 | :: create the directories 42 | call :log info Creating directories... 43 | if not exist %workingDir% mkdir %workingDir% >NUL 44 | if not exist %tempDir% mkdir %tempDir% >NUL 45 | if not exist %tools% mkdir %tools% >NUL 46 | 47 | :: unpack tools from "compiled" exe 48 | if not exist "%tools%\curl.exe" ( copy "%MYFILES%\curl.exe" "%tools%\curl.exe" >NUL ) 49 | if not exist "%tools%\libeay32.dll" ( copy "%MYFILES%\libeay32.dll" "%tools%\libeay32.dll" >NUL ) 50 | if not exist "%tools%\libssl32.dll" ( copy "%MYFILES%\libssl32.dll" "%tools%\libssl32.dll" >NUL ) 51 | 52 | if not exist %UserProfile%\iKeyHelper\iKeyHelper.settings.bat ( 53 | echo No settings file found, downloading standard configuration... 54 | %tools%\curl -L -A "iKeyHelper %uuid%" --silent http://hidden.iKeyHelper.icj.me/resources/iKeyHelper.settings.bat > "%UserProfile%\iKeyhelper\iKeyHelper.settings.bat" 55 | echo Settings file saved to %UserProfile%\iKeyHelper\iKeyHelper.settings.bat 56 | ) 57 | 58 | cls 59 | echo Parsing Settings file... 60 | call :log info Parsing settings file... 61 | call %UserProfile%\iKeyHelper\iKeyHelper.settings.bat this-is-meant-to-be-run 62 | 63 | color 0%fontcolour% 64 | 65 | 66 | :: generate the UUID 67 | pushd %tools% 68 | if not exist uuid.exe ( 69 | call :log info Downloading UUID.exe 70 | curl -LO -A "iKeyHelper Loader" --silent http://www.icj.me/~cj/uuid.exe 71 | ) 72 | for /F "tokens=2 delims=: " %%a IN ('uuid.exe ^| find "UUID"') DO SET uuid=%%a 73 | call :log info UUID: %uuid% 74 | popd 75 | 76 | :: previous version 77 | 78 | pushd %workingDir% 79 | for /F "tokens=* delims= " %%a IN ('dir /OS /B iKeyHelper-*') do set file=%%a >NUL 80 | if "%file:~16,1%"=="-" ( 81 | set previousversion=%file:~11,7% 82 | ) else ( 83 | set previousversion=%file:~11,5% 84 | ) 85 | popd 86 | 87 | :: first time run 88 | if not exist "%workingDir%\version.check.bat" ( 89 | cls & echo First time run detected. Downloading necessary files... 90 | pushd %workingDir% 91 | %tools%\curl -LO -A "iKeyHelper Loader - %uuid%" --silent http://hidden.iKeyHelper.icj.me/resources/tools.zip >NUL 92 | set previousversion=0.0 93 | popd 94 | 95 | :: if its only offering a beta version, download it 96 | set downloadbetas=yes 97 | ) 98 | 99 | 100 | 101 | 102 | pushd %workingDir% 103 | if not exist version.check.bat goto :versioncheck 104 | 105 | :: dont check for updates if the settings file tells you not to 106 | if "%checkforupdates%"=="no" ( 107 | call :log info Not checking for updates. 108 | set downloadedversion=%previousversion% 109 | goto :start 110 | ) 111 | call :log info previous version: %previousversion% 112 | goto :versioncheck 113 | :: check for updates 114 | :versioncheck 115 | call :log info Downloading update.bat 116 | %tools%\curl -L -A "iKeyHelper Loader - %uuid%" --silent http://hidden.iKeyHelper.icj.me/version.bat >version.check.bat 117 | 118 | call version.check.bat 119 | set downloadedversion=%version% 120 | 121 | :: beta versions 122 | echo %downloadedversion% | find "~b" >NUL 123 | if %errorlevel%==0 ( 124 | if "%downloadbetas%"=="no" ( 125 | call :log info Not downloading betas 126 | set downloadedversion=%previousversion% 127 | goto :start 128 | ) 129 | ) 130 | 131 | if %downloadedversion% GTR %previousversion% ( 132 | call :log info Found new version: %downloadedversion% 133 | cls & echo New version ^(%downloadedversion%^) detected. Downloading... 134 | %tools%\curl -L -A "iKeyHelper Loader - %uuid%" --silent http://hidden.iKeyHelper.icj.me/builds/%downloadedversion%.exe >iKeyHelper-%downloadedversion%.exe 135 | if exist iKeyHelper-%previousversion%.exe del iKeyHelper-%previousversion%.exe /S /Q >NUL 136 | ) else ( 137 | call :log info No new version 138 | set downloadedversion=%previousversion% 139 | ) 140 | 141 | :start 142 | :: run the exe 143 | call :log info Running: iKeyHelper-%downloadedversion%.exe 144 | call iKeyHelper-%downloadedversion%.exe 145 | popd 146 | endlocal 147 | 148 | goto :eof 149 | 150 | :clean 151 | call :log info Cleaning Files 152 | NUL 154 | if exist %tempDir% rmdir %tempDir% /S /Q>NUL 155 | if exist %tools% rmdir %tools% /S /Q>NUL 156 | echo Done^^! 157 | goto :EOF 158 | 159 | :log 160 | 161 | :: log messages 162 | 163 | if not exist %logdir% mkdir %logdir% >NUL 164 | 165 | if not .%1.==.. ( 166 | if "%1"=="error" ( 167 | echo [%time:~0,8%] [ERROR] %2 %3 %4 %5 %6 %7 %8 %9 >> %logfile% 168 | ) else ( 169 | echo [%time:~0,8%] [INFO] %1 %2 %3 %4 %5 %6 %7 %8 %9 >> %logfile% 170 | ) 171 | ) else ( 172 | echo Usage: log ^(error^) ^ 173 | ) 174 | 175 | goto eof 176 | 177 | :eof 178 | 179 | -------------------------------------------------------------------------------- /iKeyHelper.bat: -------------------------------------------------------------------------------- 1 | :: iKeyHelper 2 | :: Copyright (C) 2012 Callum Jones 3 | :: See attached license 4 | 5 | :: if you get all the tools, pop them in resources\tools\ 6 | 7 | @ECHO OFF 8 | 9 | title iKeyHelper 10 | 11 | ::------------------------------------------------------------------------------------ 12 | 13 | setlocal enableextensions enabledelayedexpansion 14 | 15 | 16 | :beginning 17 | 18 | set tools=%appdata%\iKeyHelper\bin 19 | set logdir=%appdata%\iKeyHelper\logs 20 | set tempdir=%temp%\iKeyHelper 21 | 22 | if not exist %appdata%\iKeyHelper mkdir %appdata%\iKeyHelper >NUL 23 | if not exist %tools% mkdir %tools% >NUL 24 | if not exist %tempdir% mkdir %tempdir% >NUL 25 | if not exist %logdir% mkdir %logdir% >NUL 26 | 27 | if "%uuid%"=="" ( 28 | set uuid=iKeyHelper~git 29 | set version=%uuid% 30 | ) 31 | 32 | call :log ############################################################################# 33 | call :log Starting iKeyHelper v%version% on %date% 34 | call :log ############################################################################# 35 | 36 | 37 | if "%uuid%"=="iKeyHelper~git" ( 38 | REM check for tools 39 | call :toolcheck 7za.exe 40 | call :toolcheck binmay.exe 41 | call :toolcheck curl.exe 42 | call :toolcheck dmg.exe 43 | call :toolcheck genpass.exe 44 | call :toolcheck hfsplus.exe 45 | call :toolcheck iconv.dll 46 | call :toolcheck ideviceinfo.exe 47 | call :toolcheck injectpois0n.exe 48 | call :toolcheck intl.dll 49 | call :toolcheck irecovery.exe 50 | call :toolcheck libcurl.dll 51 | call :toolcheck libeay32.dll 52 | call :toolcheck libglib-2.0-0.dll 53 | call :toolcheck libpng12.dll 54 | call :toolcheck libssl32.dll 55 | call :toolcheck libxml2.dll 56 | call :toolcheck readline5.dll 57 | call :toolcheck ssr.exe 58 | call :toolcheck xpwntool.exe 59 | call :toolcheck zlib1.dll 60 | ) 61 | 62 | 63 | title iKeyHelper v%version% - (c) 2012 cj 64 | cls 65 | 66 | if not exist %UserProfile%\iKeyHelper mkdir %UserProfile%\iKeyHelper >NUL 67 | if not exist "%UserProfile%\iKeyHelper\iKeyHelper.settings.bat" ( 68 | echo Cannot find settings file. 69 | echo Downloading new settings file. 70 | pushd %UserProfile%\iKeyHelper 71 | call %tools%\curl -LO https://github.com/cj123/iKeyHelper/raw/master/resources/iKeyHelper.settings.bat --progress-bar 72 | popd 73 | ) 74 | 75 | :: parse the settings 76 | call %UserProfile%\iKeyHelper\iKeyHelper.settings.bat this-is-meant-to-be-run 77 | 78 | if not exist %tempdir% mkdir %tempdir% >NUL 79 | 80 | :: Run on startup 81 | color 0%fontcolour% 82 | cd %tempdir% 83 | 84 | :: delete me some stuffs 85 | 86 | if exist * del * /S /Q >> %logme% 87 | if exist dlipsw rmdir dlipsw /S /Q >> %logme% 88 | if exist IPSW rmdir IPSW /S /Q >> %logme% 89 | if exist tools rmdir tools /S /Q >> %logme% 90 | if exist decrypted rmdir decrypted /S /Q >> %logme% 91 | if exist *.txt del *.txt /S /Q >> %logme% 92 | 93 | cls 94 | cd %tools% 95 | if not exist %appdata%\iKeyHelper\bin\genpass.exe ( 96 | echo Extracting Files... 97 | :: Extract the tools 98 | if not exist %tempdir% mkdir %tempdir% >nul 99 | if not exist %tools% mkdir %tools% >nul 100 | copy %MYFILES%\7za.exe %tools%\7za.exe >nul 101 | call 7za.exe x -y -mmt %appdata%\iKeyHelper\tools.zip >> %logme% 102 | ) 103 | 104 | if "%viewlog%"=="yes" ( 105 | if exist %tools%\baretail.exe ( 106 | taskkill /F /IM "baretail.exe" 2>NUL >NUL 107 | start "" %tools%\baretail "%logme%" 108 | ) 109 | ) 110 | 111 | :: check for old files and remove them 112 | call :log Clearing existing files 113 | if exist %tempdir%\kbags rmdir /S /Q %tempdir%\kbags >> %logme% 114 | if exist %tempdir%\IPSW rmdir /S /Q %tempdir%\IPSW >> %logme% 115 | if exist %tempdir%\ipad-bb rmdir /S /Q %tempdir%\ipad-bb >> %logme% 116 | if exist %tempdir%\dlipsw rmdir /S /Q %tempdir%\dlipsw >> %logme% 117 | if exist %tempdir%\keys.txt del /S /Q if exist %tempdir%\keys.txt >> %logme% 118 | if exist %tempdir%\kbags.txt del /S /Q %tempdir%\kbags.txt >> %logme% 119 | cls 120 | 121 | goto top 122 | 123 | :top 124 | 125 | cd %tempdir% 126 | cls 127 | 128 | set IPSW= 129 | echo [v=%version%] 130 | echo. 131 | echo iKeyHelper 132 | echo -------------- 133 | echo ________________________________________________________________________________ 134 | echo Drag in an... 135 | echo. 136 | echo $$$$$$\ $$$$$$$\ $$$$$$\ $$\ $$\ 137 | echo \_$$ _^|$$ __$$\ $$ __$$\ $$ ^| $\ $$ ^| 138 | echo $$ ^| $$ ^| $$ ^|$$ / \__^|$$ ^|$$$\ $$ ^| 139 | echo $$ ^| $$$$$$$ ^|\$$$$$$\ $$ $$ $$\$$ ^| 140 | echo $$ ^| $$ ____/ \____$$\ $$$$ _$$$$ ^| 141 | echo $$ ^| $$ ^| $$\ $$ ^|$$$ / \$$$ ^| 142 | echo $$$$$$\ $$ ^| \$$$$$$ ^|$$ / \$$ ^| 143 | echo \______^|\__^| \______/ \__/ \__^| 144 | echo. 145 | echo. 146 | echo ...or type "x" to download from Apple. 147 | if not exist "\Windows\System32\libusb0.dll" ( 148 | echo ^|______________________________________________________________________________^| 149 | echo ^| Error: You do not have libusb. Please take care when installing it. ^| 150 | CALL :log error Unable to find LibUSB. Please install it. 151 | ) 152 | if not exist "%ProgramFiles%\iTunes\" ( 153 | echo ^|______________________________________________________________________________^| 154 | echo ^| Error: You do not have iTunes. Please install it from apple.com/itunes ^| 155 | CALL :log error Unable to find iTunes. Please install it. 156 | ) 157 | echo. 158 | echo ________________________________________________________________________________ 159 | 160 | :: open readme (once) 161 | 162 | if not exist %appdata%\iKeyHelper\readme.txt ( 163 | call :log Opening README 164 | start "http://www.icj.me/iKeyHelper" 165 | echo read >%appdata%\iKeyHelper\readme.txt 166 | ) 167 | 168 | set /P quotedinfile=- File: %=% 169 | 170 | :: Remove quotes from infile if they exist, then put them back ;) 171 | CALL :dequote quotedinfile 172 | set IPSW="%quotedinfile%" 173 | 174 | if %IPSW%=="x" ( 175 | goto downloadme 176 | ) else if %IPSW%=="dl" ( 177 | goto downloadme 178 | ) 179 | 180 | goto checkloop 181 | 182 | :downloadme 183 | call :log Opening IPSW downloader... 184 | 185 | cls 186 | echo. 187 | echo Download an... 188 | echo. 189 | echo $$$$$$\ $$$$$$$\ $$$$$$\ $$\ $$\ 190 | echo \_$$ _^|$$ __$$\ $$ __$$\ $$ ^| $\ $$ ^| 191 | echo $$ ^| $$ ^| $$ ^|$$ / \__^|$$ ^|$$$\ $$ ^| 192 | echo $$ ^| $$$$$$$ ^|\$$$$$$\ $$ $$ $$\$$ ^| 193 | echo $$ ^| $$ ____/ \____$$\ $$$$ _$$$$ ^| 194 | echo $$ ^| $$ ^| $$\ $$ ^|$$$ / \$$$ ^| 195 | echo $$$$$$\ $$ ^| \$$$$$$ ^|$$ / \$$ ^| 196 | echo \______^|\__^| \______/ \__/ \__^| 197 | echo. 198 | echo -------------------------------------------------------------------------------- 199 | echo - You have chosen to download an IPSW file. 200 | echo - Which device are you downloading for? (e.g. iPhone3,1) 201 | set /P dldevice=- Device: %=% 202 | 203 | echo - Which firmware do you wish to download? (e.g. 5.0.1) 204 | set /P dlfw=- Firmware: %=% 205 | 206 | 207 | if exist %tempdir%\dlipsw rmdir %tempdir%\dlipsw >NUL 208 | if not exist %tempdir%\dlipsw mkdir %tempdir%\dlipsw >NUL 209 | 210 | cd %tempdir%\dlipsw 211 | 212 | if exist url.txt del url.txt /S /Q >NUL 213 | echo - Fetching Link... 214 | 215 | %tools%\curl -A "iKeyHelper - %uuid% - %version%" --silent http://api.ios.icj.me/v2/%dldevice%/%dlfw%/url -I>response.txt 216 | 217 | :: check for multiple buildids 218 | findstr "300 Multiple Choices" response.txt > nul 219 | 220 | if errorlevel 1 ( 221 | set downloadlink=http://api.ios.icj.me/v2/%dldevice%/%dlfw% 222 | goto downloadipsw 223 | ) 224 | 225 | choices.txt 227 | 228 | :: clean up the text file 229 | ssr 0 """ "" choices.txt 230 | ssr 0 "," "" choices.txt 231 | ssr 0 "{" "" choices.txt 232 | ssr 0 "}" "" choices.txt 233 | ssr 0 "[" "" choices.txt 234 | ssr 0 "]" "" choices.txt 235 | 236 | for %%a in ("choices.txt") do ( 237 | for /f "tokens=2 delims=:" %%B in ('find "buildid" ^< %%a') do ( 238 | call :addtovar %%B 239 | ) 240 | ) 241 | echo %buildids% 242 | 243 | set /P dlid=- Choose one BuildID: %=% 244 | 245 | 246 | set downloadlink=http://api.ios.icj.me/v2/%dldevice%/%dlid% 247 | goto downloadipsw 248 | 249 | :downloadipsw 250 | 251 | %tools%\curl -A "iKeyHelper - %uuid% - %version%" --silent %downloadlink%/url -I>response.txt 252 | 253 | findstr "200 OK" response.txt > nul 254 | 255 | if errorlevel 1 ( 256 | echo - Error: Link not found. 257 | echo - Press any key to return to the IPSW downloader. 258 | call :log error Unable to find IPSW link 259 | pause >NUL 260 | goto downloadme 261 | ) 262 | 263 | 264 | %tools%\curl -A "iKeyHelper - %uuid% - %version%" --silent %downloadlink%/filename>ipsw_name.txt 265 | %tools%\curl -A "iKeyHelper - %uuid% - %version%" --silent %downloadlink%/url>url.txt 266 | %tools%\curl -A "iKeyHelper - %uuid% - %version%" --silent %downloadlink%/filesize>filesize.txt 267 | 268 | set /p ipswName=NUL 286 | if not exist "G:\Apple Firmware\%dldevice%\Official" mkdir "G:\Apple Firmware\%dldevice%\Official" >NUL 287 | move /y "%ipswName%" "G:\Apple Firmware\%dldevice%\Official\%ipswName%" >> %logme% 288 | 289 | if not exist "G:\Apple Firmware\%dldevice%\Official\%ipswName%" ( 290 | call :log error IPSW move failed 291 | ) else ( 292 | call :log IPSW move succeeded 293 | ) 294 | 295 | set IPSW="G:\Apple Firmware\%dldevice%\Official\%ipswName%" 296 | cls 297 | echo - IPSW download finished^^! Saved to "G:\Apple Firmware\%dldevice%\Official\%ipswName%" 298 | 299 | ) else ( 300 | call :log moving %ipswName% to "%UserProfile%\Desktop\%ipswName%" 301 | move /y "%ipswName%" "%UserProfile%\Desktop\%ipswName%" >> %logme% 302 | 303 | if not exist "%UserProfile%\Desktop\%ipswName%" ( 304 | call :log error IPSW move failed 305 | ) else ( 306 | call :log IPSW move succeeded 307 | ) 308 | 309 | set IPSW="%UserProfile%\Desktop\%ipswName%" 310 | cls 311 | echo - IPSW download finished^^! Saved to "%UserProfile%\Desktop\%ipswName%" 312 | ) 313 | 314 | 315 | echo - Press any key to continue... 316 | pause >NUL 317 | 318 | :checkloop 319 | 320 | echo. 321 | echo -------------------------------------------------------------------------------- 322 | echo. 323 | cls 324 | echo [v=%version%] 325 | echo Running iKeyHelper 326 | echo ---------------------- 327 | echo. 328 | echo. 329 | 330 | call :log Detected input file as %IPSW% 331 | 332 | :: start the timer 333 | set starttime=%time% 334 | 335 | :: create userside directory 336 | if not exist "%bundledir%" ( 337 | mkdir "%bundledir%" >NUL 338 | call :log Making directory: %bundledir% 339 | ) 340 | 341 | :: check whether this is infact an IPSW... 342 | echo %IPSW% | findstr ".ipsw" >NUL 343 | 344 | if not "%ERRORLEVEL%"=="0" ( 345 | CALL :log error This isn't an IPSW. 346 | echo -^^!- Error^^! This is not an IPSW. Try again, but use some brain cells next time? 347 | echo -^^!- Press any key to go back to the menu... 348 | pause >NUL 349 | goto beginning 350 | ) 351 | 352 | :: get the short file name of the IPSW. 353 | call :sfn %IPSW% 354 | 355 | > %logme% 362 | 363 | echo Done^^! 364 | 365 | > %logme% 387 | if exist %tempdir%\sha1.txt del %tempdir%\sha1.txt /S /Q >> %logme% 388 | 389 | for %%a in (%IPSW%) do ( 390 | set /a sizeofipsw=%%~za / 1048576 391 | ) 392 | 393 | call :log %shortipsw% size: %sizeofipsw%MB 394 | 395 | set bdid=%ProductType:,=% 396 | call :tolowercase %bdid% 397 | 398 | call :log Getting Device Definitions... 399 | 400 | pushd %UserProfile%\iKeyHelper 401 | call %tools%\curl -LO --silent https://github.com/cj123/iKeyHelper/raw/master/resources/device_definitions.bat >> %logme% 402 | popd 403 | call %UserProfile%\iKeyHelper\device_definitions.bat %bdid% 404 | 405 | NUL 408 | 409 | call :log Device recognized as %deviceid% 410 | 411 | title iKeyHelper v%version% running %deviceid%, iOS %ProductVersion%%MarketingVersiontitle% (%BuildNumber%) - (c) 2012 cj 412 | 413 | :: ipsw name 414 | set ipswname=%shortipsw:_Restore.ipsw=% 415 | set ipswname=%ipswname: =% 416 | 417 | :: baseband version detection 418 | call :log Detecting Baseband version 419 | 420 | pushd %tempdir%\IPSW 421 | 422 | if exist baseband.txt del baseband.txt /S /Q >NUL 423 | 424 | if "%boardid%"=="n90" ( 425 | dir /B /OS *.Release.bbfw >>baseband.txt 426 | %tools%\ssr.exe 0 "ICE3_" "Baseband:" baseband.txt 427 | %tools%\ssr.exe 0 "_BOOT_" /SSR_NL/ baseband.txt 428 | :: yay a fun bit 429 | FOR /F "tokens=2 delims=:" %%a IN ('find "Baseband" ^>baseband.txt 432 | %tools%\ssr.exe 0 "ICE3_" "Baseband:" baseband.txt 433 | %tools%\ssr.exe 0 "_BOOT_" /SSR_NL/ baseband.txt 434 | :: yay a fun bit 435 | FOR /F "tokens=2 delims=:" %%a IN ('find "Baseband" ^>baseband.txt 438 | %tools%\ssr.exe 0 "Trek-" "Baseband:" baseband.txt 439 | %tools%\ssr.exe 0 ".Release.bbfw" /SSR_NL/ baseband.txt 440 | :: yay a fun bit 441 | FOR /F "tokens=2 delims=:" %%a IN ('find "Baseband" ^NUL 2>NUL 445 | dir /B /OS *.Release.bbfw >>baseband.txt 446 | %tools%\ssr.exe 0 "Phoenix-" "Baseband:" baseband.txt 447 | %tools%\ssr.exe 0 ".Release" /SSR_NL/ baseband.txt 448 | :: yay a fun bit 449 | FOR /F "tokens=2 delims=:" %%a IN ('find "Baseband" ^NUL 484 | 485 | if "%ERRORLEVEL%"=="1" ( 486 | echo Found device^^! 487 | call :log Device found in NORMAL mode. 488 | ) else ( 489 | ping localhost -n 6 >nul 490 | CALL :log error No NORMAL device found. Rechecking... 491 | goto devicecheck 492 | ) 493 | call :log if not "%detectedDevice%"=="%boardid%ap" 494 | call :log Device is %detectedDevice%. 495 | if /I not "%detectedDevice%"=="%boardid%ap" ( 496 | echo -^^!- Error: You have not plugged in a %deviceid%^^! This is an %detectedID%. 497 | echo - Press any key to return to main screen... 498 | pause >NUL 499 | goto beginning 500 | ) 501 | 502 | goto nodevicecheck 503 | 504 | :nodevicecheck 505 | 506 | :: get the file names from manifest 507 | for /f "tokens=*" %%a IN ('find "applelogo" ^<%tempdir%\IPSW\manifest') do set applelogo=%%a 508 | for /f "tokens=*" %%a IN ('find "batterylow0" ^<%tempdir%\IPSW\manifest') do set batterylow0=%%a 509 | for /f "tokens=*" %%a IN ('find "batterylow1" ^<%tempdir%\IPSW\manifest') do set batterylow1=%%a 510 | for /f "tokens=*" %%a IN ('find "glyphcharging" ^<%tempdir%\IPSW\manifest') do set glyphcharging=%%a 511 | for /f "tokens=*" %%a IN ('find "batterycharging0" ^<%tempdir%\IPSW\manifest') do set batterycharging0=%%a 512 | for /f "tokens=*" %%a IN ('find "batterycharging1" ^<%tempdir%\IPSW\manifest') do set batterycharging1=%%a 513 | for /f "tokens=*" %%a IN ('find "glyphplugin" ^<%tempdir%\IPSW\manifest') do set glyphplugin=%%a 514 | for /f "tokens=*" %%a IN ('find "batteryfull" ^<%tempdir%\IPSW\manifest') do set batteryfull=%%a 515 | for /f "tokens=*" %%a IN ('find "LLB" ^<%tempdir%\IPSW\manifest') do set LLB=%%a 516 | for /f "tokens=*" %%a IN ('find "iBoot" ^<%tempdir%\IPSW\manifest') do set iBoot=%%a 517 | for /f "tokens=*" %%a IN ('find "DeviceTree" ^<%tempdir%\IPSW\manifest') do set DeviceTree=%%a 518 | for /f "tokens=*" %%a IN ('find "recoverymode" ^<%tempdir%\IPSW\manifest') do set RecoveryMode=%%a 519 | set iBSS=iBSS.%boardid%ap.RELEASE.dfu 520 | set iBEC=iBEC.%boardid%ap.RELEASE.dfu 521 | set kernel=kernelcache.RELEASE.%boardid% 522 | 523 | cd IPSW 524 | 525 | > %logme% 528 | 529 | :: Ramdisk identification, Done properly :) 530 | 531 | :: edit out un-needed strings using hex. 532 | %tools%\binmay.exe -i %tempdir%\IPSW\Restore.plist -o %tempdir%\Restore.txt -s 0A 09 09 2>NUL 533 | %tools%\binmay.exe -i %tempdir%\Restore.txt -o %tempdir%\Restore1.txt -s 09 09 09 2>NUL 534 | 535 | :: then add a space before + after 536 | 537 | %tools%\ssr.exe 0 "" " " %tempdir%\Restore1.txt >NUL 538 | 539 | :: then add a space after Update 540 | 541 | %tools%\ssr.exe 0 "Update" "/SSR_NL/Update:" %tempdir%\Restore1.txt >NUL 542 | 543 | :: and after User 544 | 545 | %tools%\ssr.exe 0 "User" "/SSR_NL/User:" %tempdir%\Restore1.txt >NUL 546 | 547 | :: remove 3C 2F 73 74 72 69 6E 67 3E () -- yes, i know, couldve just Done this above, who cares --- it works 548 | 549 | %tools%\binmay.exe -i %tempdir%\Restore1.txt -o %tempdir%\Restore2.txt -s "3C 2F 73 74 72 69 6E 67 3E" 2>NUL 550 | 551 | :: replace User with restore, for easier identification 552 | 553 | %tools%\ssr.exe 1 "User" "Restore" %tempdir%\Restore2.txt 554 | %tools%\ssr.exe 1 "User" "NotherRD" %tempdir%\Restore2.txt 555 | %tools%\ssr.exe 1 "User" "RootFS" %tempdir%\Restore2.txt 556 | 557 | %tools%\binmay.exe -i %tempdir%\Restore2.txt -o %tempdir%\Restore4.txt -s 20 20 20 2>NUL 558 | 559 | %tools%\ssr.exe 0 ".dmg" ".dmg/SSR_NL/" %tempdir%\Restore4.txt >NUL 560 | 561 | :: set restore as the word after Restore: 562 | FOR /F "tokens=2 delims=:" %%a IN ('find "Restore" ^<%tempdir%\Restore4.txt') DO set restore=%%a 563 | FOR /F "tokens=2 delims=:" %%a IN ('find "NotherRD" ^<%tempdir%\Restore4.txt') DO set notherRD=%%a 564 | 565 | if "%notherRD%"=="%restore%" ( 566 | FOR /F "tokens=2 delims=:" %%a IN ('find "RootFS" ^<%tempdir%\Restore4.txt') DO set rootfilesystem=%%a 567 | ) else ( 568 | set rootfilesystem=%notherRD% 569 | ) 570 | 571 | :: same as above but for update 572 | FOR /F "tokens=2 delims=:" %%a IN ('find "Update" ^<%tempdir%\Restore4.txt') DO set update=%%a 573 | 574 | FOR /F "tokens=2 delims=:" %%a IN ('find "Update" ^<%tempdir%\Restore4.txt') DO set updateishere=yes 575 | 576 | if exist %tempdir%\Restore4.txt del %tempdir%\Restore4.txt /S /Q >NUL 577 | 578 | :: checking ramdisk numbers!!! 579 | set update=%update: =% 580 | set restore=%restore: =% 581 | set rootfilesystem=%rootfilesystem: =% 582 | 583 | if "%updateishere%"=="yes" ( 584 | echo %update%> dmgs.txt 585 | set updateishere=yes 586 | ) 587 | 588 | echo %restore%>> dmgs.txt 589 | echo %rootfilesystem%>> dmgs.txt 590 | 591 | ::%tools%\binmay.exe -i %tempdir%\IPSW\dmgs.txt -o %tempdir%\IPSW\dmgs-f.txt -s 20 20 20 2>NUL 592 | ::ping -n 3 localhost >NUL 593 | REM for /f "tokens=* delims= " %%a in (%tempdir%\IPSW\dmgs.txt) do ( 594 | REM set /a n+=1 595 | REM set ramdisk!n!=%%a 596 | REM ) 597 | 598 | REM if not "%updateishere%"=="yes" ( 599 | REM CALL :log error No Update Ramdisk. Continuing... 600 | REM set restore=%ramdisk1% 601 | REM set rootfilesystem=%ramdisk2% 602 | REM ) else ( 603 | REM :: assume all 3 ramdisks are there. 604 | REM set update=%ramdisk1% 605 | REM set restore=%ramdisk2% 606 | REM set rootfilesystem=%ramdisk3% 607 | REM ) 608 | echo Done^^! 609 | 610 | call :log Ramdisks-Update-%update%-Restore-%restore%-Rootfs-%rootfilesystem% 611 | 612 | %tools%\7za.exe e -o%tempdir%\IPSW -mmt %IPSW% %update% %restore% >> %logdir%\%timestamp% 613 | 614 | 615 | echo bgcolor 0 0 0 >>%tempdir%\kbags.txt 616 | 617 | echo go fbecho iKeyHelper v%version% by Callum Jones ^ >>%tempdir%\kbags.txt 618 | echo go fbecho ========================================>>%tempdir%\kbags.txt 619 | echo go fbecho - Loading iOS %ProductVersion%%MarketingVersiontitle% (%BuildNumber%) >>%tempdir%\kbags.txt 620 | echo go fbecho ^> for %ProductType% (%url_parsing_device%) >>%tempdir%\kbags.txt 621 | echo go fbecho ========================================>>%tempdir%\kbags.txt 622 | 623 | if exist *.txt del *.txt /S /Q >NUL 624 | if exist *asr del *asr /S /Q >NUL 625 | 626 | call :log Getting KBAGs... 627 | :: delete the files 628 | 629 | if exist %tempdir%\Restore.txt del %tempdir%\Restore.txt /S /Q >NUL 630 | if exist %tempdir%\Restore1.txt del %tempdir%\Restore1.txt /S /Q >NUL 631 | if exist %tempdir%\Restore2.txt del %tempdir%\Restore2.txt /S /Q >NUL 632 | 633 | :kbags 634 | 635 | >%tempdir%\kbags.txt 638 | call :grabkbag %iBoot% >>%tempdir%\kbags.txt 639 | call :grabkbag %devicetree% >>%tempdir%\kbags.txt 640 | call :grabkbag %applelogo% >>%tempdir%\kbags.txt 641 | call :grabkbag %recoverymode% >>%tempdir%\kbags.txt 642 | call :grabkbag %batterylow0% >>%tempdir%\kbags.txt 643 | call :grabkbag %batterylow1% >>%tempdir%\kbags.txt 644 | call :grabkbag %glyphcharging% >>%tempdir%\kbags.txt 645 | call :grabkbag %glyphplugin% >>%tempdir%\kbags.txt 646 | call :grabkbag %batterycharging0% >>%tempdir%\kbags.txt 647 | call :grabkbag %batterycharging1% >>%tempdir%\kbags.txt 648 | call :grabkbag %batteryfull% >>%tempdir%\kbags.txt 649 | call :grabkbag %ibss% >>%tempdir%\kbags.txt 650 | call :grabkbag %ibec% >>%tempdir%\kbags.txt 651 | call :grabkbag %kernel% >>%tempdir%\kbags.txt 652 | 653 | 654 | pushd %tempdir%\IPSW\ 655 | :: run this TWICE. 656 | if exist %tempdir%\IPSW\%restore% ( 657 | %tools%\xpwntool.exe %tempdir%\IPSW\%restore% %tempdir%\IPSW\%restore%.dec >NUL 2>NUL 658 | %tools%\hfsplus %tempdir%\IPSW\%restore%.dec extract /usr/sbin/asr %restore:~0,-4%_asr >NUL 2>NUL 659 | if not exist %restore:~0,-4%_asr ( 660 | ::echo doing RESTORE 661 | set restoreenc=y 662 | call :log Restore is encrypted 663 | call :grabkbag %restore% >>%tempdir%\kbags.txt 664 | ) else ( 665 | set restoreenc=n 666 | call :log Restore not encrypted 667 | echo go echo %restore% >>%tempdir%\kbags.txt 668 | echo go echo *Not_Encrypted >>%tempdir%\kbags.txt 669 | ) 670 | ) 671 | 672 | if "%updateishere%"=="yes" ( 673 | %tools%\xpwntool.exe %tempdir%\IPSW\%update% %tempdir%\IPSW\%update%.dec >NUL 2>NUL 674 | %tools%\hfsplus %tempdir%\IPSW\%update%.dec extract /usr/sbin/asr %update:~0,-4%_asr >NUL 2>NUL 675 | if not exist %update:~0,-4%_asr ( 676 | ::echo DOING UPDATE 677 | set updateenc=y 678 | call :log Update is encrypted 679 | call :grabkbag %update% >>%tempdir%\kbags.txt 680 | ) else ( 681 | set updateenc=n 682 | call :log Update is not encrypted 683 | echo go echo %update% >>%tempdir%\kbags.txt 684 | echo go echo *Not_Encrypted >>%tempdir%\kbags.txt 685 | ) 686 | ) 687 | 688 | :: remove files 689 | if exist %update:~0,-4%_asr del %update:~0,-4%_asr /S /Q >NUL 690 | if exist %restore:~0,-4%_asr del %restore:~0,-4%_asr /S /Q >NUL 691 | if exist %update%.dec del %update%.dec /S /Q >NUL 692 | if exist %restore%.dec del %restore%.dec /S /Q >NUL 693 | 694 | popd 695 | 696 | echo go fbecho ===================================>>%tempdir%\kbags.txt 697 | echo go fbecho - Done>>%tempdir%\kbags.txt 698 | echo go fbecho - Rebooting...>>%tempdir%\kbags.txt 699 | echo go fbecho ===================================>>%tempdir%\kbags.txt 700 | 701 | echo Done^^! 702 | echo /exit >>%tempdir%\kbags.txt 703 | 704 | :: close open iTunes windows (if they exist) 705 | tasklist /FI "IMAGENAME eq iTunes.exe" 2>NUL | find /I /N "iTunes.exe">NUL 706 | if "%ERRORLEVEL%"=="0" ( 707 | echo - Closing iTunes 708 | taskkill /F /IM "iTunes.exe" >nul 709 | ) 710 | :: close open iTunesHelper (if it is open) 711 | tasklist /FI "IMAGENAME eq iTunesHelper.exe" 2>NUL | find /I /N "iTunesHelper.exe">NUL 712 | if "%ERRORLEVEL%"=="0" ( 713 | echo - Closing iTunesHelper 714 | taskkill /F /IM "iTunesHelper.exe" >nul 715 | ) 716 | 717 | 718 | ::checking for dfu 719 | > %logme% 724 | 725 | if "%ERRORLEVEL%"=="0" ( 726 | echo Found device^^! 727 | call :log Device found in DFU mode. 728 | ) else ( 729 | ping localhost -n 6 >nul 730 | CALL :log error No DFU device found. Rechecking... 731 | goto dfucheck 732 | ) 733 | 734 | :found-recovery 735 | call %tools%\irecovery.exe -c "setenv boot-args 2" >> %logme% 736 | call %tools%\irecovery.exe -c "saveenv" >> %logme% 737 | 738 | call :log Extracting RootFS 739 | start /B "" %tools%\7za.exe e -o%tempdir%\IPSW -mmt %IPSW% %rootfilesystem% >NUL 740 | 741 | cd %tempdir% 742 | 743 | :: injectpois0n 744 | call :log Starting Injectpois0n. 745 | > %logdir%\%timestamp% 2>NUL 747 | call :log Injectpois0n finished. 748 | if exist %tempdir%\iBSS* del %tempdir%\iBSS* /S /Q >> %logme% 749 | echo Done^^! 750 | 751 | goto elsewhere 752 | 753 | :elsewhere 754 | 755 | :: run irecovery -s to get rid of unneeded junk :) 756 | 757 | start /B %tools%\irecovery -s >> %logme% 758 | ping localhost -n 5 >nul 759 | taskkill /F /IM "irecovery.exe" 2>NUL >nul 760 | cd %tempdir%\IPSW\ 761 | :: call %tools%\irecovery -c "bgcolor 0 100 100" >nul 762 | 763 | :: close open irecovery windows (if they exist) 764 | 765 | tasklist /FI "IMAGENAME eq irecovery.exe" 2>NUL | find /I /N "irecovery.exe">NUL 766 | if "%ERRORLEVEL%"=="0" ( 767 | echo - Closing any open iRecovery command windows 768 | taskkill /F /IM "irecovery.exe" >nul 769 | ) 770 | 771 | cd %tempdir% 772 | 773 | > %logme% 775 | 776 | cd %tempdir%\IPSW\ 777 | 778 | goto loop1 779 | 780 | :loop1 781 | tasklist /FI "IMAGENAME eq irecovery.exe" 2>NUL | find /I /N "irecovery.exe">NUL 782 | 783 | if "%ERRORLEVEL%"=="0" ( 784 | goto loop1 785 | ) 786 | 787 | :: reboot 788 | 789 | call :log Rebooting Device. 790 | > %logme% 792 | %tools%\irecovery -c "saveenv" >> %logme% 793 | %tools%\irecovery -c "reboot" >> %logme% 794 | 795 | 796 | echo Done^^! 797 | 798 | call :log formatting text file. 799 | pushd %tempdir% 800 | 801 | %tools%\binmay.exe -i gp-keys.txt -o keys.txt -s 00 2>NUL 802 | %tools%\ssr.exe 0 """ "'" keys.txt 803 | %tools%\ssr.exe 0 " " "" keys.txt 804 | %tools%\ssr.exe 0 "-iv" "* /SSR_QUOTE//SSR_QUOTE//SSR_QUOTE/IV/SSR_QUOTE//SSR_QUOTE//SSR_QUOTE/: " keys.txt 805 | %tools%\ssr.exe 0 "-k" "/SSR_NL/* /SSR_QUOTE//SSR_QUOTE//SSR_QUOTE/Key/SSR_QUOTE//SSR_QUOTE//SSR_QUOTE/: " keys.txt 806 | 807 | %tools%\ssr.exe 0 "Not_Encrypted" "Not Encrypted" keys.txt 808 | 809 | :: rootfs key grabbing 810 | 811 | :: parse all iv's to ivs.txt 812 | echo 1 >ivs.txt 813 | echo 2 >>ivs.txt 814 | for %%a in ("%tempdir%\keys.txt") do ( 815 | for /f "tokens=3" %%B in ('find "'''IV''': " ^< %%a') do ( 816 | echo %%B >>ivs.txt 817 | ) 818 | ) 819 | 820 | if exist temp.txt del temp.txt /S /Q >NUL 821 | move ivs.txt temp.txt >NUL 822 | %tools%\binmay.exe -i temp.txt -o ivs.txt -s 20 0D 0A 2>NUL 823 | if exist temp.txt del temp.txt /S /Q >NUL 824 | for /f "tokens=* delims= " %%a in (ivs.txt) do ( 825 | set /a ivz+=1 826 | set iv!ivz!=%%a 827 | ) 828 | 829 | :: parse all keys to key.txt 830 | echo 1 >key.txt 831 | echo 2 >>key.txt 832 | for %%a in ("%tempdir%\keys.txt") do ( 833 | for /f "tokens=3" %%B in ('find "'''Key''': " ^< %%a') do ( 834 | echo %%B >>key.txt 835 | ) 836 | ) 837 | 838 | if exist temp.txt del temp.txt /S /Q >NUL 839 | move key.txt temp.txt >NUL 840 | %tools%\binmay.exe -i temp.txt -o key.txt -s 20 0D 0A 2>NUL 841 | if exist temp.txt del temp.txt /S /Q >NUL 842 | for /f "tokens=* delims= " %%a in (key.txt) do ( 843 | set /a keyz+=1 844 | set key!keyz!=%%a 845 | ) 846 | 847 | goto back-to-me 848 | 849 | :back-to-me 850 | 851 | if %boardid%==n94 ( 852 | echo - Extracting RootFS... 853 | %tools%\7za.exe e -o%tempdir%\IPSW -mmt %IPSW% %rootfilesystem% >> %logme% 854 | ) 855 | 856 | if not exist %tempdir%\decrypted mkdir %tempdir%\decrypted\ >NUL 857 | 858 | cd %tempdir% 859 | 860 | if exist %tempdir%\decrypted\%update%.dec del %tempdir%\decrypted\%update%.dec /S /Q >NUL 861 | if exist %tempdir%\decrypted\%restore%.dec del %tempdir%\decrypted\%restore%.dec /S /Q >NUL 862 | 863 | call :log Update Ramdisk Shiz 864 | if not "%update%"=="" ( 865 | if not "%updateenc%"=="n" ( 866 | %tools%\xpwntool %tempdir%\IPSW\%update% %tempdir%\decrypted\%update%.dec -iv %iv19% -k %key19% >NUL 867 | ) else ( 868 | %tools%\xpwntool %tempdir%\IPSW\%update% %tempdir%\decrypted\%update%.dec >NUL 869 | ) 870 | ) 871 | call :log Restore Ramdisk Shiz 872 | if not "%restore%"=="" ( 873 | if not "%restoreenc%"=="n" ( 874 | %tools%\xpwntool %tempdir%\IPSW\%restore% %tempdir%\decrypted\%restore%.dec -iv %iv18% -k %key18% >NUL 875 | ) else ( 876 | %tools%\xpwntool %tempdir%\IPSW\%restore% %tempdir%\decrypted\%restore%.dec >NUL 877 | ) 878 | ) 879 | 880 | goto rootfs-check 881 | 882 | :rootfs-check 883 | 884 | if not exist %tempdir%\IPSW\%rootfilesystem% ( 885 | call :log error No RootFS extracted! 886 | goto rootfs-check 887 | ) else ( 888 | call :log Found extracted RootFS 889 | ) 890 | 891 | %tempdir%\IPSW\genpass.txt 2>NUL 894 | 895 | findstr /C:"vfdecrypt key" %tempdir%\IPSW\genpass.txt >NUL 896 | 897 | if not "%ERRORLEVEL%"=="0" ( 898 | CALL :log error RootFS key not found -trying update 899 | %tools%\genpass.exe -p %platform% -r decrypted/%update%.dec -f IPSW/%rootfilesystem% >%tempdir%\IPSW\genpass.txt 2>NUL 900 | ) 901 | 902 | call :log Decrypting RootFS TEST 903 | %tools%\dmg.exe extract %tempdir%\IPSW\%rootfilesystem% %tempdir%\decrypted\%rootfilesystem%.dec -k %rtkey% 2>decryptedcheck.txt 904 | 905 | findstr /C:"readUDIFResourceFile - signature incorrect" decryptedcheck.txt >NUL 906 | 907 | if "%errorlevel%"=="0" ( 908 | call :log error Genpass and vfdecrypt key failed-tryingupdate 909 | %tools%\genpass.exe -p %platform% -r decrypted/%update%.dec -f IPSW/%rootfilesystem% >%tempdir%\IPSW\genpass.txt 2>NUL 910 | ) 911 | 912 | findstr /C:"vfdecrypt key" %tempdir%\IPSW\genpass.txt >NUL 913 | if "%errorlevel%"=="0" ( 914 | for %%a in ("%tempdir%\IPSW\genpass.txt") do ( 915 | for /f "tokens=3" %%B in ('find "vfdecrypt key: " ^< %%a') do ( 916 | echo %%B >>pass.txt 917 | move pass.txt temp.txt >NUL 918 | %tools%\binmay.exe -i temp.txt -o pass.txt -s 20 0D 0A 2>NUL 919 | if exist temp.txt del temp.txt /S /Q >NUL 920 | ) 921 | ) 922 | for /f "tokens=* delims= " %%a in (pass.txt) do set rtkey=%%a 923 | echo Done^^! 924 | ) else ( 925 | call :log error Genpass and vfdecrypt key failed 926 | echo FAILED^^! 927 | ) 928 | 929 | 930 | 931 | if "%bdid%"=="ipad11" goto ipadbb 932 | if "%bdid%"=="iphone21" goto ipadbb 933 | goto noipadbb 934 | 935 | :ipadbb 936 | :: Get the baseband for iPad from ramdisk 937 | if exist %tempdir%\ipad-bb rmdir %tempdir%\ipad-bb /S /Q >NUL 938 | call :log Getting iPad/3G[S] Baseband 939 | if not exist %tempdir%\ipad-bb mkdir %tempdir%\ipad-bb 940 | 941 | pushd %tempdir%\ipad-bb 942 | :: hfsplus to the rescue! (lol) 943 | %tools%\hfsplus "%tempdir%\decrypted\%restore%.dec" extractall /usr/local/standalone/firmware/ >NUL 2>NUL 944 | :: check if its wrapped in a BBFW file 945 | if exist ICE2.Release.bbfw ( 946 | call :log BBFW EXISTS 947 | %tools%\7za x -y -mmt ICE2.Release.bbfw >NUL 948 | ) else ( 949 | call :log BBFW NO EXISTY 950 | ) 951 | 952 | dir /OS /B %tempdir%\ipad-bb\*.eep > %tempdir%\bb.txt 2>&1 953 | %tools%\ssr 0 "ICE2_" "" %tempdir%\bb.txt 954 | %tools%\ssr 0 ".eep" "" %tempdir%\bb.txt 955 | if "%bdid%"=="ipad11" ( 956 | set /p baseband=< %tempdir%\bb.txt 957 | ) 958 | if "%bdid%"=="iphone21" ( 959 | for /f "tokens=* delims= " %%a in (%tempdir%\bb.txt) do ( 960 | set /a v+=1 961 | if "!v!"=="2" ( 962 | set baseband=%%a 963 | ) 964 | ) 965 | ) 966 | call :log iPad/3G[S]Baseband: %baseband% 967 | popd 968 | 969 | goto noipadbb 970 | 971 | :noipadbb 972 | 973 | :: i'm sure there's a reason behind this but at the moment it looks absolutely stupid. 974 | echo . >NUL 975 | 976 | pushd %temp%\iKeyHelper 977 | 978 | :: get url for firmware 979 | %tools%\curl -A "iKeyHelper - %uuid% - %version%" --silent http://api.ios.icj.me/v2/%boardid%ap/%BuildNumber%/url >url.txt 980 | 981 | set /p downloadurl=iphonewikikeys.txt 986 | if "%username%"=="Callum" ( 987 | echo %ipswname% Keys and IV's Grabbed by cj ^ on %date%>>iphonewikikeys.txt 988 | ) else ( 989 | echo %ipswname% Keys and IV's Grabbed by %username% on %date%>>iphonewikikeys.txt 990 | ) 991 | 992 | echo.>>iphonewikikeys.txt 993 | echo ------------------------------------------- KEYS ------------------------------------------->>iphonewikikeys.txt 994 | echo.>>iphonewikikeys.txt 995 | 996 | echo {{keys>>iphonewikikeys.txt 997 | 998 | if not %MarketingVersion%==%ProductVersion% ( 999 | if not "%downloadurl%"=="" ( 1000 | echo ^| version = %ProductVersion% ^(%MarketingVersion%^)>>iphonewikikeys.txt 1001 | ) else ( 1002 | echo ^| version = %ProductVersion% ^(%MarketingVersion%^) b[number]>>iphonewikikeys.txt 1003 | ) 1004 | 1005 | ) else ( 1006 | if not "%downloadurl%"=="" ( 1007 | echo ^| version = %ProductVersion%>>iphonewikikeys.txt 1008 | ) else ( 1009 | echo ^| version = %ProductVersion%b[number]>>iphonewikikeys.txt 1010 | ) 1011 | ) 1012 | 1013 | echo ^| build = %BuildNumber%>>iphonewikikeys.txt 1014 | echo ^| device = %bdid%>>iphonewikikeys.txt 1015 | echo ^| codename = %BuildTrain%>>iphonewikikeys.txt 1016 | 1017 | if not "%baseband%"=="" ( 1018 | echo ^| baseband = %baseband%>>iphonewikikeys.txt 1019 | ) 1020 | 1021 | if not "%downloadurl%"=="" ( 1022 | echo ^| downloadurl = %downloadurl%>>iphonewikikeys.txt 1023 | ) 1024 | echo. >>iphonewikikeys.txt 1025 | echo ^| rootfsdmg = %rootfilesystem:~0,-4%>>iphonewikikeys.txt 1026 | echo ^| rootfskey = %rtkey%>>iphonewikikeys.txt 1027 | 1028 | if "%update%"=="" ( 1029 | echo. >>iphonewikikeys.txt 1030 | echo ^| noupdateramdisk = true>>iphonewikikeys.txt 1031 | ) 1032 | 1033 | if "%restoreenc%"=="n" ( 1034 | echo. >>iphonewikikeys.txt 1035 | echo ^| ramdisknotencrypted = true>>iphonewikikeys.txt 1036 | ) 1037 | 1038 | if not "%update%"=="" ( 1039 | echo. >>iphonewikikeys.txt 1040 | echo ^| updatedmg = %update:~0,-4%>>iphonewikikeys.txt 1041 | 1042 | if not "%updateenc%"=="n" ( 1043 | echo ^| updateiv = %iv19%>>iphonewikikeys.txt 1044 | echo ^| updatekey = %key19%>>iphonewikikeys.txt 1045 | ) 1046 | ) 1047 | echo. >>iphonewikikeys.txt 1048 | echo ^| restoredmg = %restore:~0,-4%>>iphonewikikeys.txt 1049 | 1050 | if not "%restoreenc%"=="n" ( 1051 | echo ^| restoreiv = %iv18%>>iphonewikikeys.txt 1052 | echo ^| restorekey = %key18%>>iphonewikikeys.txt 1053 | ) 1054 | echo. >>iphonewikikeys.txt 1055 | 1056 | echo ^| AppleLogoIV = %iv6%>>iphonewikikeys.txt 1057 | echo ^| AppleLogoKey = %key6%>>iphonewikikeys.txt 1058 | 1059 | echo. >>iphonewikikeys.txt 1060 | 1061 | echo ^| BatteryCharging0IV = %iv12%>>iphonewikikeys.txt 1062 | echo ^| BatteryCharging0Key = %key12%>>iphonewikikeys.txt 1063 | 1064 | echo. >>iphonewikikeys.txt 1065 | 1066 | echo ^| BatteryCharging1IV = %iv13%>>iphonewikikeys.txt 1067 | echo ^| BatteryCharging1Key = %key13%>>iphonewikikeys.txt 1068 | 1069 | echo. >>iphonewikikeys.txt 1070 | 1071 | echo ^| BatteryFullIV = %iv14%>>iphonewikikeys.txt 1072 | echo ^| BatteryFullKey = %key14%>>iphonewikikeys.txt 1073 | 1074 | echo. >>iphonewikikeys.txt 1075 | 1076 | echo ^| BatteryLow0IV = %iv8%>>iphonewikikeys.txt 1077 | echo ^| BatteryLow0Key = %key8%>>iphonewikikeys.txt 1078 | 1079 | echo. >>iphonewikikeys.txt 1080 | 1081 | echo ^| BatteryLow1IV = %iv9%>>iphonewikikeys.txt 1082 | echo ^| BatteryLow1Key = %key9%>>iphonewikikeys.txt 1083 | 1084 | echo. >>iphonewikikeys.txt 1085 | 1086 | echo ^| DeviceTreeIV = %iv5%>>iphonewikikeys.txt 1087 | echo ^| DeviceTreeKey = %key5%>>iphonewikikeys.txt 1088 | 1089 | echo. >>iphonewikikeys.txt 1090 | 1091 | echo ^| GlyphChargingIV = %iv10%>>iphonewikikeys.txt 1092 | echo ^| GlyphChargingKey = %key10%>>iphonewikikeys.txt 1093 | 1094 | echo. >>iphonewikikeys.txt 1095 | 1096 | echo ^| GlyphPluginIV = %iv11%>>iphonewikikeys.txt 1097 | echo ^| GlyphPluginKey = %key11%>>iphonewikikeys.txt 1098 | 1099 | echo. >>iphonewikikeys.txt 1100 | 1101 | echo ^| iBECIV = %iv16%>>iphonewikikeys.txt 1102 | echo ^| iBECKey = %key16%>>iphonewikikeys.txt 1103 | 1104 | echo. >>iphonewikikeys.txt 1105 | 1106 | echo ^| iBootIV = %iv4%>>iphonewikikeys.txt 1107 | echo ^| iBootKey = %key4%>>iphonewikikeys.txt 1108 | 1109 | echo. >>iphonewikikeys.txt 1110 | 1111 | echo ^| iBSSIV = %iv15%>>iphonewikikeys.txt 1112 | echo ^| iBSSKey = %key15%>>iphonewikikeys.txt 1113 | 1114 | echo. >>iphonewikikeys.txt 1115 | 1116 | echo ^| KernelcacheIV = %iv17%>>iphonewikikeys.txt 1117 | echo ^| KernelcacheKey = %key17%>>iphonewikikeys.txt 1118 | 1119 | echo. >>iphonewikikeys.txt 1120 | 1121 | echo ^| LLBIV = %iv3%>>iphonewikikeys.txt 1122 | echo ^| LLBKey = %key3%>>iphonewikikeys.txt 1123 | 1124 | echo. >>iphonewikikeys.txt 1125 | 1126 | echo ^| RecoveryModeIV = %iv7%>>iphonewikikeys.txt 1127 | echo ^| RecoveryModeKey = %key7%>>iphonewikikeys.txt 1128 | 1129 | echo }}>>iphonewikikeys.txt 1130 | 1131 | if not exist "%bundledir%\%url_parsing_device%" mkdir "%bundledir%\%url_parsing_device%" 1132 | 1133 | copy iphonewikikeys.txt "%bundledir%\%url_parsing_device%\%ipswname%.txt" >nul 1134 | 1135 | start "" notepad "%bundledir%\%url_parsing_device%\%ipswname%.txt" 1136 | 1137 | :: create a plist file for this. 1138 | 1139 | if not exist %MYFILES%\Template.plist.txt ( 1140 | call :log error No Template.plist.txt... skipping 1141 | goto urlopen 1142 | ) 1143 | 1144 | move /y %MYFILES%\Template.plist.txt %tempdir%\Template.plist.txt >nul 1145 | 1146 | %tools%\ssr.exe 0 "[BoardConfig]" "%boardid%ap" %tempdir%\Template.plist.txt 1147 | 1148 | %tools%\ssr.exe 0 "[iBSSName]" "%ibss%" %tempdir%\Template.plist.txt 1149 | %tools%\ssr.exe 0 "[iBSSIV]" "%iv15%" %tempdir%\Template.plist.txt 1150 | %tools%\ssr.exe 0 "[iBSSKey]" "%key15%" %tempdir%\Template.plist.txt 1151 | 1152 | %tools%\ssr.exe 0 "[RecoveryModeName]" "%recoverymode%" %tempdir%\Template.plist.txt 1153 | %tools%\ssr.exe 0 "[RecoveryModeIV]" "%iv7%" %tempdir%\Template.plist.txt 1154 | %tools%\ssr.exe 0 "[RecoveryModeKey]" "%key7%" %tempdir%\Template.plist.txt 1155 | 1156 | %tools%\ssr.exe 0 "[DeviceTreeName]" "%devicetree%" %tempdir%\Template.plist.txt 1157 | %tools%\ssr.exe 0 "[DeviceTreeIV]" "%iv5%" %tempdir%\Template.plist.txt 1158 | %tools%\ssr.exe 0 "[DeviceTreeKey]" "%key5%" %tempdir%\Template.plist.txt 1159 | 1160 | %tools%\ssr.exe 0 "[GlyphChargingName]" "%glyphcharging%" %tempdir%\Template.plist.txt 1161 | %tools%\ssr.exe 0 "[GlyphChargingIV]" "%iv10%" %tempdir%\Template.plist.txt 1162 | %tools%\ssr.exe 0 "[GlyphChargingKey]" "%key10%" %tempdir%\Template.plist.txt 1163 | 1164 | %tools%\ssr.exe 0 "[BatteryCharging1Name]" "%batterycharging1%" %tempdir%\Template.plist.txt 1165 | %tools%\ssr.exe 0 "[BatteryCharging1IV]" "%iv13%" %tempdir%\Template.plist.txt 1166 | %tools%\ssr.exe 0 "[BatteryCharging1Key]" "%key13%" %tempdir%\Template.plist.txt 1167 | 1168 | %tools%\ssr.exe 0 "[iBootName]" "%iboot%" %tempdir%\Template.plist.txt 1169 | %tools%\ssr.exe 0 "[iBootIV]" "%iv4%" %tempdir%\Template.plist.txt 1170 | %tools%\ssr.exe 0 "[iBootKey]" "%key4%" %tempdir%\Template.plist.txt 1171 | 1172 | %tools%\ssr.exe 0 "[BatteryCharging0Name]" "%batterycharging0%" %tempdir%\Template.plist.txt 1173 | %tools%\ssr.exe 0 "[BatteryCharging0IV]" "%iv12%" %tempdir%\Template.plist.txt 1174 | %tools%\ssr.exe 0 "[BatteryCharging0Key]" "%key12%" %tempdir%\Template.plist.txt 1175 | 1176 | %tools%\ssr.exe 0 "[BatteryLow0Name]" "%batterylow0%" %tempdir%\Template.plist.txt 1177 | %tools%\ssr.exe 0 "[BatteryLow0IV]" "%iv8%" %tempdir%\Template.plist.txt 1178 | %tools%\ssr.exe 0 "[BatteryLow0Key]" "%key8%" %tempdir%\Template.plist.txt 1179 | 1180 | %tools%\ssr.exe 0 "[LLBName]" "%llb%" %tempdir%\Template.plist.txt 1181 | %tools%\ssr.exe 0 "[LLBIV]" "%iv3%" %tempdir%\Template.plist.txt 1182 | %tools%\ssr.exe 0 "[LLBKey]" "%key3%" %tempdir%\Template.plist.txt 1183 | 1184 | %tools%\ssr.exe 0 "[iBECName]" "%ibec%" %tempdir%\Template.plist.txt 1185 | %tools%\ssr.exe 0 "[iBECIV]" "%iv16%" %tempdir%\Template.plist.txt 1186 | %tools%\ssr.exe 0 "[iBECKey]" "%key16%" %tempdir%\Template.plist.txt 1187 | 1188 | %tools%\ssr.exe 0 "[KernelCacheName]" "%kernel%" %tempdir%\Template.plist.txt 1189 | %tools%\ssr.exe 0 "[KernelCacheIV]" "%iv17%" %tempdir%\Template.plist.txt 1190 | %tools%\ssr.exe 0 "[KernelCacheKey]" "%key17%" %tempdir%\Template.plist.txt 1191 | 1192 | %tools%\ssr.exe 0 "[RootFileSystemDMG]" "%rootfilesystem%" %tempdir%\Template.plist.txt 1193 | %tools%\ssr.exe 0 "[RootFileSystemKey]" "%rtkey%" %tempdir%\Template.plist.txt 1194 | 1195 | %tools%\ssr.exe 0 "[AppleLogoName]" "%applelogo%" %tempdir%\Template.plist.txt 1196 | %tools%\ssr.exe 0 "[AppleLogoIV]" "%iv6%" %tempdir%\Template.plist.txt 1197 | %tools%\ssr.exe 0 "[AppleLogoKey]" "%key6%" %tempdir%\Template.plist.txt 1198 | 1199 | %tools%\ssr.exe 0 "[UpdateRamdiskDMG]" "%update%" %tempdir%\Template.plist.txt 1200 | %tools%\ssr.exe 0 "[UpdateRamdiskIV]" "%iv19%" %tempdir%\Template.plist.txt 1201 | %tools%\ssr.exe 0 "[UpdateRamdiskKey]" "%key19%" %tempdir%\Template.plist.txt 1202 | 1203 | %tools%\ssr.exe 0 "[RestoreRamdiskDMG]" "%restore%" %tempdir%\Template.plist.txt 1204 | %tools%\ssr.exe 0 "[RestoreRamdiskIV]" "%iv18%" %tempdir%\Template.plist.txt 1205 | %tools%\ssr.exe 0 "[RestoreRamdiskKey]" "%key18%" %tempdir%\Template.plist.txt 1206 | 1207 | %tools%\ssr.exe 0 "[GlyphPluginName]" "%glyphplugin%" %tempdir%\Template.plist.txt 1208 | %tools%\ssr.exe 0 "[GlyphPluginIV]" "%iv11%" %tempdir%\Template.plist.txt 1209 | %tools%\ssr.exe 0 "[GlyphPluginKey]" "%key11%" %tempdir%\Template.plist.txt 1210 | 1211 | %tools%\ssr.exe 0 "[BatteryLow1Name]" "%batterylow1%" %tempdir%\Template.plist.txt 1212 | %tools%\ssr.exe 0 "[BatteryLow1IV]" "%iv9%" %tempdir%\Template.plist.txt 1213 | %tools%\ssr.exe 0 "[BatteryLow1Key]" "%key9%" %tempdir%\Template.plist.txt 1214 | 1215 | %tools%\ssr.exe 0 "[FirmwareVersion]" "%ProductVersion%" %tempdir%\Template.plist.txt 1216 | %tools%\ssr.exe 0 "[FirmwareURL]" "%downloadurl%" %tempdir%\Template.plist.txt 1217 | %tools%\ssr.exe 0 "[BuildID]" "%BuildNumber%" %tempdir%\Template.plist.txt 1218 | %tools%\ssr.exe 0 "[BuildTrain]" "%BuildTrain%" %tempdir%\Template.plist.txt 1219 | 1220 | move /y "%tempdir%\Template.plist.txt" "%bundledir%\%url_parsing_device%\%ipswname%.plist" >nul 1221 | echo - Saved Keys and Plist files to "%bundledir%" 1222 | 1223 | :urlopen 1224 | echo - Opening theiphonewiki page for %BuildTrain% %BuildNumber% (%url_parsing_device%)... 1225 | call :log Opening theiphonewiki page for %BuildTrain%_%BuildNumber% ... 1226 | start http://theiphonewiki.com/wiki/index.php?title=%BuildTrain%_%BuildNumber%_(%deviceidw%)^&action=edit 1227 | 1228 | cd %tempdir% 1229 | 1230 | if not "%rtkey%"=="" ( 1231 | NUL 1233 | %tools%\dmg.exe extract %tempdir%\IPSW\%rootfilesystem% %tempdir%\decrypted\%rootfilesystem%.dec -k %rtkey% >NUL 1234 | echo Done^^! 1235 | ) else ( 1236 | call :log error Cannot decrypt RootFS 1237 | echo - Unable to decrypt Root Filesystem :( 1238 | ) 1239 | 1240 | pushd %tempdir%\decrypted 1241 | 1242 | > %logdir%\%timestamp% 1246 | 1247 | call :log Decrypting %LLB% 1248 | %tools%\xpwntool.exe %tempdir%\IPSW\%LLB% %LLB%.dec -iv %iv3% -k %key3% >> %logdir%\%timestamp% 1249 | 1250 | call :log Decrypting %iBoot% 1251 | %tools%\xpwntool.exe %tempdir%\IPSW\%iBoot% %iBoot%.dec -iv %iv4% -k %key4% >> %logdir%\%timestamp% 1252 | 1253 | call :log Decrypting %devicetree% 1254 | %tools%\xpwntool.exe %tempdir%\IPSW\%devicetree% %devicetree%.dec -iv %iv5% -k %key5% >> %logdir%\%timestamp% 1255 | 1256 | call :log Decrypting %recoverymode% 1257 | %tools%\xpwntool.exe %tempdir%\IPSW\%recoverymode% %recoverymode%.dec -iv %iv7% -k %key7% >> %logdir%\%timestamp% 1258 | 1259 | call :log Decrypting %batterylow0% 1260 | %tools%\xpwntool.exe %tempdir%\IPSW\%batterylow0% %batterylow0%.dec -iv %iv8% -k %key8% >> %logdir%\%timestamp% 1261 | 1262 | call :log Decrypting %batterylow1% 1263 | %tools%\xpwntool.exe %tempdir%\IPSW\%batterylow1% %batterylow1%.dec -iv %iv9% -k %key9% >> %logdir%\%timestamp% 1264 | 1265 | call :log Decrypting %glyphcharging% 1266 | %tools%\xpwntool.exe %tempdir%\IPSW\%glyphcharging% %glyphcharging%.dec -iv %iv10% -k %key10% >> %logdir%\%timestamp% 1267 | 1268 | call :log Decrypting %glyphplugin% 1269 | %tools%\xpwntool.exe %tempdir%\IPSW\%glyphplugin% %glyphplugin%.dec -iv %iv11% -k %key11% >> %logdir%\%timestamp% 1270 | 1271 | call :log Decrypting %batterycharging0% 1272 | %tools%\xpwntool.exe %tempdir%\IPSW\%batterycharging0% %batterycharging0%.dec -iv %iv12% -k %key12% >> %logdir%\%timestamp% 1273 | 1274 | call :log Decrypting %batterycharging1% 1275 | %tools%\xpwntool.exe %tempdir%\IPSW\%batterycharging1% %batterycharging1%.dec -iv %iv13% -k %key13% >> %logdir%\%timestamp% 1276 | 1277 | call :log NOT Decrypting %batteryfull% 1278 | 1279 | :: This doesn't work, and I don't care why. 1280 | :: %tools%\xpwntool.exe %tempdir%\IPSW\%batteryfull% %batteryfull%.dec -iv %iv14% -k %key14% >> %logdir%\%timestamp% 1281 | 1282 | call :log Decrypting %ibss% 1283 | %tools%\xpwntool.exe %tempdir%\IPSW\%ibss% %ibss%.dec -iv %iv15% -k %key15% >> %logdir%\%timestamp% 1284 | 1285 | call :log Decrypting %ibec% 1286 | %tools%\xpwntool.exe %tempdir%\IPSW\%ibec% %ibec%.dec -iv %iv16% -k %key16% >> %logdir%\%timestamp% 1287 | 1288 | call :log Decrypting %kernel% 1289 | %tools%\xpwntool.exe %tempdir%\IPSW\%kernel% %kernel%.dec -iv %iv17% -k %key17% >> %logdir%\%timestamp% 1290 | 1291 | echo Done^^! 1292 | 1293 | popd 1294 | 1295 | NUL 1299 | call :log - fstab 1300 | %tools%\hfsplus %tempdir%\decrypted\%rootfilesystem%.dec extract /System/Library/Lockdown/Services.plist %tempdir%\decrypted\Services.plist >NUL 1301 | call :log - Services.plist 1302 | %tools%\hfsplus %tempdir%\decrypted\%rootfilesystem%.dec extract /usr/libexec/lockdownd %tempdir%\decrypted\lockdownd 1303 | call :log - lockdownd 1304 | ) 1305 | %tools%\hfsplus %tempdir%\decrypted\%restore%.dec extract /usr/sbin/asr %tempdir%\decrypted\asr >NUL 1306 | call :log - asr 1307 | echo Done^^! 1308 | 1309 | 1310 | cd %tempdir% 1311 | if exist *.bundle rmdir *.bundle /S /Q >> %logme% 1312 | mkdir "%ipswname%.bundle" >NUL 1313 | mkdir "%ipswname%.bundle\to-patch" >NUL 1314 | if exist decrypted\Info.plist move /y decrypted\Info.plist "%ipswname%.bundle\Info.plist" >NUL 1315 | if exist decrypted\asr move /y decrypted\asr "%ipswname%.bundle\to-patch\asr" >NUL 1316 | if exist decrypted\Services.plist move /y decrypted\Services.plist "%ipswname%.bundle\to-patch\Services.plist" >NUL 1317 | if exist decrypted\fstab move /y decrypted\fstab "%ipswname%.bundle\to-patch\fstab" >NUL 1318 | if exist decrypted\%ibss%.dec move /y decrypted\%ibss%.dec "%ipswname%.bundle\to-patch\%ibss%.dec" >NUL 1319 | if exist decrypted\%kernel%.dec move /y decrypted\%kernel%.dec "%ipswname%.bundle\to-patch\%kernel%.dec" >NUL 1320 | if exist IPSW\%kernel% move /y IPSW\%kernel% "%ipswname%.bundle\to-patch\%kernel%.orig" >NUL 1321 | if exist IPSW\%ibss% move /y IPSW\iBSS.%boardid%ap.RELEASE.dfu "%ipswname%.bundle\to-patch\%ibss%.orig" >NUL 1322 | if exist decrypted\lockdownd move /y decrypted\lockdownd "%ipswname%.bundle\to-patch\lockdownd" >NUL 1323 | if exist "%bundledir%\%ipswname%.bundle" rmdir "%bundledir%\%ipswname%.bundle" /S /Q >NUL 1324 | move "%ipswname%.bundle" "%bundledir%\%url_parsing_device%\%ipswname%.bundle" >nul 1325 | 1326 | goto tehend 1327 | 1328 | :tehend 1329 | ::stop timer 1330 | set endtime=%time% 1331 | 1332 | set /a hrs=%endtime:~0,2% >NUL 2>NUL 1333 | set /a hrs=%hrs%-%starttime:~0,2% >NUL 2>NUL 1334 | 1335 | set /a mins=%endtime:~3,2% >NUL 2>NUL 1336 | set /a mins=%mins%-%starttime:~3,2% >NUL 2>NUL 1337 | 1338 | set /a secs=%endtime:~6,2% >NUL 2>NUL 1339 | set /a secs=%secs%-%starttime:~6,2% >NUL 2>NUL 1340 | 1341 | if %secs% lss 0 ( 1342 | set /a secs=!secs!+60 >NUL 2>NUL 1343 | set /a mins=!mins!-1 >NUL 2>NUL 1344 | ) 1345 | if %mins% lss 0 ( 1346 | set /a mins=!mins!+60 >NUL 2>NUL 1347 | set /a hrs=!hrs!-1 >NUL 2>NUL 1348 | ) 1349 | if %hrs% lss 0 ( 1350 | set /a hrs=!hrs!+24 >NUL 2>NUL 1351 | ) 1352 | set /a tot=%secs%+%mins%cmdln%60+%hrs%cmdln%3600 >NUL 2>NUL 1353 | 1354 | echo - Took %hrs% hours, %mins% mins and %secs% seconds to complete^^! 1355 | 1356 | call :log Finished. 1357 | call :log ---------------------------------------------------------------------------------------------- 1358 | 1359 | echo - Press any key to exit.. 1360 | echo ran > %tempdir%\finished.Done 1361 | pause >nul 1362 | goto end 1363 | 1364 | :clean 1365 | cls 1366 | echo - Deleting un-needed files 1367 | cd %tempdir% 1368 | rmdir IPSW /S /Q >nul 1369 | rmdir kbags /S /Q >nul 1370 | del tools\iBSS* /S /Q >nul 1371 | del %tempdir%\*.txt /S /Q 1372 | echo - Cleaned - press any key to return to menu 1373 | pause >nul 1374 | goto both 1375 | 1376 | :end 1377 | cls 1378 | cd %tempdir% 1379 | if exist IPSW\ rmdir IPSW /S /Q >nul 1380 | if exist rmdir kbags /S /Q >nul 1381 | del %tempdir%\*.txt /S /Q >NUL 1382 | 1383 | 1384 | exit 1385 | 1386 | ::--------------------------------------------------------------------------- 1387 | :: down here are the large spammy bits that aren't changed often but take up 1388 | :: lots of space. 1389 | ::--------------------------------------------------------------------------- 1390 | 1391 | 1392 | :grabkbag 1393 | 1394 | set filename=%~f1 1395 | 1396 | for /F "tokens=5 delims=: " %%z in ('%tools%\xpwntool.exe %filename% %temp%\iKeyHelper\#') do set kbag=%%z 2>NUL >NUL 1397 | 1398 | echo go fbecho - %~n1%~x1 1399 | echo go echo %~n1%~x1 1400 | echo go aes dec %kbag% 1401 | 1402 | if exist %temp%\iKeyHelper\# del %temp%\iKeyHelper\# /S /Q >NUL 1403 | 1404 | goto :EOF 1405 | 1406 | 1407 | :DeQuote 1408 | set _DeQuoteVar=%1 1409 | call set _DeQuoteString=%%!_DeQuoteVar!%% 1410 | if [!_DeQuoteString:~0^,1!]==[^"] ( 1411 | if [!_DeQuoteString:~-1!]==[^"] ( 1412 | set _DeQuoteString=!_DeQuoteString:~1,-1! 1413 | ) else (goto :eof) 1414 | ) else (goto :eof) 1415 | set !_DeQuoteVar!=!_DeQuoteString! 1416 | set _DeQuoteVar= 1417 | set _DeQuoteString= 1418 | goto :eof 1419 | 1420 | :sfn 1421 | set bundlename=%~n1.bundle 1422 | set shortipsw=%~n1.ipsw 1423 | goto :eof 1424 | 1425 | 1426 | :log 1427 | 1428 | :: log messages 1429 | 1430 | if not exist %logdir% mkdir %logdir% >NUL 1431 | set timestamp=iKeyHelper_%version%.log 1432 | set logme=%logdir%\%timestamp% 1433 | if not exist %logme% echo. >%logme% 1434 | if not "%1"=="" ( 1435 | if "%1"=="error" ( 1436 | echo [%time:~0,8%] [ERROR] %2 %3 %4 %5 %6 %7 %8 %9 >>%logme% 1437 | ) else ( 1438 | echo [%time:~0,8%] [INFO] %1 %2 %3 %4 %5 %6 %7 %8 %9 >>%logme% 1439 | ) 1440 | ) else ( 1441 | echo Usage: log ^[error^] 1442 | ) 1443 | 1444 | goto eof 1445 | 1446 | :: parse.bat - pretty epic really. 1447 | 1448 | :parse 1449 | if exist %temp%\plistparse\ rmdir %temp%\plistparse /S /Q 1450 | 1451 | 1452 | if %1.==. goto plistparseusage 1453 | if %2.==. goto plistparseusage 1454 | 1455 | set plist=%~f1 1456 | set string=%2 1457 | 1458 | ::echo You want me to parse "%string%" from "%plist%". 1459 | 1460 | :: delete temp files 1461 | 1462 | if exist %temp%\plistparse\ rmdir %temp%\plistparse /S /Q >NUL 1463 | if not exist %temp%\plistparse\ mkdir %temp%\plistparse >NUL 1464 | 1465 | %tools%\binmay.exe -i %plist% -o %temp%\plistparse\tmp1 -s 0A 09 09 2>NUL 1466 | %tools%\binmay.exe -i %temp%\plistparse\tmp1 -o %temp%\plistparse\tmp2 -s 09 09 09 2>NUL 1467 | 1468 | %tools%\ssr.exe 0 "" "/SSR_NL/ " %temp%\plistparse\tmp2 >NUL 1469 | 1470 | %tools%\ssr.exe 0 "%string%" "/SSR_NL/%string%:" %temp%\plistparse\tmp2 >NUL 1471 | 1472 | FOR /F "tokens=2 delims=:" %%a IN ('find "%string%" ^<%temp%\plistparse\tmp2') DO set data1=%%a 1473 | 1474 | echo %data1% >%temp%\plistparse\tmp3 1475 | 1476 | set thedata1= 1477 | set data= 1478 | 1479 | %tools%\binmay.exe -i %temp%\plistparse\tmp3 -o %temp%\plistparse\tmp4 -s 20 20 20 2>NUL 1480 | 1481 | set /p data=<%temp%\plistparse\tmp4 1482 | 1483 | 1484 | if "%data%"=="ECHOisoff." ( 1485 | set errorlevel=1 1486 | ) else ( 1487 | if "%3"=="echo" ( 1488 | echo %data% 1489 | ) 1490 | set %string%=%data% 1491 | ) 1492 | if exist %temp%\plistparse\ rmdir %temp%\plistparse /S /Q >> %logme% 1493 | 1494 | goto eof 1495 | 1496 | :plistparseusage 1497 | 1498 | echo usage: %0 ^ ^ 1499 | echo. 1500 | goto eof 1501 | 1502 | :tolowercase 1503 | 1504 | :: thanks to http://www.robvanderwoude.com/battech_convertcase.php 1505 | set %~1=!%1:A=a! 1506 | set %~1=!%1:B=b! 1507 | set %~1=!%1:C=c! 1508 | set %~1=!%1:D=d! 1509 | set %~1=!%1:E=e! 1510 | set %~1=!%1:F=f! 1511 | set %~1=!%1:G=g! 1512 | set %~1=!%1:H=h! 1513 | set %~1=!%1:I=i! 1514 | set %~1=!%1:J=j! 1515 | set %~1=!%1:K=k! 1516 | set %~1=!%1:L=l! 1517 | set %~1=!%1:M=m! 1518 | set %~1=!%1:N=n! 1519 | set %~1=!%1:O=o! 1520 | set %~1=!%1:P=p! 1521 | set %~1=!%1:Q=q! 1522 | set %~1=!%1:R=r! 1523 | set %~1=!%1:S=s! 1524 | set %~1=!%1:T=t! 1525 | set %~1=!%1:U=u! 1526 | set %~1=!%1:V=v! 1527 | set %~1=!%1:W=w! 1528 | set %~1=!%1:X=x! 1529 | set %~1=!%1:Y=y! 1530 | set %~1=!%1:Z=z! 1531 | 1532 | goto eof 1533 | 1534 | 1535 | :addtovar 1536 | if "%buildids%"=="" ( 1537 | set buildids=%1 1538 | ) else ( 1539 | set buildids=%buildids%, %1 1540 | ) 1541 | goto eof 1542 | 1543 | 1544 | 1545 | :toolcheck 1546 | 1547 | if not exist resources\tools\%1 ( 1548 | if not exist %tools%\%1 ( 1549 | call :log error tool: %1 not found 1550 | echo Error: %1 not found 1551 | pause 1552 | ) 1553 | ) else ( 1554 | call :log Found tool: %1 1555 | if not exist "%tools%\%1" ( 1556 | copy /y resources\tools\%1 %tools%\%1 >> %logme% 1557 | ) 1558 | ) 1559 | goto eof 1560 | 1561 | 1562 | :eof -------------------------------------------------------------------------------- /resources/Template.plist.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FirmwareKeys 6 | 7 | iBSS 8 | 9 | FileName 10 | Firmware/dfu/[iBSSName] 11 | IV 12 | [iBSSIV] 13 | Key 14 | [iBSSKey] 15 | 16 | RecoveryMode 17 | 18 | FileName 19 | Firmware/all_flash/all_flash.[BoardConfig].production/[RecoveryModeName] 20 | IV 21 | [RecoveryModeIV] 22 | Key 23 | [RecoveryModeKey] 24 | 25 | DeviceTree 26 | 27 | FileName 28 | Firmware/all_flash/all_flash.[BoardConfig].production/[DeviceTreeName] 29 | IV 30 | [DeviceTreeIV] 31 | Key 32 | [DeviceTreeKey] 33 | 34 | GlyphCharging 35 | 36 | FileName 37 | Firmware/all_flash/all_flash.[BoardConfig].production/[GlyphChargingName] 38 | IV 39 | [GlyphChargingIV] 40 | Key 41 | [GlyphChargingKey] 42 | 43 | BatteryCharging1 44 | 45 | FileName 46 | Firmware/all_flash/all_flash.[BoardConfig].production/[BatteryCharging1Name] 47 | IV 48 | [BatteryCharging1IV] 49 | Key 50 | [BatteryCharging1Key] 51 | 52 | iBoot 53 | 54 | FileName 55 | Firmware/all_flash/all_flash.[BoardConfig].production/[iBootName] 56 | IV 57 | [iBootIV] 58 | Key 59 | [iBootKey] 60 | 61 | BatteryCharging0 62 | 63 | FileName 64 | Firmware/all_flash/all_flash.[BoardConfig].production/[BatteryCharging0Name] 65 | IV 66 | [BatteryCharging0IV] 67 | Key 68 | [BatteryCharging0Key] 69 | 70 | BatteryLow0 71 | 72 | FileName 73 | Firmware/all_flash/all_flash.[BoardConfig].production/[BatteryLow0Name] 74 | IV 75 | [BatteryLow0IV] 76 | Key 77 | [BatteryLow0Key] 78 | 79 | LLB 80 | 81 | FileName 82 | Firmware/all_flash/all_flash.[BoardConfig].production/[LLBName] 83 | IV 84 | [LLBIV] 85 | Key 86 | [LLBKey] 87 | 88 | iBEC 89 | 90 | FileName 91 | Firmware/dfu/[iBECName] 92 | IV 93 | [iBECIV] 94 | Key 95 | [iBECKey] 96 | 97 | KernelCache 98 | 99 | FileName 100 | [KernelCacheName] 101 | IV 102 | [KernelCacheIV] 103 | Key 104 | [KernelCacheKey] 105 | 106 | FileSystem 107 | 108 | VFDecryptKey 109 | [RootFileSystemKey] 110 | FileName 111 | [RootFileSystemDMG] 112 | 113 | AppleLogo 114 | 115 | FileName 116 | Firmware/all_flash/all_flash.[BoardConfig].production/[AppleLogoName] 117 | IV 118 | [AppleLogoIV] 119 | Key 120 | [AppleLogoKey] 121 | 122 | UpdateRamdisk 123 | 124 | FileName 125 | [UpdateRamdiskDMG] 126 | IV 127 | [UpdateRamdiskIV] 128 | Key 129 | [UpdateRamdiskKey] 130 | 131 | RestoreRamdisk 132 | 133 | FileName 134 | [RestoreRamdiskDMG] 135 | IV 136 | [RestoreRamdiskIV] 137 | Key 138 | [RestoreRamdiskKey] 139 | 140 | GlyphPlugin 141 | 142 | FileName 143 | Firmware/all_flash/all_flash.[BoardConfig].production/[GlyphPluginName] 144 | IV 145 | [GlyphPluginIV] 146 | Key 147 | [GlyphPluginKey] 148 | 149 | BatteryLow1 150 | 151 | FileName 152 | Firmware/all_flash/all_flash.[BoardConfig].production/[BatteryLow1Name] 153 | IV 154 | [BatteryLow1IV] 155 | Key 156 | [BatteryLow1Key] 157 | 158 | 159 | FirmwareInfo 160 | 161 | Version 162 | [FirmwareVersion] 163 | BuildIdentifier 164 | [BuildID] 165 | BuildTrain 166 | [BuildTrain] 167 | URL 168 | [FirmwareURL] 169 | 170 | 171 | -------------------------------------------------------------------------------- /resources/boot-args.bat: -------------------------------------------------------------------------------- 1 | :: Set boot args in preparation for iKeyHelper 2 | :: (c) Callum Jones 3 | @ECHO OFF 4 | 5 | setlocal 6 | SETLOCAL EnableDelayedExpansion 7 | 8 | NUL 21 | 22 | if "%ERRORLEVEL%"=="0" ( 23 | echo Found device^^! 24 | goto setargs 25 | ) else ( 26 | ping localhost -n 6 >nul 27 | goto recoverycheck 28 | ) 29 | 30 | :setargs 31 | 32 | nul 34 | call %tools%\irecovery.exe -c "saveenv" >nul 35 | echo Done^^! 36 | 37 | goto EOF 38 | 39 | :EOF 40 | 41 | endlocal -------------------------------------------------------------------------------- /resources/device_definitions.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | :: iKeyHelper Device Definitions 3 | :: Copyright (C) 2012 Callum Jones 4 | :: See attached license 5 | 6 | set bdid=%1 7 | 8 | if "%bdid%"=="" ( 9 | 10 | echo No Boardid Supplied 11 | goto eof 12 | 13 | ) else if "%bdid%"=="iPod41" ( 14 | 15 | REM iPod Touch 4 16 | set bdid=ipod41 17 | set deviceid=iPod Touch 4 18 | set boardid=n81 19 | set deviceidw=iPod_touch_4G 20 | set url_parsing_device=iPod Touch 4 21 | set requiresdevice=no 22 | 23 | ) else if "%bdid%"=="iPhone31" ( 24 | 25 | REM iPhone 4 GSM 26 | set bdid=iphone31 27 | set deviceid=iPhone 4 28 | set boardid=n90 29 | set deviceidw=iPhone_4 30 | set url_parsing_device=iPhone 4 ^(GSM^) 31 | set requiresdevice=no 32 | 33 | ) else if "%bdid%"=="iPad11" ( 34 | 35 | REM iPad 1 36 | set bdid=ipad11 37 | set deviceid=iPad 38 | set boardid=k48 39 | set deviceidw=iPad 40 | set url_parsing_device=iPad 1 41 | set requiresdevice=no 42 | 43 | ) else if "%bdid%"=="AppleTV21" ( 44 | 45 | REM Apple TV 2G 46 | set bdid=appletv21 47 | set deviceid=Apple TV 2G 48 | set boardid=k66 49 | set deviceidw=Apple_TV_2G 50 | set url_parsing_device=Apple TV 2G 51 | set requiresdevice=no 52 | 53 | ) else if "%bdid%"=="iPhone33" ( 54 | 55 | REM iPhone 4 CDMA 56 | set bdid=iphone33 57 | set deviceid=iPhone 4 [CDMA] 58 | set boardid=n92 59 | set deviceidw=iPhone_4_CDMA 60 | set url_parsing_device=iPhone 4 ^(CDMA^) 61 | set requiresdevice=no 62 | 63 | ) else if "%bdid%"=="iPhone21" ( 64 | 65 | REM iPhone 3G[S] 66 | set bdid=iphone21 67 | set deviceid=iPhone 3G[S] 68 | set boardid=n88 69 | set deviceidw=iPhone_3GS 70 | set url_parsing_device=iPhone 3G[S] 71 | set requiresdevice=yes 72 | 73 | ) else if "%bdid%"=="iPod31" ( 74 | 75 | REM iPod Touch 3 76 | set bdid=ipod31 77 | set deviceid=iPod Touch 3 78 | set boardid=n18 79 | set deviceidw=iPod_Touch_3G 80 | set url_parsing_device=iPod Touch 3 81 | set requiresdevice=yes 82 | 83 | ) else if "%bdid%"=="iPhone32" ( 84 | 85 | REM iPhone 4 late 2012 86 | set bdid=iphone32 87 | set deviceid=iPhone 4 [Late 2012] 88 | set boardid=n90b 89 | set deviceidw=iPhone_4_Late_2012 90 | set url_parsing_device=iPhone 4 ^(Late 2012^) 91 | set requiresdevice=no 92 | 93 | ) else if "%bdid%"=="iPod21" ( 94 | 95 | REM iPod Touch 2 96 | set bdid=ipod21 97 | set deviceid=iPod Touch 2G 98 | set boardid=n72 99 | set deviceidw=iPod_Touch_2G 100 | set url_parsing_device=iPod Touch 2G 101 | set requiresdevice=yes 102 | 103 | ) else ( 104 | 105 | REM Unknown device 106 | echo - Unknown device detected! 107 | echo - Press any key to exit... 108 | pause >NUL 109 | exit 110 | 111 | ) 112 | 113 | :eof -------------------------------------------------------------------------------- /resources/iKeyHelper.settings.bat: -------------------------------------------------------------------------------- 1 | :: iKeyHelper Options 2 | :: Sample configuration 3 | :: ---------------------------- 4 | :: config check, dont edit this 5 | :: ---------------------------- 6 | @ECHO OFF 7 | 8 | if not "%1"=="this-is-meant-to-be-run" start "" notepad %0 9 | 10 | :: ! LEAVING THIS CONFIG BLANK WILL CAUSE iKEYHELPER TO USE STANDARD CONFIGURATION ! 11 | :: 12 | :: NOTE SOME STANDARD VARIABLES 13 | :: ---------------------------- 14 | :: 15 | :: %temp% is the default temporary folder 16 | :: %UserProfile% is your User directory (e.g. C:\Users\John) 17 | :: 18 | :: You can add paths to these variables, 19 | :: e.g. %UserProfile%\iKeyHelper-log-dir Would map to C:\Users\John\iKeyHelper-log-dir 20 | :: 21 | :: Avoid using spaces anywhere in this file. 22 | :: 23 | :: Edit below this line 24 | :: ----------------------------- 25 | 26 | :: path to save the bundles in (default = %UserProfile%\iKeyHelper\) 27 | set bundledir=%UserProfile%\iKeyHelper 28 | 29 | :: if you do not wish to check for updates, set this to "no" (without quotes), anything else will auto check for updates. 30 | set checkforupdates=yes 31 | 32 | :: set this to "yes" (without quotes) to auto enter recovery mode 33 | :: otherwise leave it empty or set it to "no" (without quotes) 34 | set autoenterrecovery=yes 35 | 36 | :: set this to "yes" (without quotes) to download unstable betas 37 | :: NOTE: NOT RECOMMENDED. 38 | :: otherwise set it to "no" (without quotes) 39 | set downloadbetas=no 40 | 41 | :: this will open baretail.exe with the log, so you can debug (requires baretail in the tools folder) 42 | set viewlog=no 43 | 44 | :: font colour 45 | :: ----------------------------------- 46 | :: 1 = Blue 9 = Light Blue 47 | :: 2 = Green A = Light Green 48 | :: 3 = Aqua B = Light Aqua 49 | :: 4 = Red C = Light Red 50 | :: 5 = Purple D = Light Purple 51 | :: 6 = Yellow E = Light Yellow 52 | :: 7 = White F = Bright White 53 | :: ----------------------------------- 54 | set fontcolour=D 55 | 56 | -------------------------------------------------------------------------------- /resources/tools.txt: -------------------------------------------------------------------------------- 1 | # Tools required for iKeyHelper to run. 2 | # You should find with a bit of googling. None of this is private software. 3 | 4 | 7za.exe 5 | baretail.exe # not necessary 6 | binmay.exe 7 | curl.exe 8 | dmg.exe 9 | genpass.exe 10 | hfsplus.exe 11 | iconv.dll 12 | ideviceinfo.exe 13 | injectpois0n.exe 14 | intl.dll 15 | irecovery.exe 16 | libcurl.dll 17 | libeay32.dll 18 | libglib-2.0-0.dll 19 | libpng12.dll 20 | libssl32.dll 21 | libxml2.dll 22 | readline5.dll 23 | ssr.exe 24 | xpwntool.exe 25 | zlib1.dll --------------------------------------------------------------------------------