public class ScannerParam extends AbstractParam
Modifier and Type | Field and Description |
---|---|
static int |
RPC_CUSTOM |
static int |
RPC_DWR |
static int |
RPC_GWT |
static int |
RPC_JSON |
static int |
RPC_MULTIPART |
static int |
RPC_ODATA |
static int |
RPC_USERDEF |
static int |
RPC_XML |
static int |
TARGET_COOKIE |
static int |
TARGET_ENABLED_RPC_DEFAULT |
static int |
TARGET_HTTPHEADERS |
static int |
TARGET_INJECTABLE_DEFAULT |
static int |
TARGET_POSTDATA |
static int |
TARGET_QUERYSTRING |
static int |
TARGET_URLPATH |
Constructor and Description |
---|
ScannerParam() |
Modifier and Type | Method and Description |
---|---|
String |
getAttackPolicy() |
String |
getDefaultPolicy() |
int |
getDelayInMs() |
List<ScannerParamFilter> |
getExcludedParamList() |
List<ScannerParamFilter> |
getExcludedParamList(int paramType) |
boolean |
getHandleAntiCSRFTokens() |
int |
getHostPerScan() |
int |
getMaxChartTimeInMins() |
int |
getMaxResultsToList() |
int |
getMaxRuleDurationInMins() |
int |
getMaxScanDurationInMins() |
int |
getMaxScansInUI() |
int |
getTargetParamsEnabledRPC() |
int |
getTargetParamsInjectable() |
int |
getThreadPerHost() |
boolean |
isAddQueryParam()
Tells whether ZAP should add a parameter to GET requests that don't have one.
|
boolean |
isAllowAttackOnStart() |
boolean |
isInjectPluginIdInHeader() |
boolean |
isPromptInAttackMode() |
boolean |
isPromptToClearFinishedScans() |
boolean |
isRescanInAttackMode() |
boolean |
isScanHeadersAllRequests()
Tells whether or not the HTTP Headers of all requests should be scanned, not just requests
that send parameters, through the query or request body.
|
boolean |
isScanNullJsonValues()
Tells whether or not the active scanner should scan null JSON values.
|
boolean |
isShowAdvancedDialog() |
protected void |
parse()
Parses the configurations.
|
void |
setAddQueryParam(boolean addQueryParam)
Sets whether or not ZAP should add a parameter to GET requests that don't have one.
|
void |
setAllowAttackOnStart(boolean allowAttackOnStart) |
void |
setAttackPolicy(String attackPolicy) |
void |
setDefaultPolicy(String defaultPolicy) |
void |
setDelayInMs(int delayInMs) |
void |
setExcludedParamList(List<ScannerParamFilter> filters) |
void |
setHandleAntiCSRFTokens(boolean handleAntiCSRFTokens) |
void |
setHostPerScan(int hostPerScan) |
void |
setInjectPluginIdInHeader(boolean injectPluginIdInHeader) |
void |
setMaxChartTimeInMins(int maxChartTimeInMins) |
void |
setMaxResultsToList(int maxResultsToList) |
void |
setMaxRuleDurationInMins(int maxRuleDurationInMins) |
void |
setMaxScanDurationInMins(int maxScanDurationInMins) |
void |
setMaxScansInUI(int maxScansInUI) |
void |
setPromptInAttackMode(boolean promptInAttackMode) |
void |
setPromptToClearFinishedScans(boolean promptToClearFinishedScans) |
void |
setRescanInAttackMode(boolean rescanInAttackMode) |
void |
setScanHeadersAllRequests(boolean scanAllRequests)
Sets whether or not the HTTP Headers of all requests should be scanned, not just requests
that send parameters, through the query or request body.
|
void |
setScanNullJsonValues(boolean scan)
Sets whether or not the active scanner should scan null JSON values.
|
void |
setShowAdvancedDialog(boolean showAdvancedDialog) |
void |
setTargetParamsEnabledRPC(int targetParamsEnabledRPC) |
void |
setTargetParamsInjectable(int targetParamsInjectable) |
void |
setThreadPerHost(int threadPerHost) |
clone, getBoolean, getConfig, getInt, getInteger, getString, load, load, load, logConversionException, reset
public static final int TARGET_QUERYSTRING
public static final int TARGET_POSTDATA
public static final int TARGET_COOKIE
public static final int TARGET_HTTPHEADERS
public static final int TARGET_URLPATH
public static final int RPC_MULTIPART
public static final int RPC_XML
public static final int RPC_JSON
public static final int RPC_GWT
public static final int RPC_ODATA
public static final int RPC_DWR
public static final int RPC_CUSTOM
public static final int RPC_USERDEF
public static final int TARGET_INJECTABLE_DEFAULT
public static final int TARGET_ENABLED_RPC_DEFAULT
protected void parse()
AbstractParam
Called each time the configurations are loaded.
parse
in class AbstractParam
AbstractParam.getConfig()
public List<ScannerParamFilter> getExcludedParamList()
public List<ScannerParamFilter> getExcludedParamList(int paramType)
public void setExcludedParamList(List<ScannerParamFilter> filters)
filters
- public int getThreadPerHost()
public void setThreadPerHost(int threadPerHost)
threadPerHost
- public int getHostPerScan()
public void setHostPerScan(int hostPerScan)
hostPerScan
- The thread to set.public int getMaxResultsToList()
public void setMaxResultsToList(int maxResultsToList)
maxResultsToList
- public int getMaxRuleDurationInMins()
public void setMaxRuleDurationInMins(int maxRuleDurationInMins)
public int getMaxScanDurationInMins()
public void setMaxScanDurationInMins(int maxScanDurationInMins)
public void setDelayInMs(int delayInMs)
delayInMs
- public int getDelayInMs()
public boolean isInjectPluginIdInHeader()
public void setInjectPluginIdInHeader(boolean injectPluginIdInHeader)
injectPluginIdInHeader
- public boolean getHandleAntiCSRFTokens()
public void setHandleAntiCSRFTokens(boolean handleAntiCSRFTokens)
handleAntiCSRFTokens
- public boolean isRescanInAttackMode()
public void setRescanInAttackMode(boolean rescanInAttackMode)
public boolean isPromptInAttackMode()
public void setPromptInAttackMode(boolean promptInAttackMode)
public int getTargetParamsInjectable()
public void setTargetParamsInjectable(int targetParamsInjectable)
targetParamsInjectable
- public int getTargetParamsEnabledRPC()
public void setTargetParamsEnabledRPC(int targetParamsEnabledRPC)
targetParamsEnabledRPC
- public boolean isPromptToClearFinishedScans()
public void setPromptToClearFinishedScans(boolean promptToClearFinishedScans)
public int getMaxScansInUI()
public void setMaxScansInUI(int maxScansInUI)
public boolean isShowAdvancedDialog()
public void setShowAdvancedDialog(boolean showAdvancedDialog)
public String getDefaultPolicy()
public String getAttackPolicy()
public void setDefaultPolicy(String defaultPolicy)
public void setAttackPolicy(String attackPolicy)
public boolean isAllowAttackOnStart()
public void setAllowAttackOnStart(boolean allowAttackOnStart)
public int getMaxChartTimeInMins()
public void setMaxChartTimeInMins(int maxChartTimeInMins)
public boolean isScanHeadersAllRequests()
true
if the HTTP Headers of all requests should be scanned, false
otherwisesetScanHeadersAllRequests(boolean)
public void setScanHeadersAllRequests(boolean scanAllRequests)
scanAllRequests
- true
if the HTTP Headers of all requests should be scanned,
false
otherwiseisScanHeadersAllRequests()
public boolean isAddQueryParam()
true
if a GET parameter should be added, false
otherwisesetAddQueryParam(boolean)
public void setAddQueryParam(boolean addQueryParam)
addQueryParam
- true
if ZAP should add a parameter to GET requests that don't
have one, false
otherwiseisAddQueryParam()
public boolean isScanNullJsonValues()
true
if null values should be scanned, false
otherwise.setScanNullJsonValues(boolean)
public void setScanNullJsonValues(boolean scan)
scan
- true
if null values should be scanned, false
otherwise.isScanNullJsonValues()
,
VariantJSONQuery.setScanNullValues(boolean)