Skip to content

建议:macOS 教程更新,以及使用 sqlite vfs 读取数据库 #67

@zqhong

Description

@zqhong

macOS 教程更新

参考当前仓库的教程 - NTQQ (macOS),遇到两个问题。

第一个问题:
我使用 Hopper Disassembler 5.19.6 版本,不能拿到 nt_sqlite3_key_v2 的引用地址。
但是通过 objdump 是可以的。

Image

第二个问题:
教程使用的是 macOS M 系列芯片,在寄存器部分的操作不大一样,建议说明。

Image

使用 sqlite vfs 读取数据库

基础教程 - NTQQ 解密数据库.md 中,有这样的代码 :

cat ./profile_info.db| tail -c +1025 > profile_info_clean.db
sqlcipher ./profile_info_clean.db

这样会有多余的 IO 写操作,通过通过 sqlite vfs 忽略前 1024 字节数据库,更加高效。

demo 案例:
zqhong/sqlite_header_vfs

在 macOS X86 环境下测试是可以的。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions