Sha256: 8488e2ef052aa43a6c31dd630ddee1c25216a0152ef618a94e858f7cb8c6e642

Contents?: true

Size: 1.5 KB

Versions: 6

Compression:

Stored size: 1.5 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.2 # 2016-04-20 # Andrew Horton
# Moved patterns from passive function to matches[]
##
WhatWeb::Plugin.define "HttpFileServer" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2011-05-30
  @version = "0.2"
  @description = "You can use HFS (HTTP File Server) to send and receive files. Access your remote files, over the network."
  @website = "http://www.rejetto.com/hfs/"

  # ShodanHQ results as at 2011-05-30 #
  # 5,253 for HFS

  # Google results as at 2011-05-30 #
  # 626 for "File List" "Folder archive" "HttpFileServer" "Servertime" "Uptime"
  # 642 for "File List" "Folder archive" "HttpFileServer" "Servertime" "Uptime" "Build-time"
  # 636 for "File List" "Folder archive" "HttpFileServer" "Servertime" "Uptime" "Build-time" intitle:HFS

  # Dorks #
  @dorks = [
    '"File List" "Folder archive" "HttpFileServer" "Servertime" "Uptime" "Build-time" intitle:HFS'
  ]

  # Matches #
  @matches = [

    # Version Detection # Footer
    { version: /<div id=footer>[\s]+<a href="http:\/\/www\.rejetto\.com\/hfs\/">HttpFileServer ([^<]+)<\/a>[\s]+<br \/>Servertime/ },

    # Version Detection # HTTP Server Header
    { version: /^HFS (\d\.\d.+)$/, search: "headers[server]" },

    { regexp: /^HFS /, search: "headers[server]" },

  ]
end

Version data entries

6 entries across 6 versions & 1 rubygems

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