Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能说下实现原理么? #15

Closed
yangjiang0217 opened this issue Sep 19, 2019 · 2 comments
Closed

能说下实现原理么? #15

yangjiang0217 opened this issue Sep 19, 2019 · 2 comments

Comments

@yangjiang0217
Copy link

我看代码好像是去一个网站上查补丁文件,然后下载下载替换?

@huiyadanli
Copy link
Owner

防撤回原理: #9
要做到防撤回,实际就是直接编辑了dll文件里面的一个字节的内容。
核心代码:https://github.com/huiyadanli/RevokeMsgPatcher/blob/master/RevokeMsgPatcher/Util.cs 中的 EditHex 方法。

这个软件的本质就是一个十六进制的编辑器。

其余的代码都是为了让工具变的傻瓜化写的:joy:

至于从网上查的补丁信息只是为了方便更新最新的版本的修改信息(这份信息软件本身也自带,但不是最新),里面存的是修改了dll的什么位置,修改成什么字节。并没有存dll文件,下载替换的速度太慢了。

@yangjiang0217
Copy link
Author

非常感谢作者百忙中给予的回复!^_^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants