Sujet : Re: Something I Never Fucking Knew
De : candycanearter07 (at) *nospam* candycanearter07.nomail.afraid (candycanearter07)
Groupes : comp.os.linux.advocacyDate : 23. Jun 2024, 08:10:05
Autres entêtes
Organisation : the-candyden-of-code
Message-ID : <slrnv7ff0v.8tpq.candycanearter07@candydeb.host.invalid>
References : 1 2 3 4
User-Agent : slrn/1.0.3 (Linux)
Farley Flud <
ff@linux.rocks> wrote at 12:01 this Saturday (GMT):
On 22 Jun 2024 09:49:00 GMT, Stéphane CARPENTIER wrote:
>
Le 22-06-2024, candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> a écrit :
>
Well, it's a common technique. I've seen plenty of "fake file
extensions" that just use an existing format. Of course, you can easily
tell by looking at the magic number on the file.
You can, he can't. "File" is a too difficult command for him.
>
You are both totally incorrect. The "file" command reports only
that is an epub file:
>
file Aspirin.epub
>
Aspirin.epub: EPUB document
>
If I change the suffix to "zip" it still shows "EPUB document."
>
>
file Aspirin.zip
>
Aspirin.zip: EPUB document
>
>
Using a hex editor, the magic number is that of zip:
>
50 4B 03 04
>
The file, even if not renamed, can also be unzipped.
>
Let's see y'all explain this behavior.
Hm.. maybe you could try `file -k`?
(print all possible matches rather than just the strongest match)
-- user <candycane> is generated from /dev/urandom