Package core :: Package controllers :: Package extrusionScanning :: Package server :: Module extrusionServer :: Class extrusionServer
[hide private]
[frames] | no frames]

Class extrusionServer



This class defines a simple server that listens on the current interface for connections made from the extrusionClient.


Author: Andres Riancho ( andres.riancho@gmail.com )

Instance Methods [hide private]
  __init__(self, tcpPortList, udpPortList, host=None, iface=None)
If you don't know whats the IP address used by the remote host ( the one thats running the extrusionClient ) you can just say None and the extrusionServer will try to figure it out.
  canSniff(self)
Determine if the user running w3af can sniff packets on the configured interface.
  sniffAndAnalize(self)
Performs the sniffing
  getResult(self)
  _analyzePackets(self, packetList)
Analyze the packets and return a list of ports that can be used by the remote host to connect back to the extrusionServer.

Method Details [hide private]

__init__(self, tcpPortList, udpPortList, host=None, iface=None)
(Constructor)

 
If you don't know whats the IP address used by the remote host ( the one thats running the extrusionClient ) you can just say None and the extrusionServer will try to figure it out.
Parameters:
  • host - The host from where we expect the connections
  • portList - The portList ( as passed to extrusionClient ) to listen for
  • iface - The interface where scapy is going to listen for packets

canSniff(self)

 
Determine if the user running w3af can sniff packets on the configured interface.

sniffAndAnalize(self)

 
Performs the sniffing

getResult(self)

 
None

_analyzePackets(self, packetList)

 
Analyze the packets and return a list of ports that can be used by the remote host to connect back to the extrusionServer.