Sha256: 1d9c369291cc6b2a520fba79f0d50796d282440cf2d536d4668bb79a2375e341
Contents?: true
Size: 1.73 KB
Versions: 6
Compression:
Stored size: 1.73 KB
Contents
# frozen_string_literal: true ## # This file is part of WhatWeb and may be subject to # redistribution and commercial restrictions. Please see the WhatWeb # web site for more information on licensing and terms of use. # http://www.morningstarsecurity.com/research/whatweb ## WhatWeb::Plugin.define "phpFox" do @author = "Brendan Coles <bcoles@gmail.com>" # 2011-04-21 @version = "0.1" @description = "phpFox is a featured packed social networking solution that creates communities with features found on major social networking websites like Facebook and MySpace." @website = "http://www.phpfox.com/" # 336 for "Powered By phpFox Version" # Dorks # @dorks = [ '"Powered By phpFox Version"' ] # Matches # @matches = [ # Version Detection # Powered by text { version: /Powered By <a href="http:\/\/www\.phpfox\.com\/"[^>]*>phpFoX<\/a> Version ([\d\.]+)/ }, { version: /<a href="http:\/\/www\.phpfox\.com\/"[^>]*>Powered by phpFoX Version ([\d\.]+)<\/a>/ }, ] # Passive # def passive(target) m = [] # Meta Generator (is base64 of "phpFox") or Meta Author if target.body =~ /<meta name="generator" content="cGhwRm94" \/>/ || target.body =~ /<meta name="author" content="phpFox" \/>/ m << { name: "Meta Tags" } # Version Detection # Meta Version # base64 encoded if /<meta name="version" content="([^"]+)" \/>/.match?(target.body) version = target.body.scan(/<meta name="version" content="([^"]+)" \/>/).flatten.first m << { version: Base64.decode64(version).to_s } end end # phpfox(x)visit cookie if /phpfox[\d]visit=[\d]+;/.match?(target.headers["set-cookie"]) m << { name: "phpfox(x)visit cookie" } end # Return passive matches m end end
Version data entries
6 entries across 6 versions & 1 rubygems