set the stdout stream to binmode before displaying, fixes #74

git-svn-id: file:///home/svn/framework3/trunk@4995 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2007-06-16 05:16:13 +00:00
parent d33675d870
commit 9e757fa25e
1 changed files with 3 additions and 1 deletions

View File

@ -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)