update wordpress version detection regex
parent
2a52bfd26d
commit
f7eb9a6cf8
|
@ -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?
|
||||||
|
|
Loading…
Reference in New Issue