PHP code example of burpsuite / kaleido

1. Go to this page and download the library: Download burpsuite/kaleido library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

burpsuite / kaleido example snippets


$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']
    );
});