# Configuring payloads

Complex payloads often have configuration options to tune behavior.

Configuration variables are found at the top of the payload.  Well-formed payloads will document the payload options in comments; for example:

```bash
#!/bin/bash

# Title: Printer Capture
#
# Description: Capture PCL IP printer jobs with a dynamic proxy 

# Do we automatically exfiltrate to Cloud C2?  Uncomment to send files to your 
# CloudC2 server automatically
# 
# USE_C2=1

# By default, C2WATCHDIR removes files after they're sent.  To keep them, uncomment 
# C2_KEEP_FILES below
# 
# C2_KEEP_FILES=1

```

## Editing payloads

Payloads can be edited in the Packet Squirrel web UI, via `ssh`, or downloaded, edited, and re-uploaded using either the Packet Squirrel web UI or `scp`.

<figure><img src="https://932701053-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F520JUF2JxB2RMXztRVAV%2Fuploads%2FeZ8s4aLGk9BEcedYEXUu%2FScreenshot%20from%202023-03-07%2012-28-35.png?alt=media&#x26;token=03c9c4a9-0d29-4e7a-ad85-540633473715" alt=""><figcaption><p>Configuring a payload in the Packet Squirrel web UI</p></figcaption></figure>
