GithubHelp home page GithubHelp logo

tihmstar / iboot64patcher Goto Github PK

View Code? Open in Web Editor NEW
93.0 93.0 61.0 23 KB

A reboot of the popular iBoot32Patcher but with twice the amount of bits

C++ 69.88% Makefile 6.60% Shell 1.52% M4 22.00%

iboot64patcher's People

Contributors

tihmstar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iboot64patcher's Issues

main: Error doing patch_rsa_check()!

my ibss (coming from iBSS.n69.RELEASE.im4p, iOS 13.5, iPhone SE) is for sure decrypted (using img4):

daniel@Daniels-iMac:~/Documents/dualbootfun/working_dir/Firmware/dfu$ strings iBSS.dec
iBootStage1 for n69, Copyright 2007-2019, Apple Inc.
RELEASE
iBoot-5540.120.17
uuid

The error is this:

daniel@Daniels-iMac:~/Documents/dualbootfun/working_dir/Firmware/dfu$ iBoot64Patcher iBSS.dec iBSS.patched
main: Starting...
getting get_sigcheck_patch() patch
main: Error doing patch_rsa_check()!

I have traced it back to this line throwing an error: https://github.com/tihmstar/iBoot64Patcher/blob/master/iBoot64Patcher/main.cpp#L106
and apparently this is called first: https://github.com/tihmstar/liboffsetfinder64/blob/master/liboffsetfinder64/ibootpatchfinder64.cpp#L141
which then throws an error: reterror("not implemented by provider");

Please help, I just want to boot a fucking ramdisk so I can figure out if I can delete files through that to make an iPhone that's not booting due to No space left on device boot. Is 13.5 not supported by iBoot64Patcher? Is it confusing iBSS with iOS 14? I tried to revert both repos to Jun and Jan pre ios 14 commits but it didn't help.

Why is nothing implemented by provider? In this file the functions exist but they don't get called for some reason

How can I use it?

I've successfully decrypted and patched ibss\ibec and now I wanna to restore with it (just for testing purposes). Do I need to encrypt back patched binaries or something?

Compiling

Hey this may be a stupid question, but I've researched, tried, and tried again, but I still don't know how to compile or run this... I'm not new to computers, but definitely not a pro. Would anyone plese give me a tip on how to compile and run this?

Undefined symbol

While compiling on Xcode, it gives an error saying Undefined symbol: typeinfo for tihmstar::exception. The full error is Undefined symbols for architecture x86_64: "typeinfo for tihmstar::exception", referenced from: GCC_except_table0 in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Patches does not removes signatures checks

I've decrypted iBSS, then patched it with iBoot64Patcher and pack it back to img4.
Then I've uploaded it to device via:
irecovery -f ibss.patched.img4
So far so good, I can speak with iBSS, for example execute some commands like
irecovery -c 'bgcolor 100 100 250'
The problems begins when I'm uploading original apple bootlogo:
irecovery -f bootlogo.img4
irecovery -c setpicture
irecovery -c 'bgcolor 0 0 0'
Apple logo not appearing and I can make a conclusion that iBSS fails to validate logo signature.

Will not Compile or Function after the refactoring of liboffsetfinder64

dyld: Symbol not found: __ZTIN8tihmstar9exceptionE Referenced from: /Users/NAME-REMOVED/Desktop/iBoot64Patcher Expected in: /usr/local/lib/liboffsetfinder64.0.dylib in /Users/NAME-REMOVED/Desktop/iBoot64Patcher Abort trap: 6

is the error that results when running a pre-compiled version.

Screen Shot 2019-11-05 at 5 00 19 PM

is the error in Xcode when trying to compile iBoot64Patcher.

if I download the original tree from 'https://github.com/tihmstar/iBoot64Patcher/tree/ee8428fb9bfa6d63fbcd8d849cc1da04639c3724' it compiles just fine.

I have attempted to clean install all needed components but still end up with this error in Xcode as well as terminal.

please advise next steps.

Can't Patch IOS 17 IBEC

Version: 3a0f72d-42
main: Starting...
Unknown iOS versioned iBoot detected!
getting get_boot_arg_patch(rd=md0 debug=0x2014e wdt=-1 ) patch
main: Error doing patch_boot_args()!

anyone have build version support ios 17 ?

Error while pwning iBSS

When I try running ./iBoot64Patcher ibss.raw ibss.pwn, I get the following error:

libc++abi.dylib: terminating with uncaught exception of type tihmstar::OFexception: std::exception

I decrypted the iBSS with img4lib so the issue is not the same as #1.

