From 1e0e92e5aaebbca870a6b7976bc16fba98c0b528 Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Wed, 7 Jul 2010 18:04:22 +0000 Subject: [PATCH] show commands that fail git-svn-id: file:///home/svn/framework3/trunk@9721 4d416f70-5f16-0410-b530-b9f4589650da --- scripts/shell/spawn_meterpreter.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/shell/spawn_meterpreter.rb b/scripts/shell/spawn_meterpreter.rb index 965233227f..08ff00b7e4 100644 --- a/scripts/shell/spawn_meterpreter.rb +++ b/scripts/shell/spawn_meterpreter.rb @@ -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!