Permalink
Browse files

Fixes #463. Missing a return value in exe.rb and missing a default fo…

…rmat in msfencode

git-svn-id: file:///home/svn/framework3/trunk@7357 4d416f70-5f16-0410-b530-b9f4589650da
  • Loading branch information...
1 parent 70b2d06 commit 8309599ca3799eefc78719e69a6c06c774a12c6d HD Moore committed Nov 4, 2009
Showing with 2 additions and 1 deletion.
  1. +1 −1 lib/msf/util/exe.rb
  2. +1 −0 msfencode
View
2 lib/msf/util/exe.rb
@@ -423,7 +423,7 @@ def self.to_exe_vbs(exes = '', opts={})
vbs << "#{var_func}\r\n"
vbs << "WScript.Sleep #{delay * 1000}\r\n" if persist
vbs << "Loop\r\n" if persist
-
+ vbs
end
def self.to_win32pe_vbs(framework, code, opts={})
View
1 msfencode
@@ -257,6 +257,7 @@ case cmd
end
end
else
+ fmt ||= "ruby"
if(not output)
$stdout.print(Msf::Simple::Buffer.transform(raw, fmt))
else

0 comments on commit 8309599

Please sign in to comment.