burpsuite kaleido

Kaleido网络流量转发工具。

0.1.0094 2018-09-29 10:25 UTC

This package is not auto-updated.

Last update: 2024-09-21 13:52:35 UTC


README

Kaleido网络流量转发工具(api-gateway)。
** 需要进行更多测试和改进,请勿使用。 **

功能

  • 支持GET、POST、PUT、DELETE、PATCH、SEARCH等更多请求方法。
  • 支持添加/删除/修改HTTP头部(请求/响应)。
  • 支持回放请求(当前)/响应(历史)。
  • 支持添加/删除/修改Cookies(请求/响应)。
  • 支持使用正则表达式修改请求URL。
  • 支持使用正则表达式添加/删除/修改请求体(请求/响应)。
  • 支持Patch请求/响应JSON体(不支持JSONP)。
  • 支持捕获请求和响应。
  • 支持远程服务器状态码响应。
  • 支持响应体大小限制(以字节为单位)。
  • 支持使用正则表达式添加/删除/修改请求参数。
  • 支持允许/拒绝显示远程服务器状态码。
  • ...

安装

composer install burpsuite/kaleido

{
  "require": {
    "burpsuite/kaleido": "^0.1.0090"
  }
}

HTTP

用法

$dispatcher = FastRoute\simpleDispatcher(function(FastRoute\RouteCollector $r) {
    $r->addRoute(
        ['GET', 'POST', 'PUT', 'HEAD', 'OPTIONS', 'PATCH', 'SEARCH', 'DELETE'],
        '/kaleido/{taskId:[0-9a-f\-]+}/{url:[\w\:\/\-\.\_\%]+\??}{param:.*}',
        ['Kaleido\Http\Loader', 'listenHttp']
    );
    $r->addRoute(
        'GET', '/kaleido/{activity:\w+}/{objectId:\w+}',
        ['Kaleido\Http\Loader', 'replayHttp']
    );
});

加载器

{
  "loadType": "remote",
  "loadInfo": {
    "loadData": "https:///kaleido_v3.json",
    "loadCache": {
      "type": "dynamic",
      "data": "redis_url",
      "interval": 86400
    }
  }
}

捕获

{
  "capType": "leancloud",
  "leancloud": {
    "appId": "pTPoK9Q7jGyTFpNXXXXXXXX-MdYXbMMI",
    "appKey": "uiTYApLfNDXXXXXXXXxEUTNx",
    "masterKey": "okrmXcXXXXXXXXUfKI7xzmUt",
    "apiServer": "https://us-api.leancloud.cn",
    "className": "TrafficCapture"
  }
}

示例

[
  {
    "desc": "httpbin",
    "host": ["http://httpbin.org", "https://httpbin.org"],
    "method": ["get", "post", "put"],
    "handle": {
      "request": {
        "check_hostname": true,
        "check_method": true,
        "fix_urlencode": true,
        "enable_header": true,
        "enable_cookie": true,
        "maxSize": 250000,
        "url": {},
        "url_param": {},
        "form_param": {},
        "body": {},
        "body_patch": {},
        "cookie": {},
        "header": {
          "Cookie": null
        }
      },
      "response": {
        "allow_error": true,
        "enable_header": true,
        "enable_cookie": true,
        "body": {},
        "body_patch": {},
        "cookie": {},
        "header": {
          "Connection": null,
          "Transfer-Encoding": null,
          "Content-Length": null,
          "Access-Control-Allow-Origin": "*"
        }
      }
    }
  }
]

套接字

即将推出

  • 支持套接字(react/socket)。
  • 支持流(react/stream)。
  • 支持标签替换。
  • 支持捕获到Redis。
  • 支持更多异常处理。
  • ...