-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (38 loc) · 1.22 KB
/
Makefile
File metadata and controls
50 lines (38 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.PHONY: setup build keys decrypt web export emoticons all status clean help
PYTHON ?= .venv/bin/python3
export SHELL := /bin/bash
help:
@echo "WeChat Decrypt — Makefile"
@echo ""
@echo " make setup 一键安装所有依赖 + 编译 + 初始配置"
@echo " make build 编译 macOS 密钥扫描器"
@echo " make keys 提取密钥(需要 root)"
@echo " make decrypt 提取密钥 + 解密全部数据库"
@echo " make web 启动 Web UI(实时消息监听)"
@echo " make export 解密 + 批量导出聊天记录"
@echo " make emoticons 导出收藏的表情包"
@echo " make all 从零到完成:setup → keys → decrypt → export"
@echo " make status 显示当前数据状态和磁盘用量"
@echo " make clean 交互式清理临时数据(解密库/导出/缓存)"
@echo ""
setup:
@bash setup.sh
build:
cc -O2 -o find_all_keys_macos find_all_keys_macos.c -framework Foundation
codesign -s - find_all_keys_macos
keys:
sudo ./find_all_keys_macos
decrypt:
$(PYTHON) main.py decrypt
web:
$(PYTHON) main.py
export:
$(PYTHON) main.py export
emoticons:
$(PYTHON) main.py emoticons
all:
$(PYTHON) main.py all
status:
$(PYTHON) main.py status
clean:
$(PYTHON) cleanup.py