PyPEfilter filters out non-native Portable Executable
Project description
PyPEfilter
$ ./pypefilter.py --help
usage: pypefilter.py [-h] -s SRC [-d DST] [--rename] [--delete] [-v | -vm]
PyPEfilter filters out non-native Portable Executable files
optional arguments:
-h, --help show this help message and exit
-s SRC, --src SRC Source directory
-d DST, --dst DST Destination directory
--rename Rename matching files with their sha256 hash
--delete Delete non-matching files
-v, --verbose Display messages
-vm, --vmagic Display messages and magic of non-matching files
PyPEfilter filters out non-native (DLLs, .Net, Installer, ...) Portable Executable files from --src directory.
If --dst directory is provided, it copies all the matching PE files from --src to --dst, and renames the files in the destination directory with their sha256 hash.
Specifying:
--rename: it renames the matching PE files in--srcwith their sha256 hash--delete: it deletes the non-matching PE files from--src
Disclaimer
This script is based on python-magic, a Python interface to the libmagic file type identification library. Therefore, for example, it does not identify all types of installers.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypefilter-0.0.5.tar.gz.
File metadata
- Download URL: pypefilter-0.0.5.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0be364190e37965266530579f9fdc641b854747cfc35528091051cccdfdaae8e
|
|
| MD5 |
35295548bb00c682298216638d649e1c
|
|
| BLAKE2b-256 |
456bc3b8c40323a0687d82d08dfd61f8859d1c2995d54fc65d38a4a50b518555
|
File details
Details for the file pypefilter-0.0.5-py3-none-any.whl.
File metadata
- Download URL: pypefilter-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff19db277a027c466a212c2dfe96186f3396d2b3e224f895658051592bc6cab9
|
|
| MD5 |
bc23836af820d68c620ee50baec0759a
|
|
| BLAKE2b-256 |
77a27f94e06ecd19c7f41169c0b060466f07e9b2de6c18bd65ec0df11759bbfe
|