Option to perform host resolution on remote saprouter
parent
198667b650
commit
7ebcd5a8c9
|
@ -47,6 +47,7 @@ class Metasploit3 < Msf::Auxiliary
|
|||
# 3NN11,3NN17,20003-20007,31596,31597,31602,31601,31604,2000-2002,
|
||||
# 8355,8357,8351-8353,8366,1090,1095,20201,1099,1089,443NN,444NN
|
||||
OptInt.new('CONCURRENCY', [true, 'The number of concurrent ports to check per host', 10]),
|
||||
OptEnum.new('RESOLVE',[true,'Resolve RHOSTS on saprouter',false,[true,false]])
|
||||
], self.class)
|
||||
|
||||
deregister_options('RPORT')
|
||||
|
@ -253,6 +254,8 @@ class Metasploit3 < Msf::Auxiliary
|
|||
vprint_error("#{ip}:#{port} - invalid route")
|
||||
when /reacheable/
|
||||
vprint_error("#{ip}:#{port} - unreachable")
|
||||
when /hostname '#{ip}' unknown/
|
||||
vprint_error("#{ip}:#{port} - unknown host")
|
||||
else
|
||||
vprint_error("#{ip}:#{port} - unknown error message")
|
||||
end
|
||||
|
@ -271,6 +274,10 @@ class Metasploit3 < Msf::Auxiliary
|
|||
sap_host = datastore['SAPROUTER_HOST']
|
||||
sap_port = datastore['SAPROUTER_PORT']
|
||||
|
||||
if datastore['RESOLVE']
|
||||
ip = datastore['RHOSTS']
|
||||
end
|
||||
|
||||
ports = datastore['PORTS']
|
||||
|
||||
# if port definition has NN then we require INSTANCES
|
||||
|
|
Loading…
Reference in New Issue