> ## 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.

# execute_pe

> Converted from Markdown to MDX

<Note>
  Artifacts Generated: Process Create, Process Inject, Process Kill
</Note>

## Summary

Execute a statically compiled PE file (e.g., compiled with /MT) with the specified arguments. This PE must first be cached in the agent using the `register_file` command before being executed.

<Note>
  Executables must be compiled for the architecture of the machine. e.g., if Apollo is running on a 64-bit machine, compile the executable for x64.
</Note>

This is based on the work put forward by Nettitude's [RunPE](https://github.com/nettitude/RunPE) project with modifications.

### Arguments

<img src="https://mintlify.s3.us-west-1.amazonaws.com/specteropsdocs/mythic-agents/apollo-docs/documentation-payload/apollo/images/execute_pe.png" alt="exepe" />

#### PE

The name of the assembly to execute. This must match the file name used with `register_file`.

#### Arguments (optional)

Arguments to pass to the assembly.

## Usage

```
execute_pe -PE [pe_name] -Arguments [arguments]
execute_pe [pe_name] [arguments]
```

Example

```
execute_pe -PE SpoolSample.exe -Arguments "127.0.0.1 127.0.0.1"
execute_pe SpoolSample.exe 127.0.0.1 127.0.0.1
```

## MITRE ATT\&CK Mapping

* T1547

### Resources

* [RunPE](https://github.com/nettitude/RunPE)
