V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
douglas1997
V2EX  ›  问与答

如何提取微信备份数据库中的数据?

  •  
  •   douglas1997 · 2017-03-07 10:41:54 +08:00 · 2321 次点击
    这是一个创建于 2623 天前的主题,其中的信息可能已经有所发展或是发生改变。

    虽然官方有备份, 但是觉得做的真是稀烂。我想了解一下如何读取 Backup.db 的内容。其路径在

    ~/Library/Containers/com.tencent.xinWeChat/Data/Library/Application\ Support/com.tencent.xinWeChat/2.0b4.0.9/Backup

    下(来源于 V2 网友的帖子), 我尝试了 sqlite3 来读取数据, 使用.tables命令得到一下结果:

    sqlite> .tables
    Error: file is encrypted or is not a database
    sqlite> .schema
    Error: file is encrypted or is not a database
    

    所以请教一下如何读取这里面的数据呢?

    3 条回复    2017-03-07 14:50:10 +08:00
    kxjhlele
        1
    kxjhlele  
       2017-03-07 10:48:50 +08:00
    SQLCipher
    douglas1997
        2
    douglas1997  
    OP
       2017-03-07 11:08:17 +08:00
    @kxjhlele

    Quote from stack overflow

    > Without the key used to encrypt the content of a SQLCipher database, you can not decrypt the content of the database.

    Could you tell me how to make it? And it seems there must be some way to decrypt this database.
    kxjhlele
        3
    kxjhlele  
       2017-03-07 14:50:10 +08:00
    @douglas1997 版本不匹配吧 换 2 试试
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2726 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 04:19 · PVG 12:19 · LAX 21:19 · JFK 00:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.