put rhost option back
it is needed for the wmic query that creates the shadowcopy MSP-12867bug/bundler_fix
parent
7b2b526ea1
commit
e843db78dc
|
@ -28,7 +28,7 @@ class Metasploit3 < Msf::Post
|
||||||
'Platform' => [ 'win' ],
|
'Platform' => [ 'win' ],
|
||||||
'SessionTypes' => [ 'meterpreter' ]
|
'SessionTypes' => [ 'meterpreter' ]
|
||||||
))
|
))
|
||||||
deregister_options('RHOST','SMBUser','SMBPass', 'SMBDomain')
|
deregister_options('SMBUser','SMBPass', 'SMBDomain')
|
||||||
end
|
end
|
||||||
|
|
||||||
def run
|
def run
|
||||||
|
@ -144,7 +144,7 @@ class Metasploit3 < Msf::Post
|
||||||
def vss_method
|
def vss_method
|
||||||
location = ntds_location.dup
|
location = ntds_location.dup
|
||||||
volume = location.slice!(0,3)
|
volume = location.slice!(0,3)
|
||||||
id = create_shadowcopy("#{volume}\\")
|
id = create_shadowcopy("#{volume}")
|
||||||
print_status "Getting Details of ShadowCopy #{id}"
|
print_status "Getting Details of ShadowCopy #{id}"
|
||||||
sc_details = get_sc_details(id)
|
sc_details = get_sc_details(id)
|
||||||
sc_path = "#{sc_details['DeviceObject']}\\#{location}\\ntds.dit"
|
sc_path = "#{sc_details['DeviceObject']}\\#{location}\\ntds.dit"
|
||||||
|
|
Loading…
Reference in New Issue