Module: Ronin::Exploits::Metadata::URLPath

Defined in:
lib/ronin/exploits/metadata/url_path.rb

Overview

Adds a url_path metadata attribute to an exploit class.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(exploit) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Adds ClassMethods to the exploit class.

Parameters:



38
39
40
# File 'lib/ronin/exploits/metadata/url_path.rb', line 38

def self.included(exploit)
  exploit.extend ClassMethods
end

Instance Method Details

#url_pathString

The target URL path of the exploit.

Returns:

  • (String)

    The URL path to exploit. Defaults to "/" if not set in the class.

See Also:



80
81
82
# File 'lib/ronin/exploits/metadata/url_path.rb', line 80

def url_path
  self.class.url_path
end