Package core :: Package controllers :: Package payloadTransfer :: Module echoLnx :: Class echoLnx
[hide private]
[frames] | no frames]

Class echoLnx




This is a class that defines how to send a file to a remote server using the "echo" command.

Instance Methods [hide private]
  __init__(self, execMethod, os)
  canTransfer(self)
This method is used to test if the transfer method works as expected.
  estimateTransferTime(self, size)
  transfer(self, strObject, destination)
This method is used to transfer the strObject from w3af to the compromised server.
  getSpeed(self)

Method Details [hide private]

__init__(self, execMethod, os)
(Constructor)

 
None
Overrides: basePayloadTransfer.basePayloadTransfer.__init__

canTransfer(self)

 
This method is used to test if the transfer method works as expected. The implementation of this should transfer 10 bytes and check if they arrived as expected to the other end.
Overrides: basePayloadTransfer.basePayloadTransfer.canTransfer

estimateTransferTime(self, size)

 
Returns:
An estimated transfer time for a file with the specified size.
Overrides: basePayloadTransfer.basePayloadTransfer.estimateTransferTime

transfer(self, strObject, destination)

 
This method is used to transfer the strObject from w3af to the compromised server.
Overrides: basePayloadTransfer.basePayloadTransfer.transfer

getSpeed(self)

 
Returns:
The transfer speed of the transfer object. It should return a number between 100 (fast) and 1 (slow)
Overrides: basePayloadTransfer.basePayloadTransfer.getSpeed