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

Class basePayloadTransfer




This is a base class for doing payload transfers.

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

Method Details [hide private]

__init__(self, execMethod, os)
(Constructor)

 
None

_exec(self, command)

 
A wrapper for executing commands

canTransfer(self)

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

estimateTransferTime(self, size)

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

getSpeed(self)

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

transfer(self, strObject, destination)

 
This method is used to transfer the strObject from w3af to the compromised server,