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
|
@ -75,6 +75,8 @@ if (cmd =~ /^(p|r|c|j|x|b)/)
|
|||
exit
|
||||
end
|
||||
|
||||
$stdout.binmode
|
||||
|
||||
if (cmd =~ /^x/)
|
||||
note =
|
||||
"Created by msfpayload (http://www.metasploit.com).\n" +
|
||||
|
@ -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