pex.exe
¶
Subpackages¶
Submodules¶
Package Contents¶
- class pex.exe.EXE¶
Bases:
object
Main class of pex.exe module.
This main class of pex.exe module is intended for providing some implementations of executable file manipulation methods.
- check_executable(data: bytes, executable: str = '') bool ¶
Check if data is an executable.
- Parameters:
data (bytes) – data to check
executable (str) – executable format
- Return bool:
True if data is an executable
- executable_replace(data: bytes, dst: bytes, src: bytes) bytes ¶
Replace string in executable with content.
- Parameters:
data (bytes) – executable to replace string in
dst (bytes) – string to replace with content
src (bytes) – content to replace string with
- Return bytes:
processed executable