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

Signature Offsets #72

Open
RvdHout opened this issue Jul 18, 2023 · 0 comments
Open

Signature Offsets #72

RvdHout opened this issue Jul 18, 2023 · 0 comments

Comments

@RvdHout
Copy link

RvdHout commented Jul 18, 2023

Looks like some of the archive signatures have to be found at a specific offset, like:

SevenZipFormat.Tar
// 257 byte offset

SevenZipFormat.Iso
// 0x8001, 0x8801 or 0x9001 byte offset

SevenZipFormat.Lzh
// 2 byte offset

SevenZipFormat.Hfs
// 0x400 byte offset

https://en.wikipedia.org/wiki/List_of_file_signatures

I checked this with a renamed tar archive, with renamed extension *.tmp is doesn't detect it as tarball and returns:
"*.tmp is not a known archive type"

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

No branches or pull requests

2 participants