> ## Documentation Index
> Fetch the complete documentation index at: https://docs.specterops.io/llms.txt
> Use this file to discover all available pages before exploring further.

# listtasks

## Summary

Obtain a list of processes with obtainable task ports on macOS. This command should be used to determine target processes for the libinject command.

* Needs Admin: True
* Version: 1
* Author: @xorrior, @Morpheus\_\_\_\_\_\_

### Arguments

## Usage

```
listtasks
```

## MITRE ATT\&CK Mapping

* T1057

## Detailed Summary

This command uses the `processor_set_tasks` and `pid_for_task` APIs to enumerate all available process tasks. This command should be used to identify target processes for the libinject command.
