Constructor
new Scan(options, scanStruct)
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | Error, warning and debug function references |
scanStruct |
Object | JS structure to process |
- Source:
Members
args :String
Scan args meta default
Type:
- String
- Source:
(readonly) attrib :Object
Provides default `attrib` property to ensure node processing, always returns
current meta values
Type:
- Object
- Source:
attrib
Continues node walking recursion through the current attrib node
- Source:
(readonly) data :Object
Returns all processed data, including child data, of the this scan
Type:
- Object
- Source:
(readonly) debugging :Number
Provides default `debugging` property to ensure node processing, will return
default or newly set value
Type:
- Number
- Source:
debugging
Applies the new value for `debugging`
- Source:
debuggingLevel :String
Scan debugging level meta default
Type:
- String
- Source:
down :Number
Scan stats host count default
Type:
- Number
- Source:
elapsed :Number
Scan stats elapsed time meta default
Type:
- Number
- Source:
exit :String
Scan stats exit info meta default
Type:
- String
- Source:
(readonly) host :Array
Provides default `host` property to ensure node processing, will return
default or newly set value
Type:
- Array
- Source:
host
Loops through the provided hosts array node and creates Host children for
further processing
- Source:
hosts :Array
Scanned hosts object
Type:
- Array
- Source:
(readonly) meta :Object
Returns all current scan meta values
Type:
- Object
- Source:
numservices :Number
Scan service count meta default
Type:
- Number
- Source:
options :Object
Merge default options with given options
Type:
- Object
- Source:
protocol :String
Scan protocol meta default
Type:
- String
- Source:
(readonly) runstats :Object
Returns all current scan run stats meta values
Type:
- Object
- Source:
runstats
Continues node walking recursion through the current runstats node
- Source:
(readonly) scaninfo :Object
Returns all current scan info meta values
Type:
- Object
- Source:
scaninfo
Continues node walking recursion through the current scaninfo node
- Source:
scanner :String
Scan type meta default
Type:
- String
- Source:
services :String
Scan ports meta default
Type:
- String
- Source:
start :Number
Scan start time unix meta default
Type:
- Number
- Source:
startstr :String
Scan start time plain meta default
Type:
- String
- Source:
summary :String
Scan stats summary meta default
Type:
- String
- Source:
time :Number
Scan stats stats finished time meta default
Type:
- Number
- Source:
timestr :String
Scan stats stats finished time as string meta default
Type:
- String
- Source:
total :Number
Scan stats host count default
Type:
- Number
- Source:
type :String
Scan type meta default
Type:
- String
- Source:
up :Number
Scan stats host count default
Type:
- Number
- Source:
(readonly) verbose :Number
Provides default `verbose` property to ensure node processing, will return
default or newly set value
Type:
- Number
- Source:
verbose
Applies the new value for `verbosityLevel`
- Source:
verbosityLevel :String
Scan verbosity level meta default
Type:
- String
- Source:
version :Number
Scanner version meta default
Type:
- Number
- Source:
xmloutputversion :String
Scanner output xml version meta default
Type:
- String
- Source:
Methods
parseStruct(curStruct)
Recursive parsing function, sets the value of this classes properties (if
it exists), or calls the proper processing function, or builds required
child classes for further processing
Parameters:
Name | Type | Description |
---|---|---|
curStruct |
Object | Current node being processed |
- Source: