fixup RHOST/RPORT expectations if only URI is set
parent
d689b33d7e
commit
c288dab338
|
@ -104,8 +104,6 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
end
|
||||
|
||||
register_file_for_cleanup(filename) if filename
|
||||
#print_status("payload executed from file #{filename}") unless filename.nil?
|
||||
#print_status("make sure to remove that file") unless filename.nil?
|
||||
end
|
||||
|
||||
def exploit
|
||||
|
@ -121,6 +119,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
|
||||
unless datastore['URI'].blank?
|
||||
serveruri = datastore['URI']
|
||||
(datastore['RHOST'], datastore['RPORT']) = serveruri.sub(/druby:\/\//i, '').split(':')
|
||||
else
|
||||
serveruri = "druby://#{datastore['RHOST']}:#{datastore['RPORT']}"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue