Fix service pack parsing

bug/bundler_fix
HD Moore 2014-07-06 09:24:36 -05:00
parent 90f3916259
commit b6b5435a3d
1 changed files with 2 additions and 2 deletions

View File

@ -108,8 +108,8 @@ class Metasploit3 < Msf::Post
if field.to_i > 0
report[:os_sp] = 'SP' + field
end
if field =~ /(Service Pack|SP\s?)(\d+)/
report[:os_sp] = 'SP' + $1
if field =~ /(Service Pack|SP)\s?(\d+)/
report[:os_sp] = 'SP' + $2
end
when 'description'