Skip to content
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

Not able to Inject on Mac OS X 10.12.6 & Mac OS X 10.13 (17A291j) Beta release #21

Open
doshisahil opened this issue Aug 11, 2017 · 2 comments

Comments

@doshisahil
Copy link

When I inject into the process using mach_inject, that application crashes. I have observed this behaviour with one of my 10.12.6 machine(Not reproducible on all 10.12.6) and Mac OS X 10.13 (17A291j) Beta release of 10.13.

When the following code executes

// create thread and launch it
		err = thread_create_running( remoteTask, x86_THREAD_STATE64,
									 (thread_state_t) &remoteThreadState, x86_THREAD_STATE64_COUNT,
									 &remoteThread );

Application in which i am injecting get crashed.

On 10.12 when I disabled SIP, Issue vanished. and now not able to reproduce it even after re-enabling SIP.

@Noitidart
Copy link

Noitidart commented Aug 11, 2017

Were you able to inject on 10.11? I thought in 10.11 they started this non-inject system security thing, and to flip that switch you have to restart computer nad hit like F8 while computer is starting, some comlicated thing, "System Integrity" i think its called.

@doshisahil
Copy link
Author

@Noitidart , never had issue with 10.11. and even this issue is not with all machines. and yes it seems to get resolved by Disabling System Integrity Protection (SIP) once. Now if i reenable it, my injection works properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants