set the stdout stream to binmode before displaying, fixes #74
git-svn-id: file:///home/svn/framework3/trunk@4995 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
d33675d870
commit
9e757fa25e
|
@ -74,6 +74,8 @@ if (cmd =~ /^(p|r|c|j|x|b)/)
|
|||
puts "Error generating payload: #{$!}"
|
||||
exit
|
||||
end
|
||||
|
||||
$stdout.binmode
|
||||
|
||||
if (cmd =~ /^x/)
|
||||
note =
|
||||
|
@ -99,7 +101,7 @@ if (cmd =~ /^(p|r|c|j|x|b)/)
|
|||
exit(-1)
|
||||
end
|
||||
|
||||
puts buf
|
||||
$stdout.puts(buf)
|
||||
|
||||
elsif (cmd =~ /^(s|o)/)
|
||||
puts Msf::Serializer::ReadableText.dump_module(payload)
|
||||
|
|
Loading…
Reference in New Issue