update the meterpreter modifier to reflect the new copy_ api
parent
3bb2b5b7fd
commit
c522514030
|
@ -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
|
||||
|
|
|
@ -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}")
|
||||
|
|
|
@ -383,7 +383,9 @@ 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?
|
||||
|
|
Loading…
Reference in New Issue