rsrdesarrollo / generator-burp-extension

Everything you need about Burp Extension Generation
MIT License
151 stars 29 forks source link

Support Kotlin Templates #1

Open justinmoore opened 4 years ago

justinmoore commented 4 years ago

Hey @rsrdesarrollo, Thanks for developing this project boilerplate generator and for the AutoRepeater shoutout. I'll definitely be using this for my Burp extensions in the future. I'm with you on using Java over Jython or JRuby for exactly the same reasons you've listed, however, recently I've started writing my Burp extensions using Kotlin instead of Java. It's definitely an improved development environment in comparison to Java, JRuby, or Jython and it appears that Kotlin seems to be the direction at least some of the folks at Portswigger are going (e.g. https://github.com/PortSwigger/turbo-intruder). At the very least I really recommend checking out using Kotlin for a future extension you have in mind. I've found that the time required to learn the syntax was well worth it. Thanks again, Justin

rsrdesarrollo commented 4 years ago

Hi @justinmoore, Right now I have zero knowledge about Kotlin 😅, but shouldn't be so hard to do what you propose and, I will definitely look at it once I have read a bit about Kotlin.

Meanwhile, there is a short description of what should be done to add support for any language (for future references):

  1. Rename sub-generator at generators/extension to generators/extension_java
  2. Create your own sub-generator at generators/extension_
  3. Move the composeWith at generators/app/index.js#L8 to prompting
  4. Edit generators/app/index.js to prompt for language an change composeWith according