> For the complete documentation index, see [llms.txt](https://documentation.hak5.org/signal-owl/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/signal-owl/payload-development/the-c2exfil-command.md).

# The C2EXFIL Command

To exfiltrate arbitrary files from the device to Cloud C2 there is a convenient C2EXFIL tool.

### C2EXFIL USAGE EXAMPLES:

C2EXFIL (optional)"STRING" (required)\<PATH> (optional) \<PAYLOAD SOURCE>

#### **1 REQUIRED ARGUMENT**

* &#x20;file path

#### **2 OPTIONAL ARGUMENTS**

* (always first arg if given) STRIING flag - tells Cloud C2 this file contains text and allow viewing in Cloud C2 web interface.
* (always last arg if given) \<Payload Source> - name of the payload this file came from.

### ***EXAMPLE USAGE:***

**C2EXFIL STRING /tmp/somefile.txt PayloadXYZ**

* STRING - send a file containing text&#x20;
* /tmp/somefile.txt - filepath
* PayloadXYZ

**C2EXFIL STRING /tmp/somefile.txt**

* STRING - send a file containing text&#x20;
* /tmp/somefile.txt - filepath
* (Undefined Payload Source)

**C2EXFIL /tmp/somefile.txt**

* /tmp/somefile.txt - filepath

**C2EXFIL /tmp/somefile.txt PayloadXYZ**

* /tmp/somefile.txt - filepath
* PayloadXYZ
