Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #134 from hexkyz/master
Browse files Browse the repository at this point in the history
Fix disable watchdog gadget on 4.0.0-4.1.0
  • Loading branch information
misson20000 authored Jun 15, 2019
2 parents 24d8de9 + 5fc1e41 commit 4d9d486
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion exploit/sploitcore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4d9d486

Please sign in to comment.