[crux-commits] ports/contrib (refs/remotes/origin/3.6): binwalk: initial commit, v2.2.0-e30a71b

crux at crux.nu crux at crux.nu
Sat Apr 10 19:06:05 UTC 2021


commit fdb33254b13569e2212e68afb88076ed2f5c5aa6
Author: Alexandr Savca <alexandr.savca89 at gmail.com>
Date:   Tue Jan 5 17:44:36 2021 +0200

    binwalk: initial commit, v2.2.0-e30a71b

diff --git a/binwalk/.footprint b/binwalk/.footprint
new file mode 100644
index 000000000..feb0612fa
--- /dev/null
+++ b/binwalk/.footprint
@@ -0,0 +1,161 @@
+drwxr-xr-x	root/root	usr/
+drwxr-xr-x	root/root	usr/bin/
+-rwxr-xr-x	root/root	usr/bin/binwalk
+drwxr-xr-x	root/root	usr/lib/
+drwxr-xr-x	root/root	usr/lib/python3.9/
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk-2.2.1-py3.9.egg-info
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/binwalk/
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/__init__.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/__main__.py
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/binwalk/__pycache__/
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/__pycache__/__init__.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/__pycache__/__init__.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/__pycache__/__main__.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/__pycache__/__main__.cpython-39.pyc
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/binwalk/config/
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/config/extract.conf
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/binwalk/core/
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__init__.py (EMPTY)
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/__init__.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/__init__.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/common.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/common.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/compat.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/compat.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/display.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/display.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/exceptions.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/exceptions.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/idb.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/idb.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/magic.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/magic.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/module.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/module.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/plugin.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/plugin.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/settings.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/settings.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/statuserver.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/statuserver.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/version.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/__pycache__/version.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/common.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/compat.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/display.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/exceptions.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/idb.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/magic.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/module.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/plugin.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/settings.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/statuserver.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/core/version.py
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/binwalk/magic/
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/animation
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/archives
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/binarch
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/bincast
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/binwalk
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/bootloaders
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/code
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/compressed
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/console
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/crypto
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/ebml
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/ecos
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/efi
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/encoding
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/executables
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/filesystems
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/firmware
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/hashing
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/images
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/linux
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/lzma
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/misc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/network
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/phones
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/sql
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/magic/vxworks
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/binwalk/modules/
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__init__.py
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/__init__.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/__init__.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/compression.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/compression.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/disasm.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/disasm.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/entropy.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/entropy.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/extractor.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/extractor.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/general.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/general.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/hexdiff.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/hexdiff.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/signature.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/__pycache__/signature.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/compression.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/disasm.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/entropy.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/extractor.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/general.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/hexdiff.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/modules/signature.py
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/arcadyan.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/arcadyan.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/cpio.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/cpio.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/dlromfsextract.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/dlromfsextract.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/gzipextract.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/gzipextract.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/gzipvalid.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/gzipvalid.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/hilink.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/hilink.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/jffs2valid.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/jffs2valid.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/lzmaextract.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/lzmaextract.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/lzmavalid.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/lzmavalid.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/pgp.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/pgp.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/tar.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/tar.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/ubivalid.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/ubivalid.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/unjffs2.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/unjffs2.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/unpfs.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/unpfs.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/ziphelper.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/ziphelper.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/zlibextract.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/zlibextract.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/zlibvalid.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/__pycache__/zlibvalid.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/arcadyan.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/cpio.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/dlromfsextract.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/gzipextract.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/gzipvalid.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/hilink.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/jffs2valid.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/lzmaextract.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/lzmavalid.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/pgp.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/tar.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/ubivalid.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/unjffs2.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/unpfs.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/ziphelper.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/zlibextract.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/binwalk/plugins/zlibvalid.py
diff --git a/binwalk/.signature b/binwalk/.signature
new file mode 100644
index 000000000..b5819d2a8
--- /dev/null
+++ b/binwalk/.signature
@@ -0,0 +1,5 @@
+untrusted comment: verify with /etc/ports/contrib.pub
+RWSagIOpLGJF385STtGkPCrC0eX5lthFTDs+OD8mZva5J7yVVHBREfE7WHdTrp5uZYf26AtrK/gWpOywdedSMu1XapCYsFvzLQI=
+SHA256 (Pkgfile) = 32eea1cf8698d883ea0a9014c436be57566b68eb0f6ad73b4ca29232c9a5b6df
+SHA256 (.footprint) = 748faad9eebebdbc16796d7efad5d40d3297bb9ab57fe09fa49dbe16787847e2
+SHA256 (binwalk-e30a71bdc55ab678c99a57f6e1cbba6d2f007c64.tar.gz) = 3b8a4f5e15858ddd72ce5abfc0f95d3d8028de4d616e2655978475f95fe6362a
diff --git a/binwalk/Pkgfile b/binwalk/Pkgfile
new file mode 100644
index 000000000..39d0b699a
--- /dev/null
+++ b/binwalk/Pkgfile
@@ -0,0 +1,17 @@
+# Description: A tool for searching a given binary image for embedded files
+# URL:         https://github.com/ReFirmLabs/binwalk
+# Maintainer:  Alexandr Savca, alexandrsavca89 at gmail dot com
+# Depends on:  python3-setuptools
+
+name=binwalk
+version=2.2.0-e30a71b
+_commit=e30a71bdc55ab678c99a57f6e1cbba6d2f007c64
+release=1
+source=(https://github.com/ReFirmLabs/$name/archive/$_commit/$name-$_commit.tar.gz)
+
+build() {
+	cd $name-$_commit
+
+	python3 setup.py build
+	python3 setup.py install --root=$PKG --optimize=1 --skip-build
+}
diff --git a/binwalk/README b/binwalk/README
new file mode 100644
index 000000000..40971da0e
--- /dev/null
+++ b/binwalk/README
@@ -0,0 +1,43 @@
+README for binwalk
+
+NOTES
+    Optional software for special features:
+
+        arj:               ARJ decompression support
+        cabextract:        CAB archive support
+        capstone:          disassembly support
+        cramfs-tools:      extract CRAMFS file systems
+        cramfsswap:        swap to endianess of a CRAMFS filesystem
+        jefferson:         extract JFFS2 file systems
+        lhasa:             LHA support
+        lzop:              LZO decompression support
+        mtd-utils:         JFFS filesystem support
+        openjdk8/jdk8-bin: Java vm/objects/archives
+        p7zip:             ZIP, LZMA and ISO decompression support
+        python3-opengl:    binviz module support
+        python3-pycryptodome: decrypt some known encrypted firmware
+                              images
+        sasquatch:         extract non-standard SquashFS images
+        sleuthkit:         forensic analysis support
+        squashfs-tools:    SquashFS support
+        srecord:           extract EPROM load files
+        ubi_reader:        extract UBIFS file systems
+        unrar:             RAR decompression support
+        yaffshiv:          extract YAFFS file systems
+
+    StuffIt
+    -------
+
+    To extract StuffIt archive files:
+    !!! WARNING: closed source !!!
+
+    $ wget -O- http://downloads.tuxfamily.org/sdtraces/stuffit520.611linux-i386.tar.gz | tar -zxv
+    # cp bin/unstuff /opt/bin/
+
+    IDA
+    ---
+
+    If IDA is installed on your system, you may optionally install the
+    binwalk IDA plugin:
+    $ python setup.py idainstall --idadir=/home/user/ida
+


More information about the crux-commits mailing list