I just can't figure out how to disassemble an .exe
file using metasm. As far as I know the command should look something like:
ruby disassemble.rb [path-to-my-exe-file] > [path-to-output.asm]
But, that's not quite the thing.
Reverse Engineering Stack Exchange is a question and answer site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation. It only takes a minute to sign up.
Sign up to join this communityI just can't figure out how to disassemble an .exe
file using metasm. As far as I know the command should look something like:
ruby disassemble.rb [path-to-my-exe-file] > [path-to-output.asm]
But, that's not quite the thing.
The solution is quite easy.
ruby disassemble.rb [path-to-my-exe-file] > [path-to-output.asm]
Is totally fine. I didn't copy metasm.rb
and the metasm
subfolder to the [ruby_dir]/lib/ruby/[version_number]/
directory.
ruby ~/tools/metasploit/lib/metasm/samples/disassemble.rb raw_binary > asm_code.asm
, which contains the full path todisassembly.rb
.