Final regex fix for jobs arch check

bug/bundler_fix
OJ 2016-10-29 14:10:01 +10:00
parent 57eabda5dc
commit e5d3feebea
No known key found for this signature in database
GPG Key ID: D5DC61FB93260597
1 changed files with 3 additions and 3 deletions

View File

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