GithubHelp home page GithubHelp logo

javier-varez / adtmodder Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 46 KB

Takes an Apple Device Tree and modifies its contents

License: MIT License

CMake 1.76% C 33.37% C++ 63.23% Shell 1.65%
adt apple device-tree

adtmodder's Introduction

Adt Modder

This is a rather simple binary that takes an Apple device tree and modifies their nodes according to a json input file.

Getting started

Requirements:

  • Compiler with support for C++20
  • CMake
cmake -B build -S . -G Ninja
cmake --build build

The input is given via a json file that contains a list of operations to perform on the given device tree.

The list of supported commands can be seen running AdtModder with the -h argument like:

./build/AdtModder -h

This should give you a help message similar to the following:

Usage: adt_modder [options] device_tree operations.json

Positional arguments:
device_tree     	Input ADT to modify
operations.json 	A json file with the operations to perform on the dt

Optional arguments:
-h --help       	shows help message and exits [default: false]
-v --version    	prints version information and exits [default: false]
-o --output     	[default: "modded_adt.bin"]

Supported Adt Modder commands:
Command "zero_out_property": Writes 0s to the given property value
Command "randomize_property": Randomizes a property value in the given adt
Command "replace_property": Replaces the contents of the property by the given value

For an example of how to write the json description, check example.json.

Acknowledgements

The base adt code here was taken from m1n1, which is licensed under the MIT license.

adtmodder's People

Contributors

javier-varez avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.