dyld: lazy symbol binding failed: Symbol not found: __ZN8tihmstar9exceptionC2EiPKcS2_z

main: Starting...
getting get_debug_enabled_patch() patch
getting get_sigcheck_patch() patch
dyld: lazy symbol binding failed: Symbol not found: __ZN8tihmstar9exceptionC2EiPKcS2_z
Referenced from: /usr/local/lib/libinsn.0.dylib
Expected in: /usr/local/lib/libgeneral.0.dylib

dyld: Symbol not found: __ZN8tihmstar9exceptionC2EiPKcS2_z
Referenced from: /usr/local/lib/libinsn.0.dylib
Expected in: /usr/local/lib/libgeneral.0.dylib

[1] 30620 abort iBoot64Patcher iBoot.d22.RELEASE.bin tmp

What should I do for it?

Please remove this issues!!

When I Execute ./iBoot64Patcher ibec.raw ibec.pwn -b -v, iBootpatcher says main: Error doing patch_boot_args() ....
Other device's ibec Doesn't have it error.
Of course I decrypt ibec. And no option can patch.

Segmentation fault (core dumped) while patching ibss

I get Segmentation fault (core dumped) while trying to patch ibss on Ubuntu 18.04.
here is the gdb output:

$ iBoot64Patcher ibss.raw ibss.pwn -n
main: Starting...
Segmentation fault (core dumped)
$ gdb iBoot64Patcher 
GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git
Reading symbols from iBoot64Patcher...done.
(gdb) run ibss.raw ibss.pwn
Starting program: /usr/local/bin/iBoot64Patcher ibss.raw ibss.pwn
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
main: Starting...

Program received signal SIGSEGV, Segmentation fault.
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62
62	../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
(gdb) bt
#0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62
#1  0x00007ffff707f4d3 in _IO_vfprintf_internal (s=s@entry=0x7fffffffda50, format=format@entry=0x7ffff7bceac4 "memstr failed to find \"%s\"", ap=ap@entry=0x7fffffffdba0) at vfprintf.c:1643
#2  0x00007ffff7156411 in __GI___vasprintf_chk (result_ptr=result_ptr@entry=0x55555576a440, flags=flags@entry=1, format=format@entry=0x7ffff7bceac4 "memstr failed to find \"%s\"", 
    args=args@entry=0x7fffffffdba0) at vasprintf_chk.c:66
#3  0x00007ffff79b5251 in vasprintf (__ap=0x7fffffffdba0, __fmt=0x7ffff7bceac4 "memstr failed to find \"%s\"", __ptr=0x55555576a440) at /usr/include/x86_64-linux-gnu/bits/stdio2.h:210
#4  tihmstar::exception::exception (this=0x55555576a410, code=<optimized out>, filename=0x7ffff7bcea8a "vmem.cpp", err=0x7ffff7bceac4 "memstr failed to find \"%s\"") at exception.cpp:23
#5  0x00007ffff7bc3155 in tihmstar::OFexception::OFexception (err=0x7ffff7bceac4 "memstr failed to find \"%s\"", filename=0x7ffff7bcea8a "vmem.cpp", code=85, this=0x55555576a410)
    at ../include/liboffsetfinder64/OFexception.hpp:18
#6  tihmstar::not_found::not_found (error=0x7ffff7bceac4 "memstr failed to find \"%s\"", filename=0x7ffff7bcea8a "vmem.cpp", code=85, this=0x55555576a410)
    at ../include/liboffsetfinder64/OFexception.hpp:39
#7  tihmstar::offsetfinder64::vmem::memstr (this=<optimized out>, little=little@entry=0x7ffff7bcf1a0 "__PAGEZERO") at vmem.cpp:85
#8  0x00007ffff7bcb4b4 in tihmstar::offsetfinder64::ibootpatchfinder64::has_kernel_load (this=<optimized out>) at ibootpatchfinder64.cpp:84
#9  0x00005555555554b4 in main (argc=<optimized out>, argv=0x7fffffffdec8) at main.cpp:54

I built the latest commit (49b4c45) from source.

NVRAM Patch issues on iPhone 8 iOS 13.0

When attempting to patch my iBSS and iBEC from a iPhone_4.7_P3_13.0_17A5492t_Restore.ipsw (iphone10,4 / iPhone 8 GSM), I'm still unable to modify vars like I expected.

Using iPhone_4.7_P3_12.4.1_16G102_Restore.ipsw works though, haven't looked into what the difference is. Just thought I should document it here in case anyone else is having the same issue!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.