Do safer body check
parent
bc65d2f526
commit
c098de27ee
|
@ -15,7 +15,7 @@ module Msf::HTTP::Wordpress::XmlRpc
|
||||||
'data' => xml
|
'data' => xml
|
||||||
)
|
)
|
||||||
|
|
||||||
return true if res && res.body =~ /<string>Hello!<\/string>/
|
return true if res && res.body && res.body.to_s =~ /<string>Hello!<\/string>/
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue