Use pip to install this tool, preferrably in a virtual environment:
$ git clone https://github.com/quarkslab/erlang-prism.git
$ cd erlang-prism
$ pip install .
Prism can disassemble any BEAM or EZ (BEAM archive) file using the following options:
$ erlang-prism -o my_output_dir -f my_example_file.beam
This command will disassemble my_example_file.beam
in the output directory my_output_dir
.
The -s
option can be used for batch processing:
$ erlang-prism -o my_batch_output -s ./beam-files
In this case, prism will look for any BEAM or EZ file present in the provided directory and its subdirectories, disassemble them and store the disassembled files in the specified output directory my_batch_output
.
A VIM syntax file is provided and can be used to highlight the
disassembled files, saved with the .beamc
extension.