08 2023 档案
摘要:最近在抓包时发现返回值为一个奇怪的字符串,都是由H4sIA开头,最后发现是gzip压缩后的字符串,例如: H4sIAAAAAAAACqtWKkotLs0pUbKqViouSSwpLVayMtBRKi3IyU9McUxJAcoCRfJKc3JAgimJJak++ekwgcy8ktSissSckMzcV
阅读全文
摘要:通过md5校验文件,我们可以判断文件内容是否改变,用python实现代码如下 import hashlib # 1.txt为空文本 with open("1.txt", "rb") as f: data = f.read() md5Old = hashlib.md5(data).hexdigest(
阅读全文
摘要:例如要访问静态文件 http://192.168.0.211:4010/picture/2023/08/19/1.png ,则需要配置static_folder ``` app = Flask(__name__, static_folder='') ```
阅读全文
摘要:折腾了base64转png弄了很久,使用以下代码进行转换后图片一直打不开 import base64 imgData = "data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD后面省略" imgData = imgData.split(",")[1] i
阅读全文
摘要:``` 姓名: 张三身份证: 44044019990217444X 打印 ``` ![image](https://img2023.cnblogs.com/blog/3130057/202308/3130057-20230807220842626-1558216644.png)
阅读全文
摘要:import time from shutil import copytree from psutil import disk_partitions copyFlag = False def usbCopy(driver): try: path = r"D:\usb-" + time.strftim
阅读全文