GithubHelp home page GithubHelp logo

torgotorgo / ghidra-app-bundle Goto Github PK

View Code? Open in Web Editor NEW
40.0 2.0 4.0 117 KB

A Ghidra App Bundle for macOS

Home Page: https://gitlab.com/Torgo/ghidra-app-bundle

License: Apache License 2.0

Shell 8.33% Python 91.67%
ghidra macos macos-app bundle dock sre python3

ghidra-app-bundle's Introduction

Ghidra App Bundle

Ghidra

Github CI GitLab CI

This repo contains a script to create an app bundle for the Ghidra SRE framework. This makes Ghidra look and play nicer on the macOS platform.

Click one of the CI pipeline buttons above to download the prebuilt bundles.

Building

Building is simple, the quickest way to get started is to run ./update.py --dmg. This will download the latest Ghidra from Github.

pip3 install -r requirements.txt
./update.py --dmg
open Ghidra*.dmg

To install a specific version you can specify a version on the command line, or a URL/local path.

pip3 install -r requirements.txt
./update.py --list-versions
# A list of versions will be printed
./update.py --dmg --version "10.0.1"

To install a specific version from a custom URL:

pip3 install -r requirements.txt
./update.py --dmg --version "9.2.2" --url "https://ghidra-sre.org/ghidra_9.2.2_PUBLIC_20201229.zip"
open Ghidra*.dmg

Embedding OpenJDK

To embed OpenJDK into the bundle, first download the appropriate OpenJDK for your platform and then use the following command:

pip3 install -r requirements.txt
./update.py --dmg --jdk ~/Downloads/jdk-19.0.2.jdk/Contents/Home

Experimental Python3 (and more!) with Graal and Ghidraal

Building a bundle with:

./update.py --graal

builds Ghidra and bundles the GraalVM, a drop in replacement for OpenJDK that provides experimental polyglot support for Python3, R, NodeJS, etc. It also installs the Ghidraal extension which installs scripting support for a number of GraalVM supported languages.

Once the bundle has been built, open the code browser tool and then open File, Configure Extensions, and open the Experimental section. From there check the box for Ghidraal, close the extensions window and click File, Save Tool to save your changes.

Once the Ghidraal extension is enabled you'll find a "Ghidraal" category in the script browser with examples of Python3, NodeJS, and other scripts. You may have some issues with python2 scripts, but the 2to3 tool can solve many of these.

Note that at the time of writing, Graal's Python3 support is not sufficient for most packages and some language features, such as asyncio, are not supported. It might still be useful to have things such as type hints and fstrings however.

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.