mach_inject | interprocess code injection for Mac OS X | iOS library

 by   rentzsch C Version: Current License: No License

kandi X-RAY | mach_inject Summary

kandi X-RAY | mach_inject Summary

mach_inject is a C library typically used in Mobile, iOS applications. mach_inject has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

mach_inject enables you to "inject" code into an arbitrary process on Mac OS X. "Injection" means both 1) copying over the necessary code into the target's address space and 2) remotely creating a new thread to execute the code.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              mach_inject has a low active ecosystem.
              It has 719 star(s) with 151 fork(s). There are 49 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 15 open issues and 4 have been closed. On average issues are closed in 12 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of mach_inject is current.

            kandi-Quality Quality

              mach_inject has 0 bugs and 0 code smells.

            kandi-Security Security

              mach_inject has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              mach_inject code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              mach_inject does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              mach_inject releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mach_inject
            Get all kandi verified functions for this library.

            mach_inject Key Features

            No Key Features are available at this moment for mach_inject.

            mach_inject Examples and Code Snippets

            No Code Snippets are available at this moment for mach_inject.

            Community Discussions

            QUESTION

            Could macOS kexts inject code to specific processes (like mach_inject did)?
            Asked 2018-Dec-17 at 18:00

            While mach_inject was a handy (but risky) solution to inject some of your code to other Apps (mostly used to customize Finder), it doesn't work since 10.11. Is there a possibility to achieve the same functionality by using some sort of kext?

            The purpose of this is to add some visual effects on top of windows for specific apps. Maybe there is a simpler solution, like Accessibility API? Thanks!

            ...

            ANSWER

            Answered 2018-Dec-17 at 18:00

            Using a kext, you can certainly obtain the task handle to any process; this is the part that no longer works from user space since SIP. The task_t pointer in the kext can be converted to a special port using task_get_special_port(task, TASK_KERNEL_PORT, &task_port), which you can then send to a user space task using mach_msg_send_from_kernel(). Once you have the port in user space you can do the usual things such as allocating, reading & writing memory in the target task, etc. However, if the target task has very strict code signing flags set, any attempt to execute code in memory pages that aren't signed will fail by crashing the process. This means it won't work on most of Apple's own apps. Other methods than code injection may be easier and more secure, as you mentioned.

            Source https://stackoverflow.com/questions/53816479

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install mach_inject

            You can download it from GitHub.

            Support

            Please base your work off the unstable branch. Then submit your Pull Request.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/rentzsch/mach_inject.git

          • CLI

            gh repo clone rentzsch/mach_inject

          • sshUrl

            git@github.com:rentzsch/mach_inject.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular iOS Libraries

            swift

            by apple

            ionic-framework

            by ionic-team

            awesome-ios

            by vsouza

            fastlane

            by fastlane

            glide

            by bumptech

            Try Top Libraries by rentzsch

            markdownlive

            by rentzschC

            mach_override

            by rentzschC

            mach_star

            by rentzschC

            stressdrive

            by rentzschC

            MagicHat

            by rentzschC