Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Robert-Cunningham/6d3a116840a3960047ca62a624beb115 to your computer and use it in GitHub Desktop.
Save Robert-Cunningham/6d3a116840a3960047ca62a624beb115 to your computer and use it in GitHub Desktop.
Java.perform(function () {
['java.lang.StringBuilder', 'java.lang.StringBuffer'].map(function (c) {
Java.use(c)['toString'].implementation = function () {
var ret = this['toString']();
console.log("a", ret, getStackTrace())
return ret
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment