pwn20wndstuff/Undecimus

cynject not supported on iOS 12

Closed this issue ยท 14 comments

Hi there,

Just want to ask, will dumpdecrypted.dylib work on unc0ver (maybe not now, but is it possible in future)?

And, I'm also interested in why dumpdecrypted.dylib stopped working. Can someone explain what's the difference between old JB and the new one? Thanks in advance

Use bfdecrypt + substrate's cynject.

@Cryptiiiic can they work with 'load tweak' enabled mode? and, I don't find much useful info about cynject, would you please send a link or guide?

@liuxuan30 I haven't tried it yet but pwn told me to use it. You were able to use inject_criticald and inject_library with tweaks enabled and cynject is part of substrate(made by saurik) so wouldn't it be better to try it instead of asking.

@Cryptiiiic the truth is I don't know how to get started with unc0ver. though I know how to code, but I don't have the knowledge how to put what you said together :(
wanted to learn, but I couldn't find any doc or guide on this topic.
e.g. how it works, what's missing.

@liuxuan30
to get bfdecrypt:
iPhone:~ root# curl -s https://raw.githubusercontent.com/BishopFox/bfdecrypt/master/bfdecrypt.dylib -o bfdecrypt.dylib
iPhone:~ root# ldid -S bfdecrypt.dylib
iPhone:~ root# cp bfdecrypt.dylib /usr/lib/

to dump an app:
iPhone:~ root# ps aux | grep Discord
mobile 3942 90.0 4.7 1752832 95760 ?? Rs 7:23PM 0:00.67 /var/containers/Bundle/Application/E90BCC57-0758-4C9B-91B2-5C6BD7193711/Discord.app/Discord
root 3944 2.8 0.3 1586528 5424 s000 R+ 7:23PM 0:00.01 grep Discord
iPhone:~ root# cynject 3942 /usr/lib/bfdecrypt.dylib
iPhone:~ root# nc 10.0.0.16 31336 > /var/mobile/Documents/Discord.ipa

Here is an example.

Thanks! @Cryptiiiic but you have to disable load tweaks right? Do you know why?

I'm kind of want to write a daemon process to execute the shell cmds to dump the apps, but disabling tweaks would kill my daemon.

previously I can use dumpdecrypted.dylib and my daemon at the same time.

@liuxuan30 no you don't at all. Why would you have to disable them. Saurik makes his injector properly unlike coolstar and his inject_criticald.

wow that's fantastic. Thanks! closing.

I understand this is closed now however when trying to inject into an app the app crashes.

Tried to use cynject on iOS12 (with unc0ver). The app exits with an error:

cyinject 871 /usr/lib/bfdecrypt.dylib 

_krncall(mach_vm_read_overwrite) =10000003

Tried to use cynject on iOS12 (with unc0ver). The app exits with an error:

cyinject 871 /usr/lib/bfdecrypt.dylib 

_krncall(mach_vm_read_overwrite) =10000003

I get exactly the same thing.

reopen - @Cryptiiiic can you help?

Any updates? @pwn20wndstuff

Closing, use substitute-inject on substitute. Bingner updated cynject for substrate.