Final regex fix for jobs arch check
parent
57eabda5dc
commit
e5d3feebea
|
@ -129,9 +129,9 @@ module Msf::Exploit::Remote::HTTP::JBoss::Base
|
|||
def detect_architecture(res)
|
||||
if res && res.body =~ /<td.*?OSArch.*?(x86_64|amd64|x86|i386|i686).*?<\/td>/m
|
||||
arch = $1
|
||||
if arch =~ /(x86|i386|i686)/i
|
||||
return ARCH_X86
|
||||
elsif arch =~ /(x86_64|amd64)/i
|
||||
if arch =~ /^(x86_64|amd64)$/i
|
||||
return ARCH_X64
|
||||
elsif arch =~ /^(x86|i386|i686)$/i
|
||||
return ARCH_X86
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue