Skip to content

Commit

Permalink
Add immortal example script for the new .. command
Browse files Browse the repository at this point in the history
  • Loading branch information
trufae committed Jan 23, 2020
1 parent 1533e52 commit b0083e9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/immortal.js
Original file line number Diff line number Diff line change
@@ -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;
}
});

0 comments on commit b0083e9

Please sign in to comment.