handle missing targets more gracefully, stub out linux and x86_64 support detection
git-svn-id: file:///home/svn/framework3/trunk@8729 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
28f4eb2fd9
commit
35c4a1d123
|
@ -101,6 +101,10 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
|
||||
when /Windows/
|
||||
plat = 'win'
|
||||
|
||||
when /Linux/
|
||||
plat = 'linux'
|
||||
|
||||
end
|
||||
|
||||
when /OS Architecture: /
|
||||
|
@ -109,11 +113,21 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
|
||||
when 'x86'
|
||||
arch = ARCH_X86
|
||||
|
||||
when 'x86_64'
|
||||
arch = ARCH_X86_64
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
}
|
||||
|
||||
# No arch or platform found?
|
||||
if (not arch or not plat)
|
||||
return nil
|
||||
end
|
||||
#print_status("Remote server is %s %s" % [plat, arch])
|
||||
|
||||
# see if we have a match
|
||||
targets.each { |t|
|
||||
if (t['Platform'] == plat) and (t['Arch'] == arch)
|
||||
|
|
Loading…
Reference in New Issue