Class Msf::Module::Target
In: lib/msf/core/module/target.rb
Parent: Object

A target for an exploit.

Methods

Classes and Modules

Class Msf::Module::Target::Bruteforce

Attributes

arch  [R]  The architectures, if any, that the target is specific to.
bruteforce  [R]  The bruteforce target information that will be non-nil if a Bruteforce option is passed to the constructor of the class.
name  [R]  The name of the target (E.g. Windows XP SP0/SP1)
opts  [R]  The target-specific options, like payload settings and other stuff like that.
platform  [R]  The platforms that this target is for.
ret  [R]  An alias for the target ‘Ret’ option.
save_registers  [R]  The list of registers that need to be saved.

Public Class methods

Serialize from an array to a Target instance.

Initializes an instance of a bruteforce target from the supplied information. The hash of options that this constructor takes is as follows:

Platform

     The platform(s) that this target is to operate against.

SaveRegisters

     The registers that must be saved by NOP generators.

Arch

     The architectures, if any, that this target is specific to (E.g.
     ARCH_X86).

Bruteforce

     Settings specific to a target that supports brute forcing.  See the
     BruteForce class.

Ret

     The target-specific return address or addresses that will be used.

Payload

     Payload-specific options, such as append, prepend, and other values that
     can be set on a per-exploit or per-target basis.

Transforms the supplied source into an array of Targets.

Public Instance methods

Index the options directly.

Returns whether or not this is a bruteforce target, forces boolean result.

Payload append information for this target.

The bad characters specific to this target for the payload.

A hash of options that be initialized in the select encoder‘s datastore that may be required as parameters for the encoding operation. This is particularly useful when a specific encoder type is being used (as specified by the EncoderType hash element).

The payload encoder type or types that can be used when generating the encoded payload (such as alphanum, unicode, xor, and so on).

Returns a hash of extended options that are applicable to payloads used against this particular target.

Payload max nops information for this target.

Payload min nops information for this target.

Payload prepend information for this target.

Payload prepend encoder information for this target.

Payload space information for this target.

Payload stack adjustment information for this target.

[Validate]