| 254 | |
| 255 | |
| 256 | function run_hax() { |
| 257 | userland(); |
| 258 | if (chain.syscall(23, 0).low != 0x0) { |
| 259 | kernel(); |
| 260 | //this wk exploit is pretty stable we can probably afford to kill webkit before payload loader but should we?. |
| 261 | } |
| 262 | sessionStorage.exploit = "yes"; |
| 263 | if (sessionStorage.linux != "yes" && sessionStorage.netcat != "yes") { |
| 264 | setTimeout(load_poc(),500); |
| 265 | } |
| 266 | else if(sessionStorage.linux == "yes") { |
| 267 | setTimeout(linux_loader(PLfile),500); |
| 268 | } |
| 269 | else if(sessionStorage.netcat == "yes") { |
| 270 | setTimeout(exec_binserver(),500); |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | function kernel() { |
| 275 | extra_gadgets(); |