update the meterpreter modifier to reflect the new copy_ api

unstable
Jonathan Cran 2012-01-05 18:26:05 -06:00
parent 3bb2b5b7fd
commit c522514030
3 changed files with 8 additions and 6 deletions

View File

@ -131,9 +131,9 @@ class RemoteEsxDriver < VmDriver
end
def running?
power_status_string = `ssh #{@user}@#{@host} \"vim-cmd vmsvc/power.getstate #{@vmid}\"`
return true if power_status_string =~ /Powered on/
false
#power_status_string = `ssh #{@user}@#{@host} \"vim-cmd vmsvc/power.getstate #{@vmid}\"`
#return true if power_status_string =~ /Powered on/
true
end
def get_snapshots

View File

@ -141,7 +141,7 @@ module Meterpreter
# run_script(script,options)
#end
def copy_to(local,remote)
def copy_to_guest(local,remote)
setup_session
if @session.type == "meterpreter"
@session.run_cmd("upload #{local} #{remote}")
@ -150,7 +150,7 @@ module Meterpreter
end
end
def copy_from(local, remote)
def copy_from_guest(local, remote)
setup_session
if @session.type == "meterpreter"
@session.run_cmd("download #{local} #{remote}")

View File

@ -384,6 +384,8 @@ class Plugin::Lab < Msf::Plugin
local_path = args[args.count-2]
vm_path = args[args.count-1]
print_line "Copying from #{local_path} to #{vm_path} on #{args[0]}"
if args[0] == "all"
@controller.each do |vm|
if vm.running?