• 请不要在回答技术问题时复制粘贴 AI 生成的内容
twoyang
V2EX  ›  程序员

找回微信撤回的图片(原理分析、工具)

  •  
  •   twoyang · Jul 12, 2016 · 9824 views
    This topic created in 3787 days ago, the information mentioned may be changed or developed.
    13 replies  •  2016-07-14 17:48:33 +08:00
    TheLamb
    TheLamb
    Jul 12, 2016
    1
    有点意思, lz 挺有专研意识的,以前我也考虑过这个问题,无奈自己不会写代码来解密
    chareice
    chareice
    Jul 12, 2016
    2
    👍赞楼主的探索精神〜
    lawlietxxl
    lawlietxxl
    Jul 12, 2016
    3
    看见 lz 是疼逊的,戳中笑点,这不是后院起火了,哈哈
    linKnowEasy
    linKnowEasy
    Jul 12, 2016
    4
    想问下 Mac 和 iOS 微信怎么使用?
    lawlietxxl
    lawlietxxl
    Jul 12, 2016
    5
    不过主要还是赞赞赞
    Ellison
    Ellison
    Jul 12, 2016
    6
    发现我居然已经 Star 过了
    annielong
    annielong
    Jul 12, 2016
    7
    有一些清理工具可以看到所有 图片,没有打开的公众号发的图片竟然都有,不知道是什么时候偷偷下载的,怪不得流量跑的快
    hitmanx
    hitmanx
    Jul 13, 2016
    8
    赞 lz 的分析能力。看到这个地方,有个小疑问:

    '''
    其实,我们无需关心 magic 码的计算方式。因为,我们可以肯定的是,.dat 文件是图片,而对于 JPEG 的图片,其对应二进制的第一个字节是 0xFF 。

    所以,问题变成了,已知:.dat 文件对应二进制的第一个字节 ^ magic 码 = 0xFF ,求 magic 码。所以,问题变成了,已知:.dat 文件对应二进制的第一个字节 ^ magic 码 = 0xFF ,求 magic 码
    '''

    这儿不应该是 0xFF ^ magic number = first byte of .dat file?另外 XOR 0xFF 就是取反吧,用取反算不知道是不是还会快一些。
    ghostsf
    ghostsf
    Jul 13, 2016
    9
    没空看 mark 下
    twoyang
    twoyang
    OP
    Jul 13, 2016
    10
    @lawlietxxl 暴露了...
    twoyang
    twoyang
    OP
    Jul 13, 2016
    11
    @Ellison 之前发过,但是后来又发现有瑕疵,于是才有了续集...
    twoyang
    twoyang
    OP
    Jul 13, 2016
    12
    @hitmanx 已修改,谢谢~

    对于一个 200KB 左右的图片,分别使用取反和异或测试 10 次。
    取反耗时 0.028968716 ;异或,则耗时 0.030300784 。差不太多。

    python 的取反,好蛋疼啊: magic = ~(list(buf)[0]) & 0xff
    linKnowEasy
    linKnowEasy
    Jul 14, 2016
    13
    感觉会有人有需求 https://github.com/imoldman/wechatNoRevoke Mac 端的方法
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   923 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 21:34 · PVG 05:34 · LAX 13:34 · JFK 16:34
    ♥ Do have faith in what you're doing.