logo

deblob

remove binary executables from a directory git clone https://hacktivis.me/git/deblob.git
commit: 9891172570fa660caa9ad5a7eb0f7b1640debede
parent 72d24eb08347ed90d409471a87968fc400d60baa
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  3 Dec 2022 14:59:59 +0100

Add support for Python 3.11 bytecode

Diffstat:

Mmain.ha1+
Atest/fixtures/pyc/hello.checked_hash.cpython-311.pyc0
Atest/fixtures/pyc/hello.timestamp.cpython-311.pyc0
Atest/fixtures/pyc/hello.unchecked_hash.cpython-311.pyc0
4 files changed, 1 insertion(+), 0 deletions(-)

diff --git a/main.ha b/main.ha @@ -32,6 +32,7 @@ const magic: [_][]u8 = [ [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 + [0xA7, 0x0D, '\r', '\n'], // (3495i litte-endian) Python 3.11 // Python pickle object data, similarly to Perl Storage it's dangerous enough to cause code execution [0x80, 0x02], // Protocol 2 + start of frame [0x80, 0x03], // Protocol 3 + start of frame diff --git a/test/fixtures/pyc/hello.checked_hash.cpython-311.pyc b/test/fixtures/pyc/hello.checked_hash.cpython-311.pyc Binary files differ. diff --git a/test/fixtures/pyc/hello.timestamp.cpython-311.pyc b/test/fixtures/pyc/hello.timestamp.cpython-311.pyc Binary files differ. diff --git a/test/fixtures/pyc/hello.unchecked_hash.cpython-311.pyc b/test/fixtures/pyc/hello.unchecked_hash.cpython-311.pyc Binary files differ.