https://github.com/thefox/macho
PHP script for modifying Mach-O executable i386 and x86_64 files.
https://github.com/thefox/macho
i386 macho mit-license php php-library php7 x86-64
Last synced: 5 months ago
JSON representation
PHP script for modifying Mach-O executable i386 and x86_64 files.
- Host: GitHub
- URL: https://github.com/thefox/macho
- Owner: TheFox
- License: mit
- Created: 2014-12-21T16:43:37.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-03-23T19:29:29.000Z (about 6 years ago)
- Last Synced: 2025-03-25T05:43:31.359Z (about 1 year ago)
- Topics: i386, macho, mit-license, php, php-library, php7, x86-64
- Language: PHP
- Homepage: https://blog.fox21.at/2015/02/14/mach-o.html
- Size: 108 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG-v0.md
- License: LICENSE
Awesome Lists containing this project
README
# MachO
PHP script for modifying [Mach-O](https://en.wikipedia.org/wiki/Mach-O) 64-bit executable x86_64 files using PHP.
## Project Outlines
The project outlines as described in my blog post about [Open Source Software Collaboration](https://blog.fox21.at/2019/02/21/open-source-software-collaboration.html).
- The main purpose of this software is to modify Mach-O 64-bit executable x86_64 files using PHP.
- This list is open. Feel free to request features.
## Installation
The preferred method of installation is via [Packagist](https://packagist.org/packages/thefox/macho) and [Composer](https://getcomposer.org/). Run the following command to install the package and add it as a requirement to composer.json:
```bash
composer require thefox/macho
```
## Usage
To print general informations about a binary executable you can type the following command into your shell:
```bash
./macho binary --all PATH
```
For example:
```bash
./macho binary --all
```
Another way to print general informations about a binary executable is to use `dbg.sh` script. This script uses default OS X tools like `nm` and `otool`.
## Links
- [Blog Post about Mach-O project](http://blog.fox21.at/2015/02/14/mach-o.html)
- [Packagist Package](https://packagist.org/packages/thefox/macho)
## Examples
Look into [examples](examples) directory to see code examples how to use this in your own project.