Skip to content
This repository has been archived by the owner on Jan 12, 2020. It is now read-only.

Commit

Permalink
Initialize repository
Browse files Browse the repository at this point in the history
  • Loading branch information
JayFoxRox committed Mar 13, 2019
0 parents commit f8d35db
Show file tree
Hide file tree
Showing 6 changed files with 793 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.gradle/
build/
dist/
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Original Xbox Extensions for the Ghidra SRE Framework

**These extensions are not stable (yet)**

It is strongly discouraged to use these extensions for actual work.

Many features are incomplete or broken, and might result in broken projects.


## Requirements

* [Java Development Kit (JDK)](https://openjdk.java.net/)
* [Gradle Build Tool](https://gradle.org/)
* [Ghidra SRE Framework source code](https://github.com/NationalSecurityAgency/ghidra)


## Compiling

```
gradle -PGHIDRA_INSTALL_DIR=<ghidra-path>
```

*(Replace `<ghidra-path>` with the absolute path to the Ghidra SRE Framework source code)*


## Installing

In Ghidra, select "File" &rarr; "Install Extensions..." &rarr; "+" ("Add Extension") and choose the ZIP file from the dist folder.


## Using

The extension should automatically pick the "Xbox Exectuable (XBE)" format when importing a XBE file.


## License

See the license header in each source file.
Empty file added Xbe/Module.manifest
Empty file.
33 changes: 33 additions & 0 deletions Xbe/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Builds a Ghidra Extension for a given Ghidra installation.
//
// An absolute path to the Ghidra installation directory must be supplied either by setting the
// GHIDRA_INSTALL_DIR environment variable or Gradle project property:
//
// > export GHIDRA_INSTALL_DIR=<Absolute path to Ghidra>
// > gradle
//
// or
//
// > gradle -PGHIDRA_INSTALL_DIR=<Absolute path to Ghidra>
//
// Gradle should be invoked from the directory of the project to build. Please see the
// application.gradle.version property in <GHIDRA_INSTALL_DIR>/Ghidra/application.properties
// for the correction version of Gradle to use for the Ghidra installation you specify.

//----------------------START "DO NOT MODIFY" SECTION------------------------------
def ghidraInstallDir

if (System.env.GHIDRA_INSTALL_DIR) {
ghidraInstallDir = System.env.GHIDRA_INSTALL_DIR
}
else if (project.hasProperty("GHIDRA_INSTALL_DIR")) {
ghidraInstallDir = project.getProperty("GHIDRA_INSTALL_DIR")
}

if (ghidraInstallDir) {
apply from: new File(ghidraInstallDir).getCanonicalPath() + "/support/buildExtension.gradle"
}
else {
throw new GradleException("GHIDRA_INSTALL_DIR is not defined!")
}
//----------------------END "DO NOT MODIFY" SECTION-------------------------------
5 changes: 5 additions & 0 deletions Xbe/extension.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name=@extname@
description=Support for Xbox Executables (XBE)
author=XboxDev
createdOn=
version=@extversion@
Loading

0 comments on commit f8d35db

Please sign in to comment.