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

Class clientlessReverseHTTP




This is a class that defines how to send a file to a remote server using a locally hosted webserver, the remote end uses "wget" or some other command like that to fetch the file. Supported commands:

Instance Methods [hide private]
  __init__(self, execMethod, os, inboundPort)
  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, inboundPort)
(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