Files
WT810787899 c8fc597e25 chore: 初始化仓库 —— 雨传 YuChuan(局域网聊天 / 传文件工具)
- 应用图标:由 icon.png 生成 Android 各密度 mipmap 与 Windows app_icon.ico,
  生成脚本 scripts/gen_icons.py 可重复执行(不引入额外 pub 依赖)
- README:重写为「功能 / 用途 / 截图」(原内容是无关的模板残留)
- .gitignore:排除构建产物(build/、target/)、本地备份、过程文档、
  图标设计源文件与历史截图
2026-10-15 20:31:50 +08:00

41 lines
1.2 KiB
Python

import os, struct, sys
root = r"D:\Coding\YuChuan"
targets = {
705076105: "OLD(705076105)",
-793795930 & 0xFFFFFFFF: "NEW(-793795930)",
}
pats = {}
for v, label in targets.items():
pats[struct.pack("<i", v if v < 0x80000000 else v - 0x100000000)] = label
results = []
for dirpath, dirnames, filenames in os.walk(root):
for fn in filenames:
if not (fn.endswith(".dll") or fn.endswith(".so") or fn.endswith(".dylib")):
continue
p = os.path.join(dirpath, fn)
try:
size = os.path.getsize(p)
except OSError:
continue
if size < 50 * 1024:
continue
try:
with open(p, "rb") as f:
data = f.read()
except OSError:
continue
found = set()
for pat, label in pats.items():
if pat in data:
found.add(label)
if found:
results.append((p, size, ",".join(sorted(found)), os.path.getmtime(p)))
results.sort(key=lambda r: -r[3])
for p, size, found, mt in results:
print(f"{found:32s} {size:>10d} {p}")
if not results:
print("no dll contains either hash constant")