(url)
| 1521 | // FUNCTIONS FOR STAGE: PATCH KERNEL |
| 1522 | |
| 1523 | async function get_patches(url) { |
| 1524 | const response = await fetch(url); |
| 1525 | if (!response.ok) { |
| 1526 | throw Error(`network response was not OK, status: ${response.status}\nfailed to fetch: ${url}`); |
| 1527 | } |
| 1528 | return response.arrayBuffer(); |
| 1529 | } |
| 1530 | |
| 1531 | // Using JIT to load our own shellcode code here avoids the need to preform |
| 1532 | // some trick toggle the CR0.WP bit. We can just toggle it easily within our |