Add disasm method to -r

git-svn-id: file:///home/svn/framework3/trunk@6532 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-05-08 20:22:25 +00:00
parent d62822a9fb
commit 6bb267f31d
1 changed files with 6 additions and 1 deletions

View File

@ -23,6 +23,11 @@ module Scanner
vma = pe.rva_to_vma(hit[0])
msg = hit[1].is_a?(Array) ? hit[1].join(" ") : hit[1]
$stdout.puts pe.ptr_s(vma) + " " + msg
if(param['disasm'])
::Rex::Assembly::Nasm.disassemble([msg].pack("H*")).split("\n").each do |line|
$stdout.puts "\t#{line.strip}"
end
end
end
end
end