Skip to content

Using Environment Variables in Replay

When testing targets using Replay, you can easily switch context by leveraging your custom environments and associated variables.

Creating Environment Variables

To create a new environment and define its variables, navigate to the Environment interface in Caido.

Environment interface.

To define a new variable, click on the + Add button. A new variable row will be added to the table.

Next, click on the pencil icon to edit it.

Editing an environment variable.

Once you have made the desired edits, click the floppy disk icon to save the variable.

Saving an environment variable.

Then, depending on if the environment is new or existing, click on either the Create or Update button in the bottom left corner of the pane.

Create button for environment variable.Update button for environment.

Inserting an Environment Variable

With a defined environment variable, navigate to the Replay interface. Within a request editing pane, click, hold, and drag the left mouse button over the value you want to be replaced and then click the + button to add it as a placeholder.

Adding a placeholder in a Replay request.

Next, click the edit button located to the right of the placeholder. Doing so will present the Placeholder Settings window. Select Environment Variable from the top dropdown menu. Then, select the desired environment variable by name from the other dropdown menu. Click on the Add button to save the configuration. The addition will be reflected in the list of Active preprocessors.

Adding an environment variable to a Replay request.

Close the settings window and send the request. To verify the addition was successful, you can view the request by navigating to the Search interface.

Viewing the Replay request environment variable addition.