TestDsniffTest Class Reference

List of all members.


Detailed Description

Test cases for testing functionality of the DsniffTest module.

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

Definition at line 77 of file TestDsniffTest.py.


Public Member Functions

def addResult
 Dummy callback method (needed by test modules).
def setUp
 Create temporary directory for storing created log files.
def tearDown
 Remove temporary log file directory including files stored in it.
def testInit
 Test initialization of DsniffTest module.
def testRunArpspoof
 Test running arpspoof with DsniffTest module.
def testRunArpspoofError
 Test causing error while starting arpspoof with DsniffTest module.
def testRunDnsspoof
 Test running dnsspoof with DsniffTest module.
def testRunDnsspoofError
 Test causing error while starting dnsspoof with DsniffTest module.
def testRunDsniff
 Test running dsniff with DsniffTest module.
def testRunDsniffError
 Test causing error while starting dsniff with DsniffTest module.
def testRunFilesnarf
 Test running filesnarf with DsniffTest module.
def testRunFilesnarfError
 Test causing error while starting filesnarf with DsniffTest module.
def testRunMacof
 Test running macof with DsniffTest module.
def testRunMacofError
 Test causing error while starting macof with DsniffTest module.
def testRunMailsnarf
 Test running mailsnarf with DsniffTest module.
def testRunMailsnarfError
 Test causing error while starting mailsnarf with DsniffTest module.
def testRunMsgsnarf
 Test running msgsnarf with DsniffTest module.
def testRunMsgsnarfError
 Test causing error while starting msgsnarf with DsniffTest module.
def testRunSshmitm
 Test running sshmitm with DsniffTest module.
def testRunSshmitmError
 Test causing error while starting sshmitm with DsniffTest module.
def testRunSshow
 Test running sshow with DsniffTest module.
def testRunSshowError
 Test causing error while starting sshow with DsniffTest module.
def testRunTcpkill
 Test running tcpkill with DsniffTest module.
def testRunTcpkillError
 Test causing error while starting tcpkill with DsniffTest module.
def testRunTcpnice
 Test running tcpnice with DsniffTest module.
def testRunTcpniceError
 Test causing error while starting tcpnice with DsniffTest module.
def testRunUrlsnarf
 Test running urlsnarf with DsniffTest module.
def testRunUrlsnarfError
 Test causing error while starting urlsnarf with DsniffTest module.
def testRunWebmitm
 Test running webmitm with DsniffTest module.
def testRunWebmitmError
 Test causing error while starting webmitm with DsniffTest module.
def testRunWebspy
 Test running webspy with DsniffTest module.
def testRunWebspyError
 Test causing error while starting webspy with DsniffTest module.

Private Attributes

 __logFilePath

Static Private Attributes

 __result = None
string __logFilePath = ""
string __dsniffPath = "tools"
string __webServer = "192.168.1.100"
int __proxyPort = 8118
string __netInterface = "wlan0"

Member Function Documentation

def addResult (   self,
  result 
)

Dummy callback method (needed by test modules).

Parameters:
result the result of the test (testenv.core.TestResult)

Definition at line 105 of file TestDsniffTest.py.

def setUp (   self  ) 

Create temporary directory for storing created log files.

Definition at line 114 of file TestDsniffTest.py.

def tearDown (   self  ) 

Remove temporary log file directory including files stored in it.

Definition at line 123 of file TestDsniffTest.py.

def testInit (   self  ) 

Test initialization of DsniffTest module.

Definition at line 135 of file TestDsniffTest.py.

def testRunArpspoof (   self  ) 

Test running arpspoof with DsniffTest module.

Definition at line 143 of file TestDsniffTest.py.

def testRunArpspoofError (   self  ) 

Test causing error while starting arpspoof with DsniffTest module.

Definition at line 173 of file TestDsniffTest.py.

def testRunDnsspoof (   self  ) 

Test running dnsspoof with DsniffTest module.

Definition at line 203 of file TestDsniffTest.py.

def testRunDnsspoofError (   self  ) 

Test causing error while starting dnsspoof with DsniffTest module.

Definition at line 239 of file TestDsniffTest.py.

def testRunDsniff (   self  ) 

Test running dsniff with DsniffTest module.

Definition at line 269 of file TestDsniffTest.py.

def testRunDsniffError (   self  ) 

Test causing error while starting dsniff with DsniffTest module.

Definition at line 299 of file TestDsniffTest.py.

def testRunFilesnarf (   self  ) 

Test running filesnarf with DsniffTest module.

Definition at line 329 of file TestDsniffTest.py.

def testRunFilesnarfError (   self  ) 

Test causing error while starting filesnarf with DsniffTest module.

Definition at line 359 of file TestDsniffTest.py.

def testRunMacof (   self  ) 

Test running macof with DsniffTest module.

Definition at line 389 of file TestDsniffTest.py.

def testRunMacofError (   self  ) 

Test causing error while starting macof with DsniffTest module.

Definition at line 419 of file TestDsniffTest.py.

def testRunMailsnarf (   self  ) 

Test running mailsnarf with DsniffTest module.

Definition at line 449 of file TestDsniffTest.py.

def testRunMailsnarfError (   self  ) 

Test causing error while starting mailsnarf with DsniffTest module.

Definition at line 479 of file TestDsniffTest.py.

def testRunMsgsnarf (   self  ) 

Test running msgsnarf with DsniffTest module.

Definition at line 509 of file TestDsniffTest.py.

def testRunMsgsnarfError (   self  ) 

Test causing error while starting msgsnarf with DsniffTest module.

Definition at line 539 of file TestDsniffTest.py.

def testRunSshmitm (   self  ) 

Test running sshmitm with DsniffTest module.

Definition at line 569 of file TestDsniffTest.py.

def testRunSshmitmError (   self  ) 

Test causing error while starting sshmitm with DsniffTest module.

Definition at line 599 of file TestDsniffTest.py.

def testRunSshow (   self  ) 

Test running sshow with DsniffTest module.

Definition at line 629 of file TestDsniffTest.py.

def testRunSshowError (   self  ) 

Test causing error while starting sshow with DsniffTest module.

Definition at line 659 of file TestDsniffTest.py.

def testRunTcpkill (   self  ) 

Test running tcpkill with DsniffTest module.

Definition at line 689 of file TestDsniffTest.py.

def testRunTcpkillError (   self  ) 

Test causing error while starting tcpkill with DsniffTest module.

Definition at line 725 of file TestDsniffTest.py.

def testRunTcpnice (   self  ) 

Test running tcpnice with DsniffTest module.

Definition at line 755 of file TestDsniffTest.py.

def testRunTcpniceError (   self  ) 

Test causing error while starting tcpnice with DsniffTest module.

Definition at line 791 of file TestDsniffTest.py.

def testRunUrlsnarf (   self  ) 

Test running urlsnarf with DsniffTest module.

Definition at line 821 of file TestDsniffTest.py.

def testRunUrlsnarfError (   self  ) 

Test causing error while starting urlsnarf with DsniffTest module.

Definition at line 857 of file TestDsniffTest.py.

def testRunWebmitm (   self  ) 

Test running webmitm with DsniffTest module.

Definition at line 887 of file TestDsniffTest.py.

def testRunWebmitmError (   self  ) 

Test causing error while starting webmitm with DsniffTest module.

Definition at line 917 of file TestDsniffTest.py.

def testRunWebspy (   self  ) 

Test running webspy with DsniffTest module.

Definition at line 947 of file TestDsniffTest.py.

def testRunWebspyError (   self  ) 

Test causing error while starting webspy with DsniffTest module.

Definition at line 977 of file TestDsniffTest.py.


Member Data Documentation

__result = None [static, private]

Definition at line 80 of file TestDsniffTest.py.

string __logFilePath = "" [static, private]

Definition at line 83 of file TestDsniffTest.py.

string __dsniffPath = "tools" [static, private]

Definition at line 86 of file TestDsniffTest.py.

string __webServer = "192.168.1.100" [static, private]

Definition at line 89 of file TestDsniffTest.py.

int __proxyPort = 8118 [static, private]

Definition at line 92 of file TestDsniffTest.py.

string __netInterface = "wlan0" [static, private]

Definition at line 95 of file TestDsniffTest.py.

__logFilePath [private]

Definition at line 115 of file TestDsniffTest.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