public class ScriptsPassiveScanner extends PluginPassiveScanner
PluginPassiveScanner.AlertBuilder
Constructor and Description |
---|
ScriptsPassiveScanner() |
Modifier and Type | Method and Description |
---|---|
void |
addTag(String tag)
Adds the given tag to the message being passive scanned.
|
boolean |
appliesToHistoryType(int historyType) |
String |
getName() |
int |
getPluginId()
Returns the ID of the plug-in.
|
PluginPassiveScanner.AlertBuilder |
newAlert()
Returns a new alert builder.
|
void |
raiseAlert(int risk,
int confidence,
String name,
String description,
String uri,
String param,
String attack,
String otherInfo,
String solution,
String evidence,
int cweId,
int wascId,
HttpMessage msg)
Deprecated.
(2.9.0) Use
newAlert() to build and raise
alerts. |
void |
raiseAlert(int risk,
int confidence,
String name,
String description,
String uri,
String param,
String attack,
String otherInfo,
String solution,
String evidence,
String reference,
int cweId,
int wascId,
HttpMessage msg)
Deprecated.
(2.9.0) Use
newAlert() to build and raise
alerts. |
void |
scanHttpResponseReceive(HttpMessage msg,
int id,
net.htmlparser.jericho.Source source) |
getAlertTags, getAlertThreshold, getAlertThreshold, getConfig, getDefaultHistoryTypes, getExampleAlerts, getHelper, getLevel, getLevel, getStatus, loadFrom, save, saveTo, setAlertThreshold, setConfig, setDefaultAlertThreshold, setDefaultLevel, setLevel, setParent, setStatus
equals, hashCode, isEnabled, setEnabled
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isEnabled, scanHttpRequestSend, setEnabled
public String getName()
public int getPluginId()
PluginPassiveScanner
getPluginId
in class PluginPassiveScanner
public void scanHttpResponseReceive(HttpMessage msg, int id, net.htmlparser.jericho.Source source)
public PluginPassiveScanner.AlertBuilder newAlert()
PluginPassiveScanner
By default the alert builder sets the following fields of the alert:
PluginPassiveScanner.getPluginId()
PassiveScanner.getName()
PluginPassiveScanner.getAlertTags()
newAlert
in class PluginPassiveScanner
@Deprecated public void raiseAlert(int risk, int confidence, String name, String description, String uri, String param, String attack, String otherInfo, String solution, String evidence, int cweId, int wascId, HttpMessage msg)
newAlert()
to build and raise
alerts.@Deprecated public void raiseAlert(int risk, int confidence, String name, String description, String uri, String param, String attack, String otherInfo, String solution, String evidence, String reference, int cweId, int wascId, HttpMessage msg)
newAlert()
to build and raise
alerts.public void addTag(String tag)
PluginPassiveScanner
addTag
in class PluginPassiveScanner
tag
- the name of the tag.public boolean appliesToHistoryType(int historyType)
appliesToHistoryType
in interface PassiveScanner
appliesToHistoryType
in class PluginPassiveScanner