Sha256: e59c8194e834c96cd9bc3df466eefaecd4c065a3ee237788973e72347c850ca1

Contents?: true

Size: 1.62 KB

Versions: 6

Compression:

Stored size: 1.62 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
##
# Version 0.4 # 2012-04-12 #
# Updated matches for new versions of BeEF
##
# Version 0.3 # 2011-03-26 #
# Added version detection
##
# Version 0.2 # 2011-03-02 #
# Added favicon and beefmagic.js.php matches
##
WhatWeb::Plugin.define "BeEF" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2010-06-04
  @version = "0.4"
  @description = "BeEF - Browser Exploitation Framework"
  @website = "http://beefproject.com/"

  # Matches #
  @matches = [

    # PHP BeEF # Default Logo HTML
    { text: '<img src="../images/beef.gif" onclick="new Effect.Shake(\'sidebar\');"></div> BeEF</h1>' },

    # PHP BeEF # Title
    { certainty: 75, text: '<title>Browser Exploitation Framework</title>' },

    # PHP BeEF # Injected script
    { regexp: /<script[^>]+src=['"]?[^>^="'^"]+\/hook\/beefmagic\.js\.php['"]?/, certainty: 75, string: "Hook" },

    # Injected script
    { regexp: /<script[^>]+src=['"]?https?:\/\/[^\/]+\/hook\.js['"]?/, certainty: 75, string: "Hook" },

    # Logo HTML
    { url: "/ui/authentication", text: '<div id="centered"><img id="beef-logo" src="/ui/media/images/beef.png" alt="BeEF - The Browser Exploitation Framework" /></div>' },

    # /ui/media/images/beef.png
    { url: "/ui/media/images/beef.png", md5: "5f8cdcd65c5c05f875710f2c10503192" },

    # HTTP # Server # Version Detection
    { search: "headers[server]", version: /^BeEF ([^\s]+)$/ },

  ]
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_whatweb-0.4.1 lib/whatweb/plugins/beef.rb
simple_whatweb-0.4.0 lib/whatweb/plugins/beef.rb
simple_whatweb-0.3.0 lib/whatweb/plugins/beef.rb
simple_whatweb-0.2.1 lib/whatweb/plugins/beef.rb
simple_whatweb-0.2.0 lib/whatweb/plugins/beef.rb
simple_whatweb-0.1.0 lib/whatweb/plugins/beef.rb