Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ghidra.app launcher for OSX

Installing Ghidra as a self-contained OSX .app (without contaminating your system with having to install Java):

Prebuilt (9.0.2)

Download

Build your own

  1. Download and extract the launcher AppleScript template app below. Optionally modify Ghidra.app/Info.plist to your liking.
  2. Download the latest OpenJDK and extract it to Ghidra.app/jdk. Make sure Ghidra.app/jdk/Contents/Home/bin/java exists.
  3. Download the latest Ghidra and extract it to Ghidra.app/ghidra. Make sure Ghidra.app/ghidra/ghidraRun exists.
  4. Copy Ghidra.app to your Applications directory.

Note that the template .app is just a standard AppleScript generated .app. If you don't trust the binary, you can build your own with the provided AppleScript.

Copy link

ghost commented May 13, 2019

Holy cow. That's awesome, thanks a lot!

@devnoname120
Copy link

devnoname120 commented May 13, 2019

Any plans to contribute it back to the main Ghidra repo?

@yifanlu
Copy link
Author

yifanlu commented May 13, 2019

There’s no code here. Just binaries; not sure how it can be contributed.

@devnoname120
Copy link

devnoname120 commented May 13, 2019

Can't you contribute the source code of the AppleScript?

@yifanlu
Copy link
Author

yifanlu commented May 13, 2019

Okay here you go. Contribute it.

set UnixPath to POSIX path of (path to me as text)
set JdkPath to UnixPath & "/jdk/Contents/Home/bin"
set GhidraRun to UnixPath & "/ghidra/ghidraRun"
do shell script "export PATH=" & (quoted form of JdkPath) & ":$PATH; " & (quoted form of GhidraRun)

@Tower450
Copy link

Tower450 commented Jan 16, 2020

thanks you @yifanlu you are amazing

@Akathian
Copy link

Akathian commented Dec 6, 2020

Great tool

@matanbroner
Copy link

matanbroner commented Dec 10, 2020

This is great, thank you so much

@dikim33
Copy link

dikim33 commented Sep 9, 2022

This still works great on Monterey. Thank you!

@EasyVector
Copy link

EasyVector commented Sep 30, 2022

Works like a charm! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment