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

mach-o/dyld_images.h not Found #19

Open
ccp10841054 opened this issue Oct 12, 2022 · 4 comments
Open

mach-o/dyld_images.h not Found #19

ccp10841054 opened this issue Oct 12, 2022 · 4 comments

Comments

@ccp10841054
Copy link

copy inject and payload file to my project use to inject
but mach-o/dyld_images.h not Found

can you help me?

@LIJI32
Copy link
Owner

LIJI32 commented Oct 15, 2022

Can you explain what you're trying to do? dyld_images.h is an SDK-provided header file, so something must be wrong with your compilation flags. Also, the payload file is not compiled as-is as a regular source file, make sure you read the relevant parts of the Makefile so you add it properly.

@ccp10841054
Copy link
Author

ccp10841054 commented Oct 17, 2022

Explain what i want to do
1、first I developer kernel extension we call "feng.kext" and dynamic library we call "hook.dylib"
2、second inject hook.dylib into an application(such as safari) when application open(feng.kext register event to listener application open)

about inject i want cop MIP to use,what should I do

"the payload file is not compiled as-is as a regular source file.""
i know,it is injected_xxx.c.dylib,but inject source file use it. i want to directly use it

@LIJI32
Copy link
Owner

LIJI32 commented Oct 22, 2022

Ah, I see. Can you show me the exact clang invocation you're using to compile the payload file?

@ccp10841054
Copy link
Author

Ah, I see. Can you show me the exact clang invocation you're using to compile the payload file?

I found reason

dyld_images.h in /usr/include/match-o;not in Kernel/match-o

because i use src in kext,so found match-o/dyld_images in Kernel not in /usr/include.so can't found it

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