Skip to content

Instantly share code, notes, and snippets.

View ExcaliburZero's full-sized avatar

Chris ExcaliburZero

  • California, United States
  • 04:09 (UTC -07:00)
View GitHub Profile
@ExcaliburZero
ExcaliburZero / SootPrintMethodsByteCode.scala
Created November 28, 2018 23:55
Printing out the methods in a class using Soot
import soot.Scene
import scala.collection.JavaConverters._
object SootPrintMethods {
def main(args: Array[String]): Unit = {
Scene.v().loadClassAndSupport("java.lang.Object")
val a = Scene.v().getSootClass("java.lang.Object")
Scene.v().loadNecessaryClasses()