项目现在在github上,这是我issue
的链接我成功编译了整个事情并能够分别运行拒绝和拒绝。 但是,当向目标进程注入代码时,注入器将使注入器崩溃。
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的标准输出
injecting into pid 3680
injecting pid
mach_inject failing.. (os/kern) successful
mach inject done? 0
hi
从输出看来,注射器没有通知注射器,任何想法?感谢。
答案 0 :(得分:1)
This thread应该会帮助你,看起来simbl tree.中存在修补版本。需要注意的是,您只能注入类似位深度(32或64)的应用。
答案 1 :(得分:0)
我遇到了一些问题,使用“-arch i386”编译x86帮助了我,我无法使其适用于x86_64。
希望它有所帮助。