diff --git a/plugins/immortal.js b/plugins/immortal.js new file mode 100644 index 00000000..cb357843 --- /dev/null +++ b/plugins/immortal.js @@ -0,0 +1,9 @@ +// > '..immortal.js + +var __printf = Module.findExportByName(null, 'printf'); +Interceptor.attach(__printf, { + onEnter: function(args) { + this.newString = Memory.allocUtf8String('I wont die\n'); + args[0] = this.newString; + } +});