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
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
$stdout.binmode
|
||||||
|
|
||||||
if (cmd =~ /^x/)
|
if (cmd =~ /^x/)
|
||||||
note =
|
note =
|
||||||
"Created by msfpayload (http://www.metasploit.com).\n" +
|
"Created by msfpayload (http://www.metasploit.com).\n" +
|
||||||
|
@ -99,7 +101,7 @@ if (cmd =~ /^(p|r|c|j|x|b)/)
|
||||||
exit(-1)
|
exit(-1)
|
||||||
end
|
end
|
||||||
|
|
||||||
puts buf
|
$stdout.puts(buf)
|
||||||
|
|
||||||
elsif (cmd =~ /^(s|o)/)
|
elsif (cmd =~ /^(s|o)/)
|
||||||
puts Msf::Serializer::ReadableText.dump_module(payload)
|
puts Msf::Serializer::ReadableText.dump_module(payload)
|
||||||
|
|
Loading…
Reference in New Issue