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--src
with 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
pypefilter-0.0.5.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for pypefilter-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff19db277a027c466a212c2dfe96186f3396d2b3e224f895658051592bc6cab9 |
|
MD5 | bc23836af820d68c620ee50baec0759a |
|
BLAKE2b-256 | 77a27f94e06ecd19c7f41169c0b060466f07e9b2de6c18bd65ec0df11759bbfe |