Packers¶
The Packer
class allows to abstract packers, based on the Base
class and adding a special packing method called pack
.
Packer
Class¶
This class is the base for abstracted tools loaded from the packers.yml
description file. It holds the registry of all the loaded child classes.
Special methods:
pack(executable)
: for packing an input executablerun(executable)
: overriddenrun
method for handling parametrized packers (i.e. generating a password and including it in the label)
Packing validation
When trying to pack an executable, the decision of whether it was successfully packed or not is made based on the change of SHA256 hash. If no change, the executable is included but with an unpacked label.
Currently, it does not support checking whether the executable still runs after packing.