如何使用文件签名来识别 pbix 文件

huangapple go评论125阅读模式
英文:

How to identify pbix using it's file signature

问题

我正在为.pbix文件开发上传功能,并希望按照指定的文件签名验证进行验证。然而,在查阅了这篇文章和其他资料后,我没有找到这种特定类型文件的签名。

在将Sales & Returns Sample v201912.pbix示例上传到Online Hex Editor后,得到了以下结果。

如何使用文件签名来识别 pbix 文件

我已经添加了文件大小和扩展名验证,但我还想添加签名验证。我尝试了不同的字节大小,但似乎无法成功。

英文:

I'm working on an upload feature for .pbix files and want to validate it using File Signature Validation as specified. However, after checking this article and others I haven't found the signature for this specific type of file.

After uploading the Sales & Returns Sample v201912.pbix sample to Online Hex Editor it gave me the following results.

如何使用文件签名来识别 pbix 文件

I've added file size and extension validation, but I'd like to also add signature validation. I've tried different byte sizes but don't seem to get it.

答案1

得分: 2

.pbix 文件实际上是 ZIP 文件。您可以通过将扩展名更改为 .zip 并提取内容来轻松检查。因此,根据您的帖子中的链接和其中的引用(引用 1引用 2),签名应为 50 4B 03 04。这些字节与您的帖子中的十六进制内容截图匹配。

英文:

.pbix files are actually ZIP files. You can easily check that by changing the extension to .zip and extracting the contents. So according the link from you post and the references in it (ref. 1, ref. 2), the signature should be 50 4B 03 04. These bytes matches the screenshot of the hex content from your post too.

huangapple
  • 本文由 发表于 2023年7月18日 08:12:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/76708803.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定