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

# inline_assembly

> Converted from Markdown to MDX

## Summary

Execute a .NET Framework assembly in-process with the specified arguments. This assembly must first be cached in the agent using the `register_assembly` command before being executed.

<Note>This command does not patch Environment.Exit, and as a result, should the assembly call this function, the agent itself will exit.</Note>

### Arguments

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

#### Assembly

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

```
inline_assembly -Assembly [assembly_name] -Arguments [arguments]
inline_assembly [assembly_name] [arguments]
```

Example

```
inline_assembly SeatBelt.exe --groups=all
```

## MITRE ATT\&CK Mapping

* T1547

## Special Thanks

Mayllart submitted the initial PR for this module. You can find him on his socials here:

| Social               | Handle                                                                 |
| -------------------- | ---------------------------------------------------------------------- |
| Github               | [https://github.com/thiagomayllart](https://github.com/thiagomayllart) |
| Twitter              | [@thiagomayllart](https://twitter.com/thiagomayllart)                  |
| BloodHoundGang Slack | @Mayllart                                                              |
