BishopFox / bfinject

Dylib injection for iOS 11.0 - 11.1.2 with LiberiOS and Electra jailbreaks
Apache License 2.0
619 stars 151 forks source link

MD5 command not found #15

Open colealanroberts-zz opened 6 years ago

colealanroberts-zz commented 6 years ago

I'm running Electra 11-3 on an iPhone 5S with iOS 11.0.3.

I did a fresh Electra install with No Tweaks and followed the Electra instructions with the most recent version of bfinject. I'm seeing these errors when running:

bash bfinject -P Reddit -L test

[+] Electra detected.
bfinject: line 163: md5: command not found
bfinject: line 164: md5: command not found
cp: '/bootstrap/usr/local/bin/bfinject4realz' and '/bootstrap/usr/local/bin/bfinject4realz' are the same file
[+] Injecting into '/var/containers/Bundle/Application/F0ABA1CC-E72A-4D88-AF1C-95D855B3BA83/Reddit.app/Reddit'
[+] Getting Team ID from target application...
[+] Thinning dylib into non-fat arm64 image
[+] Signing injectable .dylib with Team ID 2TDUX39LX8 and platform entitlements...
jtool /bootstrap/usr/local/bin/ signing error. barfing.
Coles-iPhone:~/bfinject root# 

Any ideas? Thanks!

riley-williams commented 6 years ago

Change the md5 at the ends of both of those lines to md5sum, which is included in the Core Utilities package.

colealanroberts-zz commented 6 years ago

@riley-williams Okay, I'll try that, I appreciate your help.

zachary83 commented 6 years ago

i got error Bfinject line 43: command not found Electra 1.0.4

EthanArbuckle commented 6 years ago

The Electra jailbreak has changed since the BishopFox instructions were created. The files it looks for the existence of in /bootstrap never exist, and packages it depends on are not around (plain md5). If you know what you're doing it still easy to get running.

The LiberiOS jailbreak has not been modified, and the BFInject instructions for it are still current.

klmitchell2 commented 6 years ago

I replaced the contents of bfinject with updated paths to detect electra 1.0.4: https://gist.github.com/klmitchell2/536bce0cec94d24a5799ba3b17499b54

EthanArbuckle commented 6 years ago

It would make more sense to create a PR rather than a gist. On Mon, Mar 26, 2018 at 7:36 AM klmitchell2 notifications@github.com wrote:

I replaced the contents of bfinject with updated paths to detect electra 1.0.4: https://gist.github.com/klmitchell2/536bce0cec94d24a5799ba3b17499b54

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BishopFox/bfinject/issues/15#issuecomment-376188245, or mute the thread https://github.com/notifications/unsubscribe-auth/AEDcXkDzczO13ZAPax1VEsicsRaInOuJks5tiPzygaJpZM4SEuhD .

wang13972366242 commented 5 years ago

[+] Electra detected. bfinject: line 163: md5: command not found bfinject: line 164: md5: command not found cp: '/bootstrap/usr/local/bin/bfinject4realz' and '/bootstrap/usr/local/bin/bfinject4realz' are the same file [+] Injecting into '/var/containers/Bundle/Application/EE028851-5CC0-4CEB-86E8-098A0A7803A0/--.app/--' [+] Getting Team ID from target application... [+] Thinning dylib into non-fat arm64 image [+] Signing injectable .dylib with Team ID 88L2Q4487U and platform entitlements... jtool /bootstrap/usr/local/bin/ signing error. barfing.

Did you already solve? can you tell any idea

klmitchell2 commented 5 years ago

bfinject: line 163: md5: command not found bfinject: line 164: md5: command not found

This would be your problem. Make your have you have md5 binary.

wang13972366242 commented 5 years ago

bfinject: line 163: md5: command not found bfinject: line 164: md5: command not found

This would be your problem. Make your have you have md5 binary.

I donot know.The version is 11.4. High mobile version are not compatible?