From b0083e94ef96c5bec4aeeb0aa6dd7092830cab73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergi=20=C3=80lvarez=20i=20Capilla?= Date: Thu, 23 Jan 2020 16:43:51 -0500 Subject: [PATCH] Add immortal example script for the new .. command --- plugins/immortal.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 plugins/immortal.js 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; + } +});