Active Cyber Defence Tools

免费增值
通过 srcport.com | 已更新 a month ago | Cybersecurity
人气

8 / 10

延迟

22,077ms

服务等级

86%

Health Check

100%

README

Srcport.com API

The srcport.com API hosts a wide range of active cyber security tools for testing online targets.

Request Format

To interact with the API, make a POST request to the endpoint /api/capabilities/[module]/execute where [module] is the name of the tool you want to use.

Configuration of the payload is done through the request body. Here’s a quick examples:

{
    "prompt": "example.com",
    "options": {
        "dns_record": "txt"
    },
    "config": {
         "crawl_target": true,
        "delay_sec": 0.1,
        "disable_cache": false,
        "https_target": true,
        "threads": 5,
        "timeout_sec": 120,
        "verify_https": false
    }
}

There are typically 2 main fields:

  1. The prompt field is typically set to the target of the scan, e.g. “example.com” or “https://example.com”,
  2. The options field is used to configure the exact execution of the tool, in the case above there is only one options parameter called timeout which is set to 1s. The available options and parameters will be documented on the API endpoint page as well as listed in the schema.
  3. The config field sets various global properties that control the speed and intensity of the scan.

Note that the config and options must have some value set. If there are available options for the request you must specify a value for each otherwise the request will fail.

Success Response Format

The response will always be delivered as a JSON object with a 200 status code. You will receive a results object containing the

{
  "results": {
    "http": {
      "url": "http://example.com",
      "code": 200,
      "unreachable": false
    },
    "https": {
      "url": "https://example.com",
      "code": 200,
      "unreachable": false
    }
  }
}

The structure of the results object will differ between each tool, if you want to explore the tool outputs in more detail, visit https://srcport.com to see the API being used in action.

Error Response Format

The response will always be delivered as a string with a non-200 HTTP status code, for example:

"Invalid option 6s in request, must be: [1s 3s 5s 10s 30s 1m]"

You should always check the HTTP response code returned by the server before attempting to access the results.

The result string will always be a user-friendly error intended to be shown to the user providing details of what error has occured.

关注者:0
资源:
产品网站 使用条款
API 创建者:
Rapid account: Srcport Com
srcport.com
srcport
登录并给 API 打分
打分:5 - 投票:1