我正在尝试在 Raspberry Pi 上解压缩 Chrome 扩展 CRX 文件(我理解它基本上是 ZIP 文件):
$ unzip -u -q cjpalhdlnbpafiamejdnhcphjbkeiagm.crx
warning [cjpalhdlnbpafiamejdnhcphjbkeiagm.crx]: 1322 extra bytes at beginning or within zipfile
(attempting to process anyway)
error: invalid zip file with overlapped components (possible zip bomb)
$ unzip -v
UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.
这适用于 macOS:
$ unzip -u -q cjpalhdlnbpafiamejdnhcphjbkeiagm.crx
warning [cjpalhdlnbpafiamejdnhcphjbkeiagm.crx]: 1322 extra bytes at beginning or within zipfile
(attempting to process anyway)
$ unzip -v
UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.
CRX文件的MD5和是一样的。所以看起来虽然程序的版本相同,但它们的工作方式不同。
有没有其他方法可以在 Pi 上提取该文件?
我尝试安装p7zip
,但这也不起作用:
$ 7zr e cjpalhdlnbpafiamejdnhcphjbkeiagm.crx
7-Zip (a) [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs LE)
Scanning the drive for archives:
1 file, 3033491 bytes (2963 KiB)
Extracting archive: cjpalhdlnbpafiamejdnhcphjbkeiagm.crx
ERROR: cjpalhdlnbpafiamejdnhcphjbkeiagm.crx
Can not open the file as archive
为了进行测试,您可以使用uBlock Origin 的 URL从此处下载扩展程序。