Module: CMSScanner::Target::Server::Nginx

Defined in:
lib/cms_scanner/target/server/nginx.rb

Overview

Some Nginx specific implementation

Instance Method Summary collapse

Instance Method Details

#directory_listing_entries(path = nil, params = {}) ⇒ Array<String>

Returns The first level of directories/files listed, or an empty array if none.

Parameters:

  • path (String) (defaults to: nil)
  • params (Hash) (defaults to: {})

    The request params

Returns:

  • (Array<String>)

    The first level of directories/files listed, or an empty array if none



21
22
23
# File 'lib/cms_scanner/target/server/nginx.rb', line 21

def directory_listing_entries(path = nil, params = {})
  super(path, params, 'pre a', /\A\.\./i)
end

#server(_path = nil, _params = {}) ⇒ Symbol

Returns :Nginx.

Parameters:

  • path (String)
  • params (Hash)

    The request params

Returns:

  • (Symbol)

    :Nginx



12
13
14
# File 'lib/cms_scanner/target/server/nginx.rb', line 12

def server(_path = nil, _params = {})
  :Nginx
end