Skip to content

Instantly share code, notes, and snippets.

@danilo04
Created February 1, 2018 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danilo04/13ed8e2d5e0e52b7513619194b6512a6 to your computer and use it in GitHub Desktop.
Save danilo04/13ed8e2d5e0e52b7513619194b6512a6 to your computer and use it in GitHub Desktop.
PackManager.v().getPack("jtp").add(
new Transform("jtp.methodinstrumenter", new BodyTransformer() {
@Override
protected void internalTransform(Body body, String arg1,
Map<String, String> arg2) {
// this method runs for all the methods in the app under analysis
UnitGraph g = new ExceptionalUnitGraph(body);
// unit graph is a statement based control flow graph
}
}));
soot.Main.main(newArgs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment