MetasploitTest Class Reference
[Available modules]

Inheritance diagram for MetasploitTest:

TestModule TestConfigurationContainer

List of all members.


Detailed Description

TestEnv module MetasploitTest.

This module handles an instance of the exploit framework Metasploit in a thread.

The MetasploitTest arguments are supposed to be in the following order: first the name of the exploit then a list of options, e.g.: <exploit name>=""> <option1=value1> <optionN=valueN>

Therefore you can set some parameters:

Author:
Enrico Hartung <enrico@iptel.org>
Version:
0.1
License:
GPL

Requirements

Definition at line 53 of file MetasploitTest.py.


Public Member Functions

def initTestModule
 This function is expected to be overridden by the child class.
def run
 This method ist called after the start of the thread.

Static Private Attributes

list _arguments = []
list __msfMode = ["E"]
string __command = "msfcli"
int __retryTimer = 15

Member Function Documentation

def initTestModule (   self  ) 

This function is expected to be overridden by the child class.

Reimplemented from TestModule.

Definition at line 68 of file MetasploitTest.py.

def run (   self  ) 

This method ist called after the start of the thread.

It runs Metasploit with the parameters set in the constructor. The Metasploit result [<process name>="">, <result code>="">, <timed out="" or="" not>="">] is written into the result list of the test case. If an error occurs (timed out or Metasploit returns error code) a log file including the output of the process is written into the working directory. The name of this log file has following structure: <test case="" description>="">_<process name>_<unix time stamp>.log

Reimplemented from TestModule.

Definition at line 82 of file MetasploitTest.py.


Member Data Documentation

list _arguments = [] [static, private]

Definition at line 56 of file MetasploitTest.py.

list __msfMode = ["E"] [static, private]

Definition at line 59 of file MetasploitTest.py.

string __command = "msfcli" [static, private]

Definition at line 62 of file MetasploitTest.py.

int __retryTimer = 15 [static, private]

Definition at line 65 of file MetasploitTest.py.


The documentation for this class was generated from the following file:

Generated on Mon Aug 11 17:28:34 2008 for TestEnv by  doxygen 1.5.5