print all stacktrace and not only the last

This commit is contained in:
iddoeldor 2018-07-19 15:57:22 +03:00 committed by GitHub
parent 34f750398e
commit 00d4f02473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,9 @@ Java.perform(function() {
send('[' + i + '] ' + ret);
// raising an exception to get stacktrace
Java.perform(function() {
send('[*] ' + Java.use('java.lang.Exception').$new().getStackTrace().toString().split(',')[1]);
Java.use('java.lang.Exception').$new().getStackTrace().toString().split(',').forEach(function(l) {
console.log('\t[*] ' + l);
});
});
}
return ret;