BUUCTF-MISC-数据包中的线索
1. 打开流量包,直接追踪http流,发现base64转码,进行图片转换即可

2. 代码如下
import os,base64
with open("..\\1.txt","r") as f:
imgdata = base64.b64decode(f.read())
file = open('1.jpg', 'wb')
file.write(imgdata)
file.close()
import os,base64
with open("..\\1.txt","r") as f:
imgdata = base64.b64decode(f.read())
file = open('1.jpg', 'wb')
file.write(imgdata)
file.close()
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。