re | [NPUCTF2020]EzObfus-Chapter2
import subprocess
for i in range(1):
for j in range(ord('A'),ord('Z')+1):
for k in range(ord('A'),ord('Z')+1):
flag ="npuctf{WDNMD_"+chr(j)+chr(k)+"_OBFU!}"
print(flag.encode())
p = subprocess.Popen([r"attachment.exe"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p.stdin.write(flag.encode())
p.stdin.close()
out=p.stdout.read()
p.stdout.close()
if b"E" not in out:
print(flag)
exit()
本文来自博客园,作者:Mz1,转载请注明原文链接:https://www.cnblogs.com/Mz1-rc/p/14471050.html
如果有问题可以在下方评论或者email:mzi_mzi@163.com