public class ActiveScan extends Scanner implements GenericScanner2, ScannerListener
Modifier and Type | Class and Description |
---|---|
static class |
ActiveScan.State |
ALERTS_POSTFIX, ASCAN_RULE_PREFIX, ASCAN_SCAN_STARTED_STATS, ASCAN_SCAN_STOPPED_STATS, ASCAN_SCAN_TIME_STATS, ASCAN_URLS_STATS, SKIPPED_POSTFIX, STARTED_POSTFIX, TIME_POSTFIX, URLS_POSTFIX
Constructor and Description |
---|
ActiveScan(String displayName,
ScannerParam scannerParam,
ConnectionParam param,
ScanPolicy scanPolicy)
Deprecated.
|
ActiveScan(String displayName,
ScannerParam scannerParam,
ConnectionParam param,
ScanPolicy scanPolicy,
RuleConfigParam ruleConfigParam) |
Modifier and Type | Method and Description |
---|---|
void |
alertFound(Alert alert) |
void |
filteredMessage(HttpMessage msg,
String reason)
Added to notify reason for filtering message from scanning.
|
List<Integer> |
getAlertsIds()
Returns the IDs of all alerts raised during the scan.
|
String |
getDisplayName() |
DefaultListModel<HistoryReference> |
getList() |
int |
getMaximum() |
List<Integer> |
getMessagesIds()
Returns the IDs of all messages sent/created during the scan.
|
ActiveScanTableModel |
getMessagesTableModel() |
int |
getProgress() |
ResponseCountSnapshot |
getRequestHistory() |
int |
getScanId() |
SiteNode |
getStartNode() |
ActiveScan.State |
getState() |
Date |
getTimeFinished() |
Date |
getTimeStarted() |
int |
getTotalNewAlerts() |
int |
getTotalRequests() |
void |
hostComplete(int id,
String hostAndPort) |
void |
hostNewScan(int id,
String hostAndPort,
HostProcess hostThread) |
void |
hostProgress(int id,
String hostAndPort,
String msg,
int percentage) |
boolean |
isRunning() |
boolean |
isStopped() |
void |
notifyNewMessage(HttpMessage msg) |
void |
pauseScan() |
void |
reset() |
void |
resumeScan() |
void |
scannerComplete(int id) |
void |
setDisplayName(String name) |
void |
setScanId(int id) |
void |
setStartNode(SiteNode startNode) |
void |
start(Target target) |
void |
stopScan() |
void |
updatePluginRequestCounts()
Deprecated.
(2.5.0) No longer used/needed, the request count is automatically
updated/maintained by
HostProcess . |
addScanFilter, addScannerHook, addScannerListener, addScriptCollection, getHostProcesses, getId, getJustScanInScope, getScannerHooks, getScriptCollections, getTechSet, isInScope, isPaused, isStop, pause, removerScannerHook, removeScannerListener, resume, run, scan, scanChildren, setExcludeList, setId, setJustScanInScope, setScanChildren, setScannerParam, setScanPolicy, setTechSet, setUser, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isPaused
@Deprecated public ActiveScan(String displayName, ScannerParam scannerParam, ConnectionParam param, ScanPolicy scanPolicy)
public ActiveScan(String displayName, ScannerParam scannerParam, ConnectionParam param, ScanPolicy scanPolicy, RuleConfigParam ruleConfigParam)
public int getMaximum()
getMaximum
in interface GenericScanner2
public int getProgress()
getProgress
in interface GenericScanner2
public boolean isRunning()
isRunning
in interface GenericScanner2
public boolean isStopped()
isStopped
in interface GenericScanner2
public void pauseScan()
pauseScan
in interface GenericScanner2
public int getTotalRequests()
public int getTotalNewAlerts()
public ResponseCountSnapshot getRequestHistory()
public void stopScan()
stopScan
in interface GenericScanner2
public void resumeScan()
resumeScan
in interface GenericScanner2
public void alertFound(Alert alert)
alertFound
in interface ScannerListener
public void hostComplete(int id, String hostAndPort)
hostComplete
in interface ScannerListener
public void hostNewScan(int id, String hostAndPort, HostProcess hostThread)
hostNewScan
in interface ScannerListener
public void hostProgress(int id, String hostAndPort, String msg, int percentage)
hostProgress
in interface ScannerListener
public void filteredMessage(HttpMessage msg, String reason)
ScannerListener
filteredMessage
in interface ScannerListener
@Deprecated public void updatePluginRequestCounts()
HostProcess
.public void scannerComplete(int id)
scannerComplete
in interface ScannerListener
public DefaultListModel<HistoryReference> getList()
public ActiveScanTableModel getMessagesTableModel()
public void notifyNewMessage(HttpMessage msg)
notifyNewMessage
in interface ScannerListener
notifyNewMessage
in class Scanner
public SiteNode getStartNode()
getStartNode
in class Scanner
public void setStartNode(SiteNode startNode)
setStartNode
in class Scanner
public void reset()
public Date getTimeStarted()
public Date getTimeFinished()
public List<Integer> getMessagesIds()
Note: Iterations must be synchronized
on returned object. Failing
to do so might result in ConcurrentModificationException
.
HistoryReference
,
ConcurrentModificationException
public List<Integer> getAlertsIds()
Note: Iterations must be synchronized
on returned object. Failing
to do so might result in ConcurrentModificationException
.
ConcurrentModificationException
public ActiveScan.State getState()
public void setDisplayName(String name)
setDisplayName
in interface GenericScanner2
public String getDisplayName()
getDisplayName
in interface GenericScanner2
public void setScanId(int id)
setScanId
in interface GenericScanner2
public int getScanId()
getScanId
in interface GenericScanner2