利用 Dropbox 文件冗余检查
在 Dropbox 中,如果文件已存在于其服务器上,则不会上传该文件。它会立即同步..
现在,这个检查是针对我认为的一些事情完成的,可能是文件大小、文件名,当然还有 CRC(md5 哈希或其他东西...)
我在想..如果我知道该文件名称、大小和 CRC,是否可以创建一个生成特定 CRC(反向哈希)的假文件,以便 dropbox 真正同步真实文件?
这只是一个实验,例如可以使用 linux 发行版映像来完成。 对这个话题有什么想法吗?
in Dropbox if a file is already present at their servers, the file is not uploaded. It syncs instantly..
Now, this check is done on a few things i think, probably the file size, file name, and of course the CRC (md5 hash or something...)
I was thinking.. if I know the file name, its size and its CRC, is it possible to create a fake file that produces that particular CRC (reverse hashing) so that dropbox actually syncs the true file?
It's just an experiment, it could be done for example with linux distribution images..
any idea on the topic?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很高兴看到有人也在考虑这个问题。
问题一:
即使您能够创建具有相同 CRC 的虚假文件,客户端也不会再次上传该文件(但您仍会将虚假文件保留在计算机中)。
您只会在与您的 Dropbox 帐户关联的其他计算机上收到所需的文件。
问题2:
从我的角度来看,创建那个假文件似乎有点不可能。 CRC 是为了检查文件完整性而开发的,因此在不使用大量暴力的情况下创建具有相同 CRC 的文件似乎有点复杂。
我的建议:
我相信修改 Dropbox 源代码(如果有的话)中的 CRC 例程并允许注入伪造的 CRC 值会容易得多。
最后评论:我可能不是很有创意,但我没有找到使用该方案的法律理由。 Dropbox 已经提供了公共文件夹来共享文件(但有流量限制)。
Curious to see that someone is thinking about this also.
Problem 1:
Even if you were able to create a fake file with the same CRC, the client would just not upload the file again (but you would still keep your fake file in your computer).
You would just receive the desired file on the other computers associated with your dropbox account.
Problem 2:
Creating that fake file seems a bit impossible from my point of view. CRC's were developed to check file integrity so it seems a bit complex to create a file with the same CRC without a massive brute-force.
MY SUGGESTION:
I believe it would be much easier to modify the CRC routines in the Dropbox source code (if you have it) and allow the injection of your fake CRC values.
Final comment: I might not be very creative but I do not find a legal reason for the use of this scheme. Dropbox already provides a Public folder to share files (but traffic limits apply).