logo

deblob

remove binary executables from a directory git clone https://hacktivis.me/git/deblob.git
commit: 15bde5a73e23bbc182c7901c2662c3092fd41988
parent c8bd35394e7b5b803443bd0f2411ecd7ff5a11f3
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon,  5 Sep 2022 20:57:27 +0200

Add support for Python 2.7 bytecode

Found in the wild in Ren'Py 8.0.3 tarball

Diffstat:

Mdeblob.12+-
Mmain.ha1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/deblob.1 b/deblob.1 @@ -46,7 +46,7 @@ Erlang BEAM files .It Java Class files .It -Python 3.8/3.9/3.10 bytecode files (typically *.pyc) +Python 2.7 & 3.8/3.9/3.10 bytecode files (typically *.pyc) .El .Sh EXAMPLES The following code block show how it is intended to be used in Gentoo's diff --git a/main.ha b/main.ha @@ -21,6 +21,7 @@ const magic: [_][]u8 = [ ['F', 'O', 'R', '1'], // Erlang BEAM [0xCA, 0xFE, 0xBA, 0xBE], // Java Class File & Mach-O Executable // Python *.pyc bytecode magic numbers (defined in importlib/_bootstrap_external.py) + [0x03, 0xF3, '\r', '\n'], // (62211i little-endian) Python 2.7 [0x55, 0x0D, '\r', '\n'], // (3413i litte-endian) Python 3.8 [0x61, 0x0D, '\r', '\n'], // (3425i litte-endian) Python 3.9 [0x6F, 0x0D, '\r', '\n'], // (3439i litte-endian) Python 3.10