Generic unpacker.
More...
|
| example |
| Example of an unpacker plugin.
|
|
| mpress |
| MPRESS unpacker.
|
|
| upx |
| UPX unpacker.
|
|
◆ PluginList
Type for list of plugins.
◆ ExitCode
Possible exit codes of the unpacker as program.
Enumerator |
---|
EXIT_CODE_OK | Unpacker ended successfully.
|
EXIT_CODE_NOTHING_TO_DO | There was not found matching plugin.
|
EXIT_CODE_UNPACKING_FAILED | At least one plugin failed at the unpacking of the file.
|
EXIT_CODE_PREPROCESSING_ERROR | Error with preprocessing of input file before unpacking.
|
EXIT_CODE_MEMORY_LIMIT_ERROR | There was an error when setting the memory limit.
|
◆ PluginExitCode
Exit code of the plugin from Plugin::unpack method.
Enumerator |
---|
PLUGIN_EXIT_UNPACKED | Unpacking successful.
|
PLUGIN_EXIT_UNSUPPORTED | Unpacking recognized valid data, but it doesn't support unpacking of them.
|
PLUGIN_EXIT_FAILED | Unpacking failed because of malformed data.
|
◆ _main()
int retdec::unpackertool::_main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ detectPackers()
◆ operator<<()
std::ostream& retdec::unpackertool::operator<< |
( |
std::ostream & |
out, |
|
|
const ArgHandler & |
handler |
|
) |
| |
Prints the help with the registered arguments.
- Parameters
-
out | The output stream to print to. |
handler | The argument handler itself. |
- Returns
- The output stream it prints to.
◆ processArgs()
ExitCode retdec::unpackertool::processArgs |
( |
ArgHandler & |
handler, |
|
|
char |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ unpackFile()
ExitCode retdec::unpackertool::unpackFile |
( |
const std::string & |
inputFile, |
|
|
const std::string & |
outputFile, |
|
|
bool |
brute, |
|
|
const std::vector< retdec::cpdetect::DetectResult > & |
detectedPackers |
|
) |
| |