Coder Social home page Coder Social logo

ghidra-scala-loader's Introduction

Introduction

Love ghidra but hate Java? If so, then this extension is for you! Just load this extension, and Ghidra will see and be able to load any scripts written in Scala. Just make sure their filename ends in .scala and drop them into any ghidra_scripts directory.

Now with 100% less Java! This version is written natively in Scala. Thanks to Edward J. Schwartz for the original Java implementation! This version also uses Gradle to automatically download and package the Scala compiler with the plugin.

Compilation

If you want to build the extension yourself, make sure you have gradle installed, and then run GHIDRA_INSTALL_DIR=/path/to/ghidra gradle buildExtension. If all goes well, you should get a message like:

8:58:01 AM: Executing task 'buildExtension'...

> Task :compileJava NO-SOURCE
> Task :compileScala
> Task :processResources NO-SOURCE
> Task :classes
> Task :getDeps
> Task :indexHelp SKIPPED
> Task :buildHelp SKIPPED
> Task :jar
> Task :zipSource

> Task :buildExtension

Created ghidra_9.1.2_PUBLIC_20200221_ghidra-scala-loader.zip in /projects/ghidra-scala-loader/dist

BUILD SUCCESSFUL in 17s
5 actionable tasks: 5 executed

In this case, the file dist/ghidra_9.1.2_PUBLIC_20200221_ghidra-scala-loader.zip is the newly built extension.

Installation

Start Ghidra, and in the initial window (i.e., not the Code Browser), open the File menu, and select Install Extensions. Click the small plus icon in the top right of the window, and select the extension zip file that you built above. This should add an extension into the list, ScalaScriptProvider. Make sure the checkbox is ticked, and click OK to close the window. Ghidra will tell you that you need to restart to load the extension. Do so.

To make sure the extension loaded correctly, open the Code Browser, and under the Window menu, select Script Manager. If all is well, you should see a HelloWorld.scala script. Right click it, and select Run. You should see the hello world message print out to the Console.

ghidra-scala-loader's People

Contributors

jlacomis avatar sei-eschwartz avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

borzacchiello

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.