update wordpress version detection regex

bug/bundler_fix
Christian Mehlmauer 2015-01-08 23:36:59 +01:00
parent 2a52bfd26d
commit f7eb9a6cf8
No known key found for this signature in database
GPG Key ID: BCFF4FA966BC32C7
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ module Msf::HTTP::Wordpress::Version
# try to extract version from readme # try to extract version from readme
# Example line: # Example line:
# Stable tag: 2.6.6 # Stable tag: 2.6.6
version = res.body.to_s[/(?:stable tag|version): (?!trunk)([0-9a-z.-]+)/i, 1] version = res.body.to_s[/(?:stable tag|version):\s+(?!trunk)([0-9a-z.-]+)/i, 1]
# readme present, but no version number # readme present, but no version number
return Msf::Exploit::CheckCode::Detected if version.nil? return Msf::Exploit::CheckCode::Detected if version.nil?