摘要:
由一串二进制数字生成一张二维码图片 from PIL import Image from zxing import BarCodeReader reader = BarCodeReader() MAX = 70 pic = Image.new("RGB", (MAX, MAX)) binary_nu 阅读全文
posted @ 2023-08-26 13:28
willingyut
阅读(644)
评论(0)
推荐(0)
摘要:
场景:图片的十六进制编码顺序与期望相反,需要进行逆序 原十六进制:87 35 3B 逆序后:B3 53 78 import binascii from PIL import Image import pytesseract a = open(r"文件路径","rb+")#使用open函数以二进制形式 阅读全文
posted @ 2023-08-26 13:23
willingyut
阅读(37)
评论(0)
推荐(0)
摘要:
场景:图片的ascii编码顺序与期望相反,需要进行逆序 原十六进制:67 2A 37 逆序后:37 2A 67 input = open('flag.png', 'rb') input_all = input.read() ss = input_all[::-1] output = open('m0 阅读全文
posted @ 2023-08-26 12:59
willingyut
阅读(8)
评论(0)
推荐(0)
摘要:
该脚本局限性较大,需要文件夹内的二维码图片命名为整型 适合场景:二维码扫描结果为1或0,二维码数量庞大 import zxing import os filepath = r"文件夹路径" l = os.listdir(filepath) l.sort(key=lambda x:int(x[:-4] 阅读全文
posted @ 2023-08-26 12:52
willingyut
阅读(190)
评论(0)
推荐(0)
摘要:
以下的【Win7SP1x64】皆为操作系统名称 获取内存操作系统 volatility -f 文件名 imageinfo 内存网络扫描 –profile参数指定镜像 volatility -f 文件名 --profile=Win7SP1x64 netscan 读取cmd命令 volatility - 阅读全文
posted @ 2023-08-26 12:49
willingyut
阅读(195)
评论(0)
推荐(0)
摘要:
s为二进制数 s='' r="" tmp = 0 for i in xrange(len(s)/2): c = s[i*2] if c == s[i*2 - 1]: r += '1' else: r += '0' print hex(int(r,2))[2:-1].decode('hex') 阅读全文
posted @ 2023-08-26 00:18
willingyut
阅读(77)
评论(0)
推荐(0)

浙公网安备 33010602011771号