> For the complete documentation index, see [llms.txt](https://johnermac.gitbook.io/johnermac/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://johnermac.gitbook.io/johnermac/post-exploitation/data-exfiltration/http/cancel.md).

# Cancel

In Linux, the cancel is a command-line utility used to cancel print jobs that are queued for printing.

## Basic Usage

```
cancel [options] [printer] [job ID(s)]
```

Some commonly used options with the cancel command are:

* `-a` or `--all`: Cancels all print jobs.
* `-h` or `--help`: Displays the help message for the cancel command.
* `-u` or `--user`: Cancels all print jobs for a specific user.

## How to extract files using Cancel

<figure><img src="https://3593245608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkPEBr0Ohu5Y49JHmv4La%2Fuploads%2F1ES4860XF8uNg4mAHBNJ%2Fimage.png?alt=media&amp;token=990a708a-659c-4a66-b20c-b8b1a90729d8" alt=""><figcaption><p>Set a Listener with netcat</p></figcaption></figure>

<figure><img src="https://3593245608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkPEBr0Ohu5Y49JHmv4La%2Fuploads%2Fq4ubkVORJzFEIl7GLScI%2Fimage.png?alt=media&amp;token=faee971b-e709-4b85-bb04-871b83d08dc8" alt=""><figcaption><p>Send the files you want</p></figcaption></figure>

<figure><img src="https://3593245608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkPEBr0Ohu5Y49JHmv4La%2Fuploads%2FnX7PBdJuZYRyrNBRfL09%2Fimage.png?alt=media&amp;token=febc0230-cf5b-4b4c-b88e-7f3bf2a39a4c" alt=""><figcaption><p>PoC</p></figcaption></figure>

<figure><img src="https://3593245608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkPEBr0Ohu5Y49JHmv4La%2Fuploads%2FobiloOvHVBm0cPBidXMK%2Fimage.png?alt=media&amp;token=182c6cc2-7850-49f5-a097-e8a674c337d8" alt=""><figcaption><p>Wireshark results</p></figcaption></figure>
