while having a look at the new DoubleCommander, just by coincidence I stumbled upon this one. Quite old, but the top-most entry of the "What's new"-section makes me believe it could be helpful for your problem. So you may want to have a look at it / it's sources.
Best regards!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I musst detect if a file is a archive file
for a normal archive is no problem with the magic like 37 7A BC AF 27 1C for 7-zip
how can i detect when the file is a selfextracting Archive ?
have you another file signature from different archive files?
all sfxes i know are just exe+regular archive
thi a now
but how can i detect that an archive is in a exe?
example by a PKSFX
50 4B 53 70 58
PKSFX
ZIP PKSFX self-extracting executable compressed file
what is the offset an magic for a 7zip self-extracting??
ypu should read zip fromat docs for the magic. afair it's PK\1\2 or PK\3\4
look at appnote.txt at pkzip site
and there is no magic offset - you just scan reasonable amount of data, say 512kb
Hello everyone,
while having a look at the new DoubleCommander, just by coincidence I stumbled upon this one. Quite old, but the top-most entry of the "What's new"-section makes me believe it could be helpful for your problem. So you may want to have a look at it / it's sources.
Best regards!