New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread_create() returned 4, errno =2 #8

Closed
Smethan opened this Issue Jan 25, 2018 · 10 comments

Comments

Projects
None yet
5 participants
@Smethan

Smethan commented Jan 25, 2018

Error is in the title. It happens no matter what app I try it on and I’ve tried restarting, rejailbreaking, all that jazz, none of its helped. The command I’m running is “bash bfinject -P Reddit.app -L test”. Any idea as to what’s up?

@0xhaggis

This comment has been minimized.

Show comment
Hide comment
@0xhaggis

0xhaggis Jan 25, 2018

Member

Please paste the output and tell us which JB you're using on which version of iOS. Please also paste the output of 'ps axwww|grep Reddit'.

Edit: ain't gonna lie, it sounds like a jailbreak problem.

Member

0xhaggis commented Jan 25, 2018

Please paste the output and tell us which JB you're using on which version of iOS. Please also paste the output of 'ps axwww|grep Reddit'.

Edit: ain't gonna lie, it sounds like a jailbreak problem.

@Smethan

This comment has been minimized.

Show comment
Hide comment
@Smethan

Smethan Jan 25, 2018

Output of program: ] Attaching to PID 515[+] Electra detected.[+] Injecting into '/var/containers/Bundle/Application/582F507A-129F-4D2D-AA53-D�E3B2104FEEE/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.�..[bfinject] Getting tfp.[bfinject] Creating new remote thread[bfinject] Failed to create thread in remote process. Is it really an App Store �app?[bfinject] thread_create() returned 4[bfinject] errno = 2 = No such file or directory[+] So long and thanks for all the fish.
Ps axwww output: 515 ?? Ss 0:07.95 /var/containers/Bundle/Application/582F507A-129F-4D2D�-AA53-DE3B2104FEEE/Reddit.app/Reddit 626 s001 R+ 0:00.00 grep Reddit
And I’m using Electra iOS 11.1.2

Smethan commented Jan 25, 2018

Output of program: ] Attaching to PID 515[+] Electra detected.[+] Injecting into '/var/containers/Bundle/Application/582F507A-129F-4D2D-AA53-D�E3B2104FEEE/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.�..[bfinject] Getting tfp.[bfinject] Creating new remote thread[bfinject] Failed to create thread in remote process. Is it really an App Store �app?[bfinject] thread_create() returned 4[bfinject] errno = 2 = No such file or directory[+] So long and thanks for all the fish.
Ps axwww output: 515 ?? Ss 0:07.95 /var/containers/Bundle/Application/582F507A-129F-4D2D�-AA53-DE3B2104FEEE/Reddit.app/Reddit 626 s001 R+ 0:00.00 grep Reddit
And I’m using Electra iOS 11.1.2

@Sacmunraga

This comment has been minimized.

Show comment
Hide comment
@Sacmunraga

Sacmunraga Jan 25, 2018

Yep, same error.

bash bfinject -P BbStudent.app -L decrypt
[+] Attaching to PID 1098
[+] Electra detected.
[+] Injecting into '/var/containers/Bundle/Application/CF5CEB1D-3323-4C19-BC90-5FB4F9402CA3/BbStudent.app/BbStudent'
[+] Getting Team ID from target application...
[+] Thinning dylib into non-fat arm64 image
[+] Signing injectable .dylib with Team ID YGV5TPV7E2 and platform entitlements...
[bfinject] Getting tfp.
[bfinject] Creating new remote thread
[bfinject] Failed to create thread in remote process. Is it really an App Store app?
[bfinject] thread_create() returned 4
[bfinject] errno = 2 = No such file or directory
[+] So long and thanks for all the fish.

Sacmunraga commented Jan 25, 2018

Yep, same error.

bash bfinject -P BbStudent.app -L decrypt
[+] Attaching to PID 1098
[+] Electra detected.
[+] Injecting into '/var/containers/Bundle/Application/CF5CEB1D-3323-4C19-BC90-5FB4F9402CA3/BbStudent.app/BbStudent'
[+] Getting Team ID from target application...
[+] Thinning dylib into non-fat arm64 image
[+] Signing injectable .dylib with Team ID YGV5TPV7E2 and platform entitlements...
[bfinject] Getting tfp.
[bfinject] Creating new remote thread
[bfinject] Failed to create thread in remote process. Is it really an App Store app?
[bfinject] thread_create() returned 4
[bfinject] errno = 2 = No such file or directory
[+] So long and thanks for all the fish.

@0xhaggis

This comment has been minimized.

Show comment
Hide comment
@0xhaggis

0xhaggis Jan 25, 2018

Member

Sorry, this is a jailbreak issue. I don't have any control over thread_create().

Member

0xhaggis commented Jan 25, 2018

Sorry, this is a jailbreak issue. I don't have any control over thread_create().

@0xhaggis 0xhaggis closed this Jan 25, 2018

@Smethan

This comment has been minimized.

Show comment
Hide comment
@Smethan

Smethan Jan 25, 2018

Does that mean I would have to reinstall my jailbreak or wait for an update?

Smethan commented Jan 25, 2018

Does that mean I would have to reinstall my jailbreak or wait for an update?

@Sacmunraga

This comment has been minimized.

Show comment
Hide comment
@Sacmunraga

Sacmunraga Jan 26, 2018

@0xhaggis It works. I disabled the "tweaks" option in Electra and Bingo! Thanks.

Sacmunraga commented Jan 26, 2018

@0xhaggis It works. I disabled the "tweaks" option in Electra and Bingo! Thanks.

@MuchiMuchiPink

This comment has been minimized.

Show comment
Hide comment
@MuchiMuchiPink

MuchiMuchiPink Jan 26, 2018

this solves my problem as well. Thanks for finding this @Sacmunraga

MuchiMuchiPink commented Jan 26, 2018

this solves my problem as well. Thanks for finding this @Sacmunraga

@stek29

This comment has been minimized.

Show comment
Hide comment
@stek29

stek29 Jan 27, 2018

did it solve problem for injecting into apple's apps? :P

stek29 commented Jan 27, 2018

did it solve problem for injecting into apple's apps? :P

@Sacmunraga

This comment has been minimized.

Show comment
Hide comment
@Sacmunraga

Sacmunraga Jan 27, 2018

@stek29, aren’t Apples apps decrypted to start out with?

Sacmunraga commented Jan 27, 2018

@stek29, aren’t Apples apps decrypted to start out with?

@stek29

This comment has been minimized.

Show comment
Hide comment
@stek29

stek29 Jan 27, 2018

@Sacmunraga I'm just trying to say that the only reason it didn't work is because of TF_PLATFORM flag being set on apps you were trying to inject into. You should contact jailbreakd to let it set your TF_PLATFORM too.

stek29 commented Jan 27, 2018

@Sacmunraga I'm just trying to say that the only reason it didn't work is because of TF_PLATFORM flag being set on apps you were trying to inject into. You should contact jailbreakd to let it set your TF_PLATFORM too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment