Package ZenUtils :: Module PortScan :: Class Scanner
[hide private]
[frames] | no frames]

Class Scanner

source code

object --+
         |
        Scanner

Instance Methods [hide private]
 
__init__(self, hosts, portRange=(1, 10000), portList=[], queueCount=50, timeout=30)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
prepare(self)
The use of DeferredSemaphore() here allows us to control the number of deferreds (and therefore connections) created at once, thus providing a way for systems to use the script efficiently.
source code
 
run(self) source code
 
doFactory(self, host, port) source code
 
recordConnection(self, result, host, port) source code
 
recordFailure(self, failure, host, port) source code
 
finishRun(self, result=None) source code
 
printResults(self) source code
 
getSuccesses(self) source code
 
getFailures(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, hosts, portRange=(1, 10000), portList=[], queueCount=50, timeout=30)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)