retdec.tools package

Submodules

retdec.tools.decompiler module

A tool for decompilation of files. It uses the library.

class retdec.tools.decompiler.ProgressDisplayer[source]

Bases: object

Base class of progress displayers.

display_decompilation_progress(d)[source]

Displays or updates progress of the given decompilation.

display_download_progress(file_name)[source]

Displays progress of downloading file with the given name.

display_generation_failure(what, reason)[source]

Displays a warning message that what failed to be generated because of reason.

class retdec.tools.decompiler.ProgressBarDisplayer[source]

Bases: retdec.tools.decompiler.ProgressDisplayer

Displays a progress bar during decompilation.

BAR_LENGTH = 40

Length of the progress bar (in characters).

BAR_FILL_CHAR = '#'

Character to be used as the fill symbol.

BAR_EMPTY_CHAR = ' '

Character to be used as the empty symbol.

display_decompilation_progress(d)[source]
display_download_progress(file_name)[source]
display_generation_failure(what, reason)[source]
class retdec.tools.decompiler.ProgressLogDisplayer[source]

Bases: retdec.tools.decompiler.ProgressDisplayer

Displays a progress log during decompilation.

display_decompilation_progress(d)[source]
display_download_progress(file_name)[source]
display_generation_failure(what, reason)[source]
class retdec.tools.decompiler.NoProgressDisplayer[source]

Bases: retdec.tools.decompiler.ProgressDisplayer

Displays nothing.

display_decompilation_progress(d)[source]
display_download_progress(file)[source]
display_generation_failure(what, reason)[source]
retdec.tools.decompiler.parse_args(argv)[source]

Parses the given list of arguments.

retdec.tools.decompiler.get_output_dir(args)[source]

Returns an absolute path to a directory where the output files should be saved.

retdec.tools.decompiler.get_progress_displayer(args)[source]

Returns a proper progress displayer based on the arguments provided by the user.

retdec.tools.decompiler.display_download_progress(displayer, file_path)[source]

Displays progress of downloading the given file.

retdec.tools.decompiler.add_decompilation_param_when_given(args, params, param_name)[source]

Adds a parameter with param_name from args to params, provided that the parameter is set.

retdec.tools.decompiler.should_download_output_binary_file(args)[source]

Should the compiled version of the input C file be downloaded?

retdec.tools.decompiler.main(argv=None)[source]

Runs the tool.

Parameters:argv (list) – Tool arguments.

If argv is None, sys.argv is used.

retdec.tools.fileinfo module

A tool for analysis of binary files. It uses the library.

retdec.tools.fileinfo.parse_args(argv)[source]

Parses the given list of arguments.

retdec.tools.fileinfo.main(argv=None)[source]

Runs the tool.

Parameters:argv (list) – Tool arguments.

If argv is None, sys.argv is used.

Module contents

Tools that use the library to analyze and decompile files.