Module: Ronin::Exploits::Metadata::Arch

Included in:
Ronin::Exploits::MemoryCorruption
Defined in:
lib/ronin/exploits/metadata/arch.rb

Overview

Metadata mixin that allows an exploit to define which architecture it specifically targets.

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 an arch metadata attribute to the exploit.

Parameters:

API:

  • private



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

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

Instance Method Details

#arch:x86, ...

The architecture that the exploit targets.

Returns:

  • The exploit's architecture.

See Also:

API:

  • public



81
82
83
# File 'lib/ronin/exploits/metadata/arch.rb', line 81

def arch
  self.class.arch
end