1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

show commands that fail

git-svn-id: file:///home/svn/framework3/trunk@9721 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Joshua Drake 2010-07-07 18:04:22 +00:00
parent 49955d2ca0
commit 1e0e92e5aa

View File

@ -83,7 +83,7 @@ begin
opts = {
:linemax => 1700,
:decoder => File.join(Msf::Config.install_root, "data", "exploits", "cmdstager", "vbs_b64"),
#:persist => true # keep temp files (for debugging)
#:nodelete => true # keep temp files (for debugging)
}
exe = Msf::Util::EXE.to_executable(framework, larch, lplat, buf)
@ -112,7 +112,8 @@ begin
cmds.each { |cmd|
ret = session.shell_command_token_win32(cmd)
if (not ret)
print_error("Error: Unable to execute command!")
print_error("Error: Unable to execute the following command:")
print_error(cmd.inspect)
aborted = true
else
ret.strip!