cs_shellcode_injector

Description

This script generates an obfuscated C# shellcode injector with optional AMSI bypass, targeting a specified .NET Framework version and output type.

Overview

This script retrieves a C# shellcode injector, applies multiple obfuscation techniques, and compiles it with the specified .NET Framework version and output type. The AMSI bypass technique can be customized to evade detection.

Parameters

Name Type Description
AmsiBypassTechnique SpecterInsight.Obfuscation.CSharp.AstTransforms.Bypasses.Techniques.CSharpAmsiBypassTechnique Specifies the AMSI bypass technique to apply.
OutputType SpecterInsight.Obfuscation.CSharp.OutputTransforms.CSharpCompilerTarget] Specifies the compilation output type (e.g., Console, DLL).
FrameworkVersion SpecterInsight.Obfuscation.CSharp.OutputTransforms.CSharpCompilerFrameworkVersion Specifies the .NET Framework version to target (e.g., Dotnet2, Dotnet4).
Scroll to Top