|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.importer.analysis.AAnalyserStartOperation
verinec.importer.analysis.scanner.StartScan
public class StartScan
Starts the port scan operations for all hosts that should be scanned.
The constant SYNCHRONOUS_HOST_SCAN defines the number of
parallel scans to execute. The starter creates as many threads, which will poll
the starter for hosts to scan.
The starter filters the host names according to the configuration panel, to avoid scanning external hosts.
If no hosts should be scanned, nothing will be done. (Scanning is finished immediately.)
| Nested Class Summary | |
|---|---|
static class |
StartScan.ConfigPanel
Configuration panel for the port scanner. |
| Field Summary | |
|---|---|
private StartScan.ConfigPanel |
configuration
The configurations panel |
static int |
LINUX
Nmap for linux should be launched. |
private Logger |
logger
|
private Iterator |
scanIterGetElement
The iterator to get the host for the scanns |
static int |
SYNCHRONOUS_HOST_SCAN
Constant to determine the number of parallel scans. |
static int |
WINDOWS
Nmap for windows should be launched. |
| Fields inherited from class verinec.importer.analysis.AAnalyserStartOperation |
|---|
analyser |
| Constructor Summary | |
|---|---|
StartScan(HostCommRenderer host)
Implement operation to launch a portscan against one host. |
|
StartScan(StartScan.ConfigPanel conf,
AnalysisThread analysis,
Collection hosts)
Implement operation to launch portscan threads for the found hosts. |
|
| Method Summary | |
|---|---|
static int |
determineOS()
Determine the host os id. |
HostCommRenderer |
getNextHost()
Get a host to scan. |
void |
scan()
This method will create a HostScanThread for each host to scan and wait for them to finish. |
void |
updateState()
Update the acutal state of progress. |
| Methods inherited from class verinec.importer.analysis.AAnalyserStartOperation |
|---|
abortOperation, getThread, joinThreads, printMessage, setThread, startThreads |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int WINDOWS
public static final int LINUX
private Logger logger
public static final int SYNCHRONOUS_HOST_SCAN
private StartScan.ConfigPanel configuration
private Iterator scanIterGetElement
| Constructor Detail |
|---|
public StartScan(StartScan.ConfigPanel conf,
AnalysisThread analysis,
Collection hosts)
throws VerinecException
conf - The configuration dialog with the settings.analysis - The main application object.hosts - A list of all found hosts.
VerinecException - If VerinecStudio can not be found.
public StartScan(HostCommRenderer host)
throws VerinecException
host - A list of all found hosts.
VerinecException - If VerinecStudio can not be found.| Method Detail |
|---|
public void scan()
public void updateState()
public HostCommRenderer getNextHost()
public static int determineOS()
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||