-
Notifications
You must be signed in to change notification settings - Fork 46
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
mach_inject_test failed on snow leopard #1
Comments
I have same question, who can help us ? |
On your executable run these commands: sudo chgrp procmod /path/to/executable This helps injection because on Intel you need elevated rights to inject on the mach level. |
I've also found the same issue both on Lion and Snow Leopard. I've applied the commands as alexzielenski told but didn't help. Any idea how to fix this? |
Hello there, I am facing the same problems as you were discussing. I tried using commands above but its not helping me. Can some one help here? Are there any special project settings required which has not been mentioned in the Git, so that it compiles and work properly. If I try to inject by just executing commands I get this error and Injector crash If I run injector as root user, injectee crashes. I just want if someone can help me with mach_inject_test. Then taking it's as reference I can work further. |
Hi rtibdewal, Actually i wanted to override some Finder functionality. I also could not get mach_inject_test fully functional. Later i tried DisposeWindow+Beep which is also injecting and overriding some functionality but injectee is Finder. |
You don't need to restart the injectee after injecting. Rtibdewal, could you post your code and describe your scenario in a bit more detail? Are you using an executable for injection or an app? etc. |
Try running your executable with sudo. Does this help? |
I downloaded code and tried to build mach_inject_test. If I run the Injector App without sudo I get this result injecting into pid 1386 If I run commands and then run executable with sudo then Injectee crashes.. Identifier: com.rentzsch.mach_inject_test_injectee_app I tried using executable and app both for injection. |
I tried with DisposeWindow+Beep too. myserver:MacOS test$ sudo dscl . -read /Groups/procmod GroupMembership If I run with sudo... without sudo... pid 165 As you can see user is in procmod and so the group is procmod but I still cannot inject in process. |
I successfully compiled the whole thing and able to run rejector and rejectee separately.
But the injector will crash the injectee when injecting code to the target process.
mach_inject_test_injectee.app 's standard output:
mach error on bundle load (os/kern) successful
mach error on bundle load (os/kern) successful
mach error on bundle load (os/kern) successful
mach error on bundle load (os/kern) successful
mach error on bundle load (os/kern) successful
FS rep /Users/Malic/Documents/Code/c/mach_star/mach_inject_test/build/Development/mach_inject_test_injector.app/Contents/Resources/mach_inject_test_injected.bundle/Contents/MacOS/mach_inject_test_injected
LOADDDDDDDDDD!
Assertion failed: (0), function +[injected_PrincipalClass load], file /Users/Malic/Documents/Code/c/mach_star/mach_inject_test/injected-PrincipalClass.m, line 25.
Abort trap
mach_inject_test_injector 's standard output
injecting into pid 3651
injecting pid
mach_inject failing.. (os/kern) successful
mach inject done? 0
hi
injecting into pid 3680
injecting pid
mach_inject failing.. (os/kern) successful
mach inject done? 0
hi
any idea? thanks
The text was updated successfully, but these errors were encountered: