Exemplo n.º 1
0
 public ApiResponse policies(String scanpolicyname, String policyid) throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   map.put("scanPolicyName", scanpolicyname);
   map.put("policyId", policyid);
   return api.callApi("ascan", "view", "policies", map);
 }
Exemplo n.º 2
0
 public ApiResponse removeAllScans(String apikey) throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   return api.callApi("ascan", "action", "removeAllScans", map);
 }
Exemplo n.º 3
0
 public ApiResponse clearExcludedFromScan(String apikey) throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   return api.callApi("ascan", "action", "clearExcludedFromScan", map);
 }
Exemplo n.º 4
0
 public ApiResponse excludeFromScan(String apikey, String regex) throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   map.put("regex", regex);
   return api.callApi("ascan", "action", "excludeFromScan", map);
 }
Exemplo n.º 5
0
 public ApiResponse setOptionThreadPerHost(String apikey, int i) throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   map.put("Integer", Integer.toString(i));
   return api.callApi("ascan", "action", "setOptionThreadPerHost", map);
 }
Exemplo n.º 6
0
 public ApiResponse setEnabledPolicies(String apikey, String ids) throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   map.put("ids", ids);
   return api.callApi("ascan", "action", "setEnabledPolicies", map);
 }
Exemplo n.º 7
0
 public ApiResponse addScanPolicy(String apikey, String scanpolicyname) throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   map.put("scanPolicyName", scanpolicyname);
   return api.callApi("ascan", "action", "addScanPolicy", map);
 }
Exemplo n.º 8
0
 public ApiResponse setOptionAttackPolicy(String apikey, String string) throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   map.put("String", string);
   return api.callApi("ascan", "action", "setOptionAttackPolicy", map);
 }
Exemplo n.º 9
0
 public ApiResponse removeScan(String apikey, String scanid) throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   map.put("scanId", scanid);
   return api.callApi("ascan", "action", "removeScan", map);
 }
Exemplo n.º 10
0
 public ApiResponse setOptionInjectPluginIdInHeader(String apikey, boolean bool)
     throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   map.put("Boolean", Boolean.toString(bool));
   return api.callApi("ascan", "action", "setOptionInjectPluginIdInHeader", map);
 }
Exemplo n.º 11
0
 public ApiResponse setOptionShowAdvancedDialog(String apikey, boolean bool)
     throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   map.put("Boolean", Boolean.toString(bool));
   return api.callApi("ascan", "action", "setOptionShowAdvancedDialog", map);
 }
Exemplo n.º 12
0
 public ApiResponse setOptionPromptToClearFinishedScans(String apikey, boolean bool)
     throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   map.put("Boolean", Boolean.toString(bool));
   return api.callApi("ascan", "action", "setOptionPromptToClearFinishedScans", map);
 }
Exemplo n.º 13
0
 public ApiResponse setScannerAlertThreshold(
     String apikey, String id, String alertthreshold, String scanpolicyname)
     throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   map.put("id", id);
   map.put("alertThreshold", alertthreshold);
   map.put("scanPolicyName", scanpolicyname);
   return api.callApi("ascan", "action", "setScannerAlertThreshold", map);
 }
Exemplo n.º 14
0
 public ApiResponse setScannerAttackStrength(
     String apikey, String id, String attackstrength, String scanpolicyname)
     throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   map.put("id", id);
   map.put("attackStrength", attackstrength);
   map.put("scanPolicyName", scanpolicyname);
   return api.callApi("ascan", "action", "setScannerAttackStrength", map);
 }
Exemplo n.º 15
0
 public ApiResponse scan(
     String apikey,
     String url,
     String recurse,
     String inscopeonly,
     String scanpolicyname,
     String method,
     String postdata)
     throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   map.put("url", url);
   map.put("recurse", recurse);
   map.put("inScopeOnly", inscopeonly);
   map.put("scanPolicyName", scanpolicyname);
   map.put("method", method);
   map.put("postData", postdata);
   return api.callApi("ascan", "action", "scan", map);
 }
Exemplo n.º 16
0
 /**
  * Active Scans from the perspective of a User, obtained using the given Context ID and User ID.
  * See 'scan' action for more details.
  */
 public ApiResponse scanAsUser(
     String apikey,
     String url,
     String contextid,
     String userid,
     String recurse,
     String scanpolicyname,
     String method,
     String postdata)
     throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   if (apikey != null) {
     map.put("apikey", apikey);
   }
   map.put("url", url);
   map.put("contextId", contextid);
   map.put("userId", userid);
   map.put("recurse", recurse);
   map.put("scanPolicyName", scanpolicyname);
   map.put("method", method);
   map.put("postData", postdata);
   return api.callApi("ascan", "action", "scanAsUser", map);
 }
Exemplo n.º 17
0
 public ApiResponse optionPromptInAttackMode() throws ClientApiException {
   Map<String, String> map = null;
   return api.callApi("ascan", "view", "optionPromptInAttackMode", map);
 }
Exemplo n.º 18
0
 public ApiResponse optionMaxScansInUI() throws ClientApiException {
   Map<String, String> map = null;
   return api.callApi("ascan", "view", "optionMaxScansInUI", map);
 }
Exemplo n.º 19
0
 public ApiResponse optionTargetParamsInjectable() throws ClientApiException {
   Map<String, String> map = null;
   return api.callApi("ascan", "view", "optionTargetParamsInjectable", map);
 }
Exemplo n.º 20
0
 public ApiResponse optionShowAdvancedDialog() throws ClientApiException {
   Map<String, String> map = null;
   return api.callApi("ascan", "view", "optionShowAdvancedDialog", map);
 }
Exemplo n.º 21
0
 public ApiResponse optionPromptToClearFinishedScans() throws ClientApiException {
   Map<String, String> map = null;
   return api.callApi("ascan", "view", "optionPromptToClearFinishedScans", map);
 }
Exemplo n.º 22
0
 public ApiResponse alertsIds(String scanid) throws ClientApiException {
   Map<String, String> map = null;
   map = new HashMap<String, String>();
   map.put("scanId", scanid);
   return api.callApi("ascan", "view", "alertsIds", map);
 }
Exemplo n.º 23
0
 public ApiResponse scanPolicyNames() throws ClientApiException {
   Map<String, String> map = null;
   return api.callApi("ascan", "view", "scanPolicyNames", map);
 }
Exemplo n.º 24
0
 public ApiResponse optionAllowAttackOnStart() throws ClientApiException {
   Map<String, String> map = null;
   return api.callApi("ascan", "view", "optionAllowAttackOnStart", map);
 }
Exemplo n.º 25
0
 public ApiResponse optionMaxResultsToList() throws ClientApiException {
   Map<String, String> map = null;
   return api.callApi("ascan", "view", "optionMaxResultsToList", map);
 }
Exemplo n.º 26
0
 public ApiResponse optionInjectPluginIdInHeader() throws ClientApiException {
   Map<String, String> map = null;
   return api.callApi("ascan", "view", "optionInjectPluginIdInHeader", map);
 }
Exemplo n.º 27
0
 public ApiResponse excludedFromScan() throws ClientApiException {
   Map<String, String> map = null;
   return api.callApi("ascan", "view", "excludedFromScan", map);
 }
Exemplo n.º 28
0
 public ApiResponse optionThreadPerHost() throws ClientApiException {
   Map<String, String> map = null;
   return api.callApi("ascan", "view", "optionThreadPerHost", map);
 }
Exemplo n.º 29
0
 public ApiResponse attackModeQueue() throws ClientApiException {
   Map<String, String> map = null;
   return api.callApi("ascan", "view", "attackModeQueue", map);
 }
Exemplo n.º 30
0
 public ApiResponse optionMaxChartTimeInMins() throws ClientApiException {
   Map<String, String> map = null;
   return api.callApi("ascan", "view", "optionMaxChartTimeInMins", map);
 }