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

Class extrusionScanner



This class is a wrapper that performs this process:


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

Instance Methods [hide private]
  __init__(self, execMethod, forceReRun=False, tcpPortList=[25,80,53,1433,8080], udpPortList=[53,69,139,1025])
  _getRemoteId(self)
Runs some commands on the remote host, concatenates outputs and creates a hash of the results.
  isAvailable(self, port, proto)
  estimateScanTime(self)
  getInboundPort(self, desiredProtocol='TCP')
Performs the process
  _sendExtrusionClient(self)
  _exec(self, command)
A wrapper for executing commands
  canScan(self)
  _selectExtrusionClient(self)
This method selects the extrusion client to use based on the remote OS and some other factors like:
  _execExtrusionClient(self, interpreter, remoteFilename)

Method Details [hide private]

__init__(self, execMethod, forceReRun=False, tcpPortList=[25,80,53,1433,8080], udpPortList=[53,69,139,1025])
(Constructor)

 
Parameters:
  • execMethod - The execMethod used to execute commands on the remote host
  • forceReRun - If forceReRun is True, the extrusion scanner won't fetch the results from the KB

_getRemoteId(self)

 
Runs some commands on the remote host, concatenates outputs and creates a hash of the results. This will be an unique identifier for the host.

isAvailable(self, port, proto)

 
None

estimateScanTime(self)

 
None

getInboundPort(self, desiredProtocol='TCP')

 
Performs the process

_sendExtrusionClient(self)

 
None

_exec(self, command)

 
A wrapper for executing commands

canScan(self)

 
None

_selectExtrusionClient(self)

 
This method selects the extrusion client to use based on the remote OS and some other factors like:
  • is python installed ?
  • is perl installed ?
  • is phpcli installed ?
  • bash sockets ?
  • gcc compiler ?

_execExtrusionClient(self, interpreter, remoteFilename)

 
None