DsniffTest Class Reference
[Available modules]

Inheritance diagram for DsniffTest:

TestModule TestConfigurationContainer

List of all members.


Detailed Description

TestEnv module DsniffTest.

This module handles an instance of one of the sniffing tools of the dsniff collection in a thread.

Therefore you can set some parameters:

The dsniff collection includes:

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

Requirements

Definition at line 70 of file DsniffTest.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.

Private Attributes

 __command

Static Private Attributes

list _arguments = []
string __command = ""
int __retryTimer = 15
tuple __regexResultArpspoof = re.compile("[0-9a-f\:]+\s+[0-9a-f\:]+\s+[0-9]+\s+[0-9]+\: arp reply [0-9\.]+ is-at [0-9a-f\:]+")
tuple __regexResultDnsspoof = re.compile("[0-9\.]+ > [0-9\.]+:\s+[0-9]+\+ A\? .*")
tuple __regexResultDsniff = re.compile("[0-9]{2}/[0-9]{2}/[0-9]{2}\s+[0-9]{2}\:[0-9]{2}\:[0-9]{2}\s+[a-z]+\s+[a-zA-Z0-9\.]+ -> [a-zA-Z0-9\.]+.*")
tuple __regexResultFilesnarf = re.compile("filesnarf\: listening on [a-z0-9]+\s+.+")
tuple __regexResultMacof = re.compile("[0-9a-f\:]+ [0-9a-f\:]+ [0-9\.]+ > [0-9\.]+: S [0-9]+\:[0-9]+\([0-9]+\) win [0-9]+")
tuple __regexResultMailsnarf = re.compile("mailsnarf\: listening on [a-z0-9]+\s+.+")
tuple __regexResultMsgsnarf = re.compile("msgsnarf\: listening on [a-z0-9]+\s+.+")
tuple __regexResultSshmitm = re.compile("sshmitm\: relaying to [0-9\.]+\s+.+")
tuple __regexResultSshow = re.compile("sshow\: listening on [0-9a-z]+ \[tcp\]\s+.+")
tuple __regexResultTcpkill = re.compile("[0-9\.]+\:[0-9]+ > [0-9\.]+\:[0-9]+\: R [0-9]+\:[0-9]+\([0-9]+\) win [0-9]+")
tuple __regexResultTcpnice = re.compile("tcpnice\: write\: Resource temporarily unavailable")
tuple __regexResultUrlsnarf = re.compile("[a-zA-Z0-9\.]+ - - \[[0-9]{2}/[a-zA-Z]{3}/[0-9]{4}\:[0-9]{2}\:[0-9]{2}\:[0-9]{2} [0-9+]{5}\]")
tuple __regexResultWebmitm = re.compile("webmitm\: relaying.+\n.+")
tuple __regexResultWebspy = re.compile("webspy\: listening on [a-z0-9]+\s+.+")

Member Function Documentation

def initTestModule (   self  ) 

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

Reimplemented from TestModule.

Definition at line 124 of file DsniffTest.py.

def run (   self  ) 

This method ist called after the start of the thread.

It runs dsniff with the parameters set in the constructor. The dsniff 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 dsniff 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 138 of file DsniffTest.py.


Member Data Documentation

list _arguments = [] [static, private]

Definition at line 73 of file DsniffTest.py.

string __command = "" [static, private]

Definition at line 76 of file DsniffTest.py.

int __retryTimer = 15 [static, private]

Definition at line 79 of file DsniffTest.py.

tuple __regexResultArpspoof = re.compile("[0-9a-f\:]+\s+[0-9a-f\:]+\s+[0-9]+\s+[0-9]+\: arp reply [0-9\.]+ is-at [0-9a-f\:]+") [static, private]

Definition at line 82 of file DsniffTest.py.

tuple __regexResultDnsspoof = re.compile("[0-9\.]+ > [0-9\.]+:\s+[0-9]+\+ A\? .*") [static, private]

Definition at line 85 of file DsniffTest.py.

tuple __regexResultDsniff = re.compile("[0-9]{2}/[0-9]{2}/[0-9]{2}\s+[0-9]{2}\:[0-9]{2}\:[0-9]{2}\s+[a-z]+\s+[a-zA-Z0-9\.]+ -> [a-zA-Z0-9\.]+.*") [static, private]

Definition at line 88 of file DsniffTest.py.

tuple __regexResultFilesnarf = re.compile("filesnarf\: listening on [a-z0-9]+\s+.+") [static, private]

Definition at line 91 of file DsniffTest.py.

tuple __regexResultMacof = re.compile("[0-9a-f\:]+ [0-9a-f\:]+ [0-9\.]+ > [0-9\.]+: S [0-9]+\:[0-9]+\([0-9]+\) win [0-9]+") [static, private]

Definition at line 94 of file DsniffTest.py.

tuple __regexResultMailsnarf = re.compile("mailsnarf\: listening on [a-z0-9]+\s+.+") [static, private]

Definition at line 97 of file DsniffTest.py.

tuple __regexResultMsgsnarf = re.compile("msgsnarf\: listening on [a-z0-9]+\s+.+") [static, private]

Definition at line 100 of file DsniffTest.py.

tuple __regexResultSshmitm = re.compile("sshmitm\: relaying to [0-9\.]+\s+.+") [static, private]

Definition at line 103 of file DsniffTest.py.

tuple __regexResultSshow = re.compile("sshow\: listening on [0-9a-z]+ \[tcp\]\s+.+") [static, private]

Definition at line 106 of file DsniffTest.py.

tuple __regexResultTcpkill = re.compile("[0-9\.]+\:[0-9]+ > [0-9\.]+\:[0-9]+\: R [0-9]+\:[0-9]+\([0-9]+\) win [0-9]+") [static, private]

Definition at line 109 of file DsniffTest.py.

tuple __regexResultTcpnice = re.compile("tcpnice\: write\: Resource temporarily unavailable") [static, private]

Definition at line 112 of file DsniffTest.py.

tuple __regexResultUrlsnarf = re.compile("[a-zA-Z0-9\.]+ - - \[[0-9]{2}/[a-zA-Z]{3}/[0-9]{4}\:[0-9]{2}\:[0-9]{2}\:[0-9]{2} [0-9+]{5}\]") [static, private]

Definition at line 115 of file DsniffTest.py.

tuple __regexResultWebmitm = re.compile("webmitm\: relaying.+\n.+") [static, private]

Definition at line 118 of file DsniffTest.py.

tuple __regexResultWebspy = re.compile("webspy\: listening on [a-z0-9]+\s+.+") [static, private]

Definition at line 121 of file DsniffTest.py.

__command [private]

Definition at line 142 of file DsniffTest.py.


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

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