Class Msf::ExploitDriver
In: lib/msf/core/exploit_driver.rb
Parent: Object

This class drives the exploitation process from start to finish for a given exploit module instance. It‘s responsible for payload generation, encoding, and padding as well as initialization handlers and finally launching the exploit.

Methods

Attributes

job_id  [RW]  The identifier of the job this exploit is launched as, if it‘s run as a job.

Public Class methods

Initializes the exploit driver using the supplied framework instance.

Public Instance methods

Checks to see if the supplied payload is compatible with the current exploit. Assumes that target_idx is valid.

Kicks off an exploitation attempt and performs the following four major operations:

  - Generates the payload
  - Initializes & monitors the handler
  - Launches the exploit
  - Cleans up the handler

This method returns the currently selected target index.

Specification of the exploit target index.

Makes sure everything‘s in tip-top condition prior to launching the exploit. For things that aren‘t good to go, an exception is thrown.

Protected Instance methods

Clean up the exploit and the handler after the job completes.

Job run proc, sets up the exploit and kicks it off.

[Validate]