반응형
DNS 프로토콜에 jordan이라는 단어가 보인다.
하나씩 확인해보니 2진수가 적혀 있는 패킷이 보인다.
ttl=64이고, dns qry name이 jordan인 것만 필터를 걸어보았다.
2진수들을 합치면 무언가가 나올 것 같다.
2진수를 qrcode로 변환하면 될 것 같다.
from PIL import Image
result=""
f=open('/root/Desktop/qrcode.txt','r')
data=f.read()
for line in data:
result+= line.rstrip()
outimg=Image.new('RGB',(60,60),"white")
pixels_out=outimg.load()
count=0
for bit in result:
i=count%50
j=count/50
if bit=='0':
pixels_out[(i,j)] =(0,0,0)
count+=1
outimg=outimg.resize((250,250))
outimg.save("/root/Desktop/qrcode.png","png")
Flag : JISCTF{D0KX_4R3_4RK1V3D_F1L3S}
반응형
'#CTF 2020' 카테고리의 다른 글
Shakti CTF 2020 write up(2) (0) | 2020.12.16 |
---|---|
Shakti CTF 2020 write up (0) | 2020.12.05 |
JISCTF 2020 write up (0) | 2020.11.22 |
Sunshine CTF 2020 (0) | 2020.11.11 |
CyberYoddha CTF 2020 Write up (0) | 2020.11.02 |