Command Line Tool for interacting with MachO binaries on OSX/iOS

Related tags

Command Line inject
Overview

inject

inject is a tool which interfaces with MachO binaries in order to insert load commands. Below is its help.

➜ ./inject -h
OVERVIEW: inject v1.0.0

inject is a tool which interfaces with MachO binaries in order to insert load commands.

USAGE: inject <macho-path> <dylib-path> [--cmd <cmd>]

ARGUMENTS:
  <macho-path>            The machO to inject.
  <dylib-path>            The dylib to inject.

OPTIONS:
  --cmd <cmd>             Specify which type of load command to use in INSTALL. Can be reexport for LC_REEXPORT_DYLIB,
                          weak for LC_LOAD_WEAK_DYLIB, upward for LC_LOAD_UPWARD_DYLIB, or load for LC_LOAD_DYLIB
                          (default: LC_LOAD_DYLIB)
  --version               Show the version.
  -h, --help              Show help information.

Build

build with xcode

open Package.swift
command + B

build with bash

chmod +x build-macOS_x86.sh
./build-macOS_x86.sh

Test

chmod +x test-inject.sh
./test-inject.sh
You might also like...
A command-line tool to sort Xcode's `.xcodeproj` file.

XcodeProjSorter A command-line tool to sort Xcode's .xcodeproj file. It sorts following sessions: PBXGroup PBXResourcesBuildPhase PBXSourcesBuildPhase

A command line tool to easily install and browse Xcode templates

🥾 XTrail A command line tool to easily install and browse Xcode templates. Usage The general invocation syntax for xtrail is as follows: xtrail subc

Josephus - A command line tool to solve Josephus problem in Swift
Josephus - A command line tool to solve Josephus problem in Swift

josephus A command line tool to solve Josephus problem in Swift

A command line tool to parse pricing from a pdf and generate an updated csv file for House Call Pro

A command line tool to parse pricing from a pdf and generate an updated csv file for House Call Pro

A command line profiling tool with stopwatch, cpu and memory usage
A command line profiling tool with stopwatch, cpu and memory usage

timeui A command line profiling tool with stopwatch, cpu and memory usage. Usage ./timeui path/to/app-to-profile runs the stopwatch and signpost regio

Mac App Store: Embedding a Command Line tool using paths as arguments

Mac App Store: Embedding a Command Line tool using paths as arguments Code snippets to embed a Command Line tool using paths as arguments on the Mac A

RsyncOSX and RsyncUI are GUI´s on the Apple macOS plattform for the command line tool rsync
RsyncOSX and RsyncUI are GUI´s on the Apple macOS plattform for the command line tool rsync

Hi there 👋 RsyncOSX and RsyncUI are GUI´s on the Apple macOS plattform for the command line tool rsync. It is rsync which executes the synchronize ta

A command line tool that calls your Xcode Test Plan and creates screenshots of your app automatically.

ShotPlan (WIP) A command line tool that calls your Xcode Test Plan and creates screenshots of your app automatically. ShotPlan will also take care of

Command-line utility that checks comments for localizations in iOS interface files (.xib, .storyboard)

Localizations Comments Checker It's really easy to overlook and don't add comment for localization in interface file (.storyboard or .xib). This comma

Comments
  • Interested in using this package in PlayCover

    Interested in using this package in PlayCover

    Howdy!

    We at PlayCover are interested in using this package but we need to have a discussion about it. Please contact us in PlayCover Discord Server to talk about it.

    Regards,

    opened by amirsaam 13
  • Inject cannot handle FAT Binaries

    Inject cannot handle FAT Binaries

    Inject cannot handle FAT/multi-architecture binaries. ~~This functionality is currently required for PlayCover~~ and would be nice to have instead of needing to lean on Xcode CLI to resolve the issue.

    EDIT: We have a fix coming for PlayCover, but this would still be nice functionality to have

    opened by IsaacMarovitz 0
  • Homebrew formula

    Homebrew formula

    I have made a Homebrew formula for this tool, but it can't be hosted on homebrew-core yet since it is deemed as "not notable enough (under 30 forks, 30 watchers, 75 stars)".

    Therefore, the formula is hosted on PlayCover's tap in the meantime since we have a compelling use case for it.

    brew tap playcover/playcover
    brew install inject
    
    opened by Depal1 0
Owner
Alibaba Summary: Learn these development knowledge and beat the interviewer in minutes.
<script>alert('1')</script>
ipatool is a command line tool that allows you to search for iOS apps on the App Store and download a copy of the app package, known as an ipa file.

ipatool is a command line tool that allows you to search for iOS apps on the App Store and download a copy of the app package, known as an ipa file.

Majd Alfhaily 3k Dec 30, 2022
A Mac command-line tool that generates kick-ass Jamf Pro reports.

KMART - Kick-Ass Mac Admin Reporting Tool A command-line utility generating kick-ass Jamf Pro reports: Features Reporting on the following Jamf Pro ob

Nindi Gill 86 Dec 15, 2022
A nifty command-line tool to customize macOS icons

iconset A nifty command line tool to manage macOS icons iconset is a new command line tool for macOS that allows you to change icons for macOS apps (e

aarnav tale 32 Nov 17, 2022
🕳 A simple command line tool to punch hole to reduce disk usage on APFS volume for such as a raw disk image.

HolePunch NAME holepunch -- A simple command line tool to punch hole to reduce disk usage on APFS volume for such as a raw disk image. SYNOPSIS holepu

Yoshimasa Niwa 15 Nov 24, 2022
The best command-line tool to install and switch between multiple versions of Xcode.

The best command-line tool to install and switch between multiple versions of Xcode.

Robots and Pencils 2.3k Jan 9, 2023
CookCLI is provided as a command-line tool to make Cook recipe management easier

CookCLI is provided as a command-line tool to make Cook recipe management easier, and enable automation and scripting workflows for the CookLa

null 523 Dec 29, 2022
A Mac command-line tool that automatically downloads macOS Installers / Firmwares.

MIST - macOS Installer Super Tool A Mac command-line tool that automatically downloads macOS Installers / Firmwares: Features List all available macOS

Nindi Gill 483 Jan 8, 2023
macOS command line tool to return the available disk space on APFS volumes

diskspace Returns available disk space With the various APFS features the value for free disk space returned from tools such as du or df will not be a

Armin Briegel 131 Nov 14, 2022
A command-line tool to generate a JSON-list of all used SPM-dependencies of an Xcode-project.

SwiftPackageList A command-line tool to generate a JSON-list of all used SPM-dependencies of an Xcode-project. This includes all the Package.resolved

Felix Herrmann 14 Jan 8, 2023
A powerful command line tool for performing stoichiometry calculations on checmicals and chemical equations.

Stoichiometry Stoichiometry is a powerful command line tool for preforming stoichiometry chemicals and chemical equations. Its subcommands are listed

null 3 Jul 15, 2022