goatshriek / ruby-dragon

Ruby, Kotlin, Groovy, Clojure, and JShell support for Ghidra scripting and interactive sessions.
https://goatshriek.github.io/ruby-dragon/
Apache License 2.0
46 stars 13 forks source link

kotlin version of SetEquate script #17

Open goatshriek opened 2 years ago

goatshriek commented 2 years ago

Ghidra comes with a number of scripts included which serve as both examples of the sorts of things that can be done with scripts as well as perform some useful tasks. Ruby Dragon includes examples itself to show how things written in Java/Python can be done in the languages that it adds to Ghidra. More of these example scripts will provide a greater base of examples for users to refer to when writing a script in their language of choice.

Implement a Kotlin version of the SetEquateScript included with Ghidra. This should go in the ghidra_scripts folder, along with the other examples, and be put in the category Examples.Kotlin. The existing Kotlin scripts will give you some examples of the basics of using Kotlin within Ghidra.

Of course, please ask any questions you have here if you get stuck!

fmagin commented 2 years ago

If you have IntelliJ IDEA, you should be able to do this easily with the Convert Java To Kotlin feature