V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
douglas1997
V2EX  ›  问与答

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

  •  
  •   douglas1997 · Mar 7, 2017 · 2743 views
    This topic created in 3346 days ago, the information mentioned may be changed or developed.

    虽然官方有备份, 但是觉得做的真是稀烂。我想了解一下如何读取 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 replies    2017-03-07 14:50:10 +08:00
    kxjhlele
        1
    kxjhlele  
       Mar 7, 2017
    SQLCipher
    douglas1997
        2
    douglas1997  
    OP
       Mar 7, 2017
    @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  
       Mar 7, 2017
    @douglas1997 版本不匹配吧 换 2 试试
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2637 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:10 · PVG 19:10 · LAX 04:10 · JFK 07:10
    ♥ Do have faith in what you're doing.