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

Commit f7a9997

Browse files
committed
Fix ease_nro_restriction on the 2.0.0
1. update ro!ease_nro_restriction only work on the 3.0.0 2. typo: setfs to setfd
1 parent 8f6289e commit f7a9997

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

exploit/sploitcore.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,12 @@ var SploitCore = function (exploitMe) {
122122
setSetting(setfd, cls, name, 0).assertOk();
123123
}
124124

125-
orig = getSetting(setsys, "ro", "ease_nro_restriction").assertOk();
126-
if(orig == 0) {
127-
utils.log("Easing nro restriction...");
128-
setSetting(setfs, "ro", "ease_nro_restriction").assertOk();
125+
if (this.version == '3.0.0') {
126+
orig = getSetting(setsys, "ro", "ease_nro_restriction").assertOk();
127+
if(orig == 0) {
128+
utils.log("Easing nro restriction...");
129+
setSetting(setfd, "ro", "ease_nro_restriction", 1).assertOk();
130+
}
129131
}
130132
});
131133

0 commit comments

Comments
 (0)