Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #273: The cord jumped over and hit the power switch.


comp / comp.os.linux.advocacy / Re: Something I Never Fucking Knew

SubjectAuthor
* Something I Never Fucking KnewFarley Flud
+* Re: Something I Never Fucking Knewcandycanearter07
|+* Re: Something I Never Fucking KnewStéphane CARPENTIER
||`* Re: Something I Never Fucking KnewFarley Flud
|| `* Re: Something I Never Fucking Knewcandycanearter07
||  +- Re: Something I Never Fucking KnewStéphane CARPENTIER
||  `* Re: Something I Never Fucking KnewFarley Flud
||   `* Re: Something I Never Fucking KnewFarley Flud
||    `- Re: Something I Never Fucking Knewcandycanearter07
|`* Re: Something I Never Fucking KnewChris Ahlstrom
| `- Re: Something I Never Fucking Knewcandycanearter07
+- Re: Something I Never Fucking KnewStéphane CARPENTIER
`* Something I Never Fscking GNUChris Ahlstrom
 `- Re: Something I Never Fscking GNUStéphane CARPENTIER

1
Subject: Something I Never Fucking Knew
From: Farley Flud
Newsgroups: comp.os.linux.advocacy
Organization: UsenetExpress - www.usenetexpress.com
Date: Fri, 21 Jun 2024 21:07 UTC
From: ff@linux.rocks (Farley Flud)
Subject: Something I Never Fucking Knew
Newsgroups: comp.os.linux.advocacy
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 28
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Fri, 21 Jun 2024 21:07:00 +0000
Nntp-Posting-Date: Fri, 21 Jun 2024 21:07:00 +0000
X-Received-Bytes: 1316
X-Complaints-To: abuse@usenetexpress.com
Organization: UsenetExpress - www.usenetexpress.com
Message-Id: <17db210c74434ce0$119$1016857$802601b3@news.usenetexpress.com>
View all headers

I have fucking THOUSANDS, nay TENS of THOUSANDS, of fucking
e-books.

Most are PDF. Some are DJVU. Some are EPUB.

I was perusing an EBUB and I wondered how I could extract the
images from this e-book format. A quick search brought me this:

"Any non-DRM'ed epub ebook is just a renamed zipped folder. All
you'll need to do is rename the file from <filename>.epub to
<filename>.zip and unzip the folder. At that point, you should
be able to navigate within the folders to find the images and
do whatever you like with them."

https://ebooks.stackexchange.com/questions/1286/how-can-i-extract-all-the-pictures-from-an-ebook

Well how about that? Another zipped directory disguised as
a bona fide format.

Of course, GNU/Linux has the tools to extract images from ANY
file format.

Can Microshit Winblows claim the same?

Just open your wallet and head for the Winblows "Store."

Ha, ha, ha, ha, ha, ha, ha, ha, ha, ha, ha, ha, ha!

Subject: Re: Something I Never Fucking Knew
From: candycanearter07
Newsgroups: comp.os.linux.advocacy
Organization: the-candyden-of-code
Date: Sat, 22 Jun 2024 06:20 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Something I Never Fucking Knew
Date: Sat, 22 Jun 2024 06:20:05 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 39
Message-ID: <slrnv7cr2c.717s.candycanearter07@candydeb.host.invalid>
References: <17db210c74434ce0$119$1016857$802601b3@news.usenetexpress.com>
Injection-Date: Sat, 22 Jun 2024 08:20:06 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f60824e29780b67a84169b59547e9597";
logging-data="3825138"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mkiXJ/9X738ucRNP73zf8WScyguncm75OW5qgqep55A=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:rT6vBNUTB3ejfEh3DNGxoRNiBrU=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
View all headers

Farley Flud <ff@linux.rocks> wrote at 21:07 this Friday (GMT):
> I have fucking THOUSANDS, nay TENS of THOUSANDS, of fucking
> e-books.
>
> Most are PDF. Some are DJVU. Some are EPUB.
>
> I was perusing an EBUB and I wondered how I could extract the
> images from this e-book format. A quick search brought me this:
>
> "Any non-DRM'ed epub ebook is just a renamed zipped folder. All
> you'll need to do is rename the file from <filename>.epub to
><filename>.zip and unzip the folder. At that point, you should
> be able to navigate within the folders to find the images and
> do whatever you like with them."
>
> https://ebooks.stackexchange.com/questions/1286/how-can-i-extract-all-the-pictures-from-an-ebook
>
> Well how about that? Another zipped directory disguised as
> a bona fide format.

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.

> Of course, GNU/Linux has the tools to extract images from ANY
> file format.

Oh cool, what tool?

> Can Microshit Winblows claim the same?
>
> Just open your wallet and head for the Winblows "Store."
>
> Ha, ha, ha, ha, ha, ha, ha, ha, ha, ha, ha, ha, ha!
>

--
user <candycane> is generated from /dev/urandom

Subject: Re: Something I Never Fucking Knew
From: Stéphane CARPENTIER
Newsgroups: comp.os.linux.advocacy
Organization: Mulots' Killer
Date: Sat, 22 Jun 2024 09:45 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed3-a.proxad.net!nnrp3-2.free.fr!not-for-mail
Newsgroups: comp.os.linux.advocacy
From: sc@fiat-linux.fr (Stéphane CARPENTIER)
Subject: Re: Something I Never Fucking Knew
References: <17db210c74434ce0$119$1016857$802601b3@news.usenetexpress.com>
Organization: Mulots' Killer
User-Agent: slrn/pre1.0.4-9 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Date: 22 Jun 2024 09:45:57 GMT
Lines: 20
Message-ID: <66769d55$0$3898$426a34cc@news.free.fr>
NNTP-Posting-Date: 22 Jun 2024 11:45:57 CEST
NNTP-Posting-Host: 78.201.248.7
X-Trace: 1719049557 news-4.free.fr 3898 78.201.248.7:49372
X-Complaints-To: abuse@proxad.net
View all headers

Le 21-06-2024, Farley Flud <ff@linux.rocks> a écrit :
> I have fucking THOUSANDS, nay TENS of THOUSANDS, of fucking
> e-books.

What for? Seing your lack of knowledge in every subject you don't read.

> I wondered how I could extract the images from this e-book format.

Ah, OK, you have only comics. Not real books. You should be precise,
it's confusing. And you shouldn't believe the way they act in your
comics is the way you should try to behave in real life.

> Of course, GNU/Linux has the tools to extract images from ANY
> file format.

You just don't know how to use them.

--
Si vous avez du temps à perdre :
https://scarpet42.gitlab.io

Subject: Re: Something I Never Fucking Knew
From: Stéphane CARPENTIER
Newsgroups: comp.os.linux.advocacy
Organization: Mulots' Killer
Date: Sat, 22 Jun 2024 09:49 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed2-b.proxad.net!nnrp3-2.free.fr!not-for-mail
Newsgroups: comp.os.linux.advocacy
From: sc@fiat-linux.fr (Stéphane CARPENTIER)
Subject: Re: Something I Never Fucking Knew
References: <17db210c74434ce0$119$1016857$802601b3@news.usenetexpress.com>
<slrnv7cr2c.717s.candycanearter07@candydeb.host.invalid>
Organization: Mulots' Killer
User-Agent: slrn/pre1.0.4-9 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Date: 22 Jun 2024 09:49:00 GMT
Lines: 22
Message-ID: <66769e0c$0$3898$426a34cc@news.free.fr>
NNTP-Posting-Date: 22 Jun 2024 11:49:00 CEST
NNTP-Posting-Host: 78.201.248.7
X-Trace: 1719049740 news-4.free.fr 3898 78.201.248.7:49372
X-Complaints-To: abuse@proxad.net
View all headers

Le 22-06-2024, candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> a écrit :
> Farley Flud <ff@linux.rocks> wrote at 21:07 this Friday (GMT):
>> Well how about that? Another zipped directory disguised as
>> a bona fide format.
>
> 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.

>> Of course, GNU/Linux has the tools to extract images from ANY
>> file format.
>
> Oh cool, what tool?

He told you: "mv" and "unzip". But I guess he does it mostly on his
graphical file browser.

--
Si vous avez du temps à perdre :
https://scarpet42.gitlab.io

Subject: Re: Something I Never Fucking Knew
From: Farley Flud
Newsgroups: comp.os.linux.advocacy
Organization: UsenetExpress - www.usenetexpress.com
Date: Sat, 22 Jun 2024 12:01 UTC
References: 1 2 3
From: ff@linux.rocks (Farley Flud)
Subject: Re: Something I Never Fucking Knew
Newsgroups: comp.os.linux.advocacy
References: <17db210c74434ce0$119$1016857$802601b3@news.usenetexpress.com> <slrnv7cr2c.717s.candycanearter07@candydeb.host.invalid> <66769e0c$0$3898$426a34cc@news.free.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 34
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Sat, 22 Jun 2024 12:01:20 +0000
Nntp-Posting-Date: Sat, 22 Jun 2024 12:01:20 +0000
X-Received-Bytes: 1394
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Message-Id: <17db51da341531ea$135274$675878$802601b3@news.usenetexpress.com>
View all headers

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.

Subject: Something I Never Fscking GNU
From: Chris Ahlstrom
Newsgroups: comp.os.linux.advocacy
Organization: None
Date: Sat, 22 Jun 2024 12:35 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Something I Never Fscking GNU
Date: Sat, 22 Jun 2024 08:35:21 -0400
Organization: None
Lines: 20
Message-ID: <v56ge9$3oegm$5@dont-email.me>
References: <17db210c74434ce0$119$1016857$802601b3@news.usenetexpress.com>
Reply-To: OFeem1987@teleworm.us
Injection-Date: Sat, 22 Jun 2024 14:35:22 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e061dff1945a5c34d970b70f11f01a4c";
logging-data="3947030"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+cGhGro7kbz8rUesdtCnRv"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:KZJWNcUxTBt8iJi0YCSSKSmmjOI=
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Slrn: Why use anything else?
X-Mutt: The most widely-used MUA
View all headers

Farley Flud wrote this copyrighted missive and expects royalties:

> I have fucking THOUSANDS, nay TENS of THOUSANDS, of fucking
> e-books.
>
> Most are PDF. Some are DJVU. Some are EPUB.
>
> I was perusing an EBUB and I wondered how I could extract the
> images from this e-book format. A quick search brought me this:
>
> "Any non-DRM'ed epub ebook is just a renamed zipped folder. All
> you'll need to do is rename the file from <filename>.epub to
> <filename>.zip and unzip the folder.

Actually, you don't need to rename the file. On the command-line,
all that get's you is autocompletion when TAB is struck.

--
Q: What's the difference between a Mac and an Etch-a-Sketch?
A: You don't have to shake the Mac to clear the screen.

Subject: Re: Something I Never Fucking Knew
From: Chris Ahlstrom
Newsgroups: comp.os.linux.advocacy
Organization: None
Date: Sat, 22 Jun 2024 12:37 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Something I Never Fucking Knew
Date: Sat, 22 Jun 2024 08:37:11 -0400
Organization: None
Lines: 12
Message-ID: <v56ghn$3oegm$6@dont-email.me>
References: <17db210c74434ce0$119$1016857$802601b3@news.usenetexpress.com>
<slrnv7cr2c.717s.candycanearter07@candydeb.host.invalid>
Reply-To: OFeem1987@teleworm.us
Injection-Date: Sat, 22 Jun 2024 14:37:12 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e061dff1945a5c34d970b70f11f01a4c";
logging-data="3947030"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BKEMRK98n+WV77FNBGo0x"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:dQLDmvQydtST4bfu/1EurID4O6c=
X-Mutt: The most widely-used MUA
X-Slrn: Why use anything else?
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
View all headers

candycanearter07 wrote this copyrighted missive and expects royalties:

> 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.

$ file cfg66-2024-06-15.poo
cfg66-2024-06-15.poo: Zip archive data, at least v2.0 to extract, compression
method=deflate

--
You never hesitate to tackle the most difficult problems.

Subject: Re: Something I Never Fscking GNU
From: Stéphane CARPENTIER
Newsgroups: comp.os.linux.advocacy
Organization: Mulots' Killer
Date: Sat, 22 Jun 2024 12:53 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!fdn.fr!proxad.net!feeder1-2.proxad.net!cleanfeed3-a.proxad.net!nnrp3-2.free.fr!not-for-mail
Newsgroups: comp.os.linux.advocacy
From: sc@fiat-linux.fr (Stéphane CARPENTIER)
Subject: Re: Something I Never Fscking GNU
References: <17db210c74434ce0$119$1016857$802601b3@news.usenetexpress.com>
<v56ge9$3oegm$5@dont-email.me>
Organization: Mulots' Killer
User-Agent: slrn/pre1.0.4-9 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Date: 22 Jun 2024 12:53:40 GMT
Lines: 21
Message-ID: <6676c954$0$3898$426a34cc@news.free.fr>
NNTP-Posting-Date: 22 Jun 2024 14:53:40 CEST
NNTP-Posting-Host: 78.201.248.7
X-Trace: 1719060820 news-4.free.fr 3898 78.201.248.7:40290
X-Complaints-To: abuse@proxad.net
View all headers

Le 22-06-2024, Chris Ahlstrom <OFeem1987@teleworm.us> a écrit :
> Farley Flud wrote this copyrighted missive and expects royalties:
>
>> "Any non-DRM'ed epub ebook is just a renamed zipped folder. All
>> you'll need to do is rename the file from <filename>.epub to
>> <filename>.zip and unzip the folder.
>
> Actually, you don't need to rename the file.

In fact, he is. Because he's a mouse lackey who needs a GUI to manage
his files.

> On the command-line, all that get's you is autocompletion when TAB is
> struck.

He can't use properly the command line. It's far too difficult for him
to do.

--
Si vous avez du temps à perdre :
https://scarpet42.gitlab.io

Subject: Re: Something I Never Fucking Knew
From: candycanearter07
Newsgroups: comp.os.linux.advocacy
Organization: the-candyden-of-code
Date: Sun, 23 Jun 2024 06:10 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Something I Never Fucking Knew
Date: Sun, 23 Jun 2024 06:10:04 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 15
Message-ID: <slrnv7feof.8tpq.candycanearter07@candydeb.host.invalid>
References: <17db210c74434ce0$119$1016857$802601b3@news.usenetexpress.com>
<slrnv7cr2c.717s.candycanearter07@candydeb.host.invalid>
<v56ghn$3oegm$6@dont-email.me>
Injection-Date: Sun, 23 Jun 2024 08:10:05 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4d9e91c9d778ef388f06b2c3fcdfde71";
logging-data="242481"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7UE2DSiSxi7PKIbu64IyzDJCIx+OmIdzcgqZtUNlhCw=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:O0h6f0pS92kGI9P/ODYHzbFvcYQ=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
View all headers

Chris Ahlstrom <OFeem1987@teleworm.us> wrote at 12:37 this Saturday (GMT):
> candycanearter07 wrote this copyrighted missive and expects royalties:
>
>> 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.
>
> $ file cfg66-2024-06-15.poo
> cfg66-2024-06-15.poo: Zip archive data, at least v2.0 to extract, compression
> method=deflate

Right, or using `file`.
--
user <candycane> is generated from /dev/urandom

Subject: Re: Something I Never Fucking Knew
From: candycanearter07
Newsgroups: comp.os.linux.advocacy
Organization: the-candyden-of-code
Date: Sun, 23 Jun 2024 06:10 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Something I Never Fucking Knew
Date: Sun, 23 Jun 2024 06:10:05 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 40
Message-ID: <slrnv7ff0v.8tpq.candycanearter07@candydeb.host.invalid>
References: <17db210c74434ce0$119$1016857$802601b3@news.usenetexpress.com>
<slrnv7cr2c.717s.candycanearter07@candydeb.host.invalid>
<66769e0c$0$3898$426a34cc@news.free.fr>
<17db51da341531ea$135274$675878$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Jun 2024 08:10:05 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4d9e91c9d778ef388f06b2c3fcdfde71";
logging-data="242481"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qQtX10Dx6U/bHAOObefLztGiGaZ8A141PmxHkc/CRzA=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:Jh4hPobaxZm8Ndyx4sxCXbRTIbc=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
View all headers

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

Subject: Re: Something I Never Fucking Knew
From: Stéphane CARPENTIER
Newsgroups: comp.os.linux.advocacy
Organization: Mulots' Killer
Date: Sun, 23 Jun 2024 08:17 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-b.proxad.net!nnrp4-1.free.fr!not-for-mail
Newsgroups: comp.os.linux.advocacy
From: sc@fiat-linux.fr (Stéphane CARPENTIER)
Subject: Re: Something I Never Fucking Knew
References: <17db210c74434ce0$119$1016857$802601b3@news.usenetexpress.com>
<slrnv7cr2c.717s.candycanearter07@candydeb.host.invalid>
<66769e0c$0$3898$426a34cc@news.free.fr>
<17db51da341531ea$135274$675878$802601b3@news.usenetexpress.com>
<slrnv7ff0v.8tpq.candycanearter07@candydeb.host.invalid>
Organization: Mulots' Killer
User-Agent: slrn/pre1.0.4-9 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Date: 23 Jun 2024 08:17:07 GMT
Lines: 24
Message-ID: <6677da03$0$8236$426a74cc@news.free.fr>
NNTP-Posting-Date: 23 Jun 2024 10:17:07 CEST
NNTP-Posting-Host: 78.201.248.7
X-Trace: 1719130627 news-2.free.fr 8236 78.201.248.7:43594
X-Complaints-To: abuse@proxad.net
View all headers

Le 23-06-2024, candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> a écrit :
> 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:
>
> Hm.. maybe you could try `file -k`?
> (print all possible matches rather than just the strongest match)

You see? As I said, "file" is a too difficult command form him: you need
to give him the complete command line with all options.

--
Si vous avez du temps à perdre :
https://scarpet42.gitlab.io

Subject: Re: Something I Never Fucking Knew
From: Farley Flud
Newsgroups: comp.os.linux.advocacy
Organization: UsenetExpress - www.usenetexpress.com
Date: Sun, 23 Jun 2024 10:39 UTC
References: 1 2 3 4 5
From: ff@linux.rocks (Farley Flud)
Subject: Re: Something I Never Fucking Knew
Newsgroups: comp.os.linux.advocacy
References: <17db210c74434ce0$119$1016857$802601b3@news.usenetexpress.com> <slrnv7cr2c.717s.candycanearter07@candydeb.host.invalid> <66769e0c$0$3898$426a34cc@news.free.fr> <17db51da341531ea$135274$675878$802601b3@news.usenetexpress.com> <slrnv7ff0v.8tpq.candycanearter07@candydeb.host.invalid>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 29
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Sun, 23 Jun 2024 10:39:54 +0000
Nntp-Posting-Date: Sun, 23 Jun 2024 10:39:54 +0000
X-Received-Bytes: 1485
X-Complaints-To: abuse@usenetexpress.com
Organization: UsenetExpress - www.usenetexpress.com
Message-Id: <17db9bfd48b4a80d$177415$3053472$802601b3@news.usenetexpress.com>
View all headers

On Sun, 23 Jun 2024 06:10:05 -0000 (UTC), candycanearter07 wrote:

>
> Hm.. maybe you could try `file -k`?
> (print all possible matches rather than just the strongest match)
>

file -k Aspirin.epub

Aspirin.epub: EPUB document\012- Zip archive data, made by v2.0\012- ,
extract using at least v2.0\012- , last modified, last modified
Sun, Aug 22 2014 17:12:38, uncompressed size 20, method=store\012-
Zip archive, with extra data prepended\012- data

file -k Offal.epub
Offal.epub: EPUB document\012- data

file -k X15.epub
X15.epub: EPUB document\012- data

It seems that the EPUB contains some sort of extra data that
will distinguish it from an ordinary zip file.

The same applies to Open Document (i.e. Libreoffice) files,
which are also ZIP format but reported by file as Open Document.

Subject: Re: Something I Never Fucking Knew
From: Farley Flud
Newsgroups: comp.os.linux.advocacy
Organization: UsenetExpress - www.usenetexpress.com
Date: Sun, 23 Jun 2024 10:57 UTC
References: 1 2 3 4 5 6
From: ff@linux.rocks (Farley Flud)
Subject: Re: Something I Never Fucking Knew
Newsgroups: comp.os.linux.advocacy
References: <17db210c74434ce0$119$1016857$802601b3@news.usenetexpress.com> <slrnv7cr2c.717s.candycanearter07@candydeb.host.invalid> <66769e0c$0$3898$426a34cc@news.free.fr> <17db51da341531ea$135274$675878$802601b3@news.usenetexpress.com> <slrnv7ff0v.8tpq.candycanearter07@candydeb.host.invalid> <17db9bfd48b4a80d$177415$3053472$802601b3@news.usenetexpress.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 14
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Sun, 23 Jun 2024 10:57:22 +0000
Nntp-Posting-Date: Sun, 23 Jun 2024 10:57:22 +0000
X-Received-Bytes: 1130
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Message-Id: <17db9cf14bd7105a$344158$1516010$802601b3@news.usenetexpress.com>
View all headers

On Sun, 23 Jun 2024 10:39:54 +0000, Farley Flud wrote:

>
> It seems that the EPUB contains some sort of extra data that
> will distinguish it from an ordinary zip file.
>

That extra data is an uncompressed MIME type block.

So the ZIP format is not actually a pure ZIP format.

This also explains why an EPUB can't be unzipped, edited,
and then zipped again. The result will not be an EPUB.

Subject: Re: Something I Never Fucking Knew
From: candycanearter07
Newsgroups: comp.os.linux.advocacy
Organization: the-candyden-of-code
Date: Mon, 24 Jun 2024 06:20 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Something I Never Fucking Knew
Date: Mon, 24 Jun 2024 06:20:04 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 19
Message-ID: <slrnv7i3kd.aa95.candycanearter07@candydeb.host.invalid>
References: <17db210c74434ce0$119$1016857$802601b3@news.usenetexpress.com>
<slrnv7cr2c.717s.candycanearter07@candydeb.host.invalid>
<66769e0c$0$3898$426a34cc@news.free.fr>
<17db51da341531ea$135274$675878$802601b3@news.usenetexpress.com>
<slrnv7ff0v.8tpq.candycanearter07@candydeb.host.invalid>
<17db9bfd48b4a80d$177415$3053472$802601b3@news.usenetexpress.com>
<17db9cf14bd7105a$344158$1516010$802601b3@news.usenetexpress.com>
Injection-Date: Mon, 24 Jun 2024 08:20:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7946d25fd5a5c01032d20f9576502bed";
logging-data="857785"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/ely1W1JtnPinjbD4ifcXk+ULwvn3E4K9xW2cnujovA=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:/mo9b7YjswQsH/4aUNSWoVB3YMg=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
View all headers

Farley Flud <ff@linux.rocks> wrote at 10:57 this Sunday (GMT):
> On Sun, 23 Jun 2024 10:39:54 +0000, Farley Flud wrote:
>
>>
>> It seems that the EPUB contains some sort of extra data that
>> will distinguish it from an ordinary zip file.
>>
>
> That extra data is an uncompressed MIME type block.
>
> So the ZIP format is not actually a pure ZIP format.
>
> This also explains why an EPUB can't be unzipped, edited,
> and then zipped again. The result will not be an EPUB.

So, you'd just need to edit the file to add the header?
--
user <candycane> is generated from /dev/urandom

1

rocksolid light 0.9.8
clearnet tor