> For the complete documentation index, see [llms.txt](https://documentation.hak5.org/packet-squirrel-mark-ii/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.hak5.org/packet-squirrel-mark-ii/getting-started/configuring-payloads.md).

# 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="/files/CSx1AFdZXWTk5X8jNPMG" alt=""><figcaption><p>Configuring a payload in the Packet Squirrel web UI</p></figcaption></figure>
