Skip to content

Bypass PowerShell constrainged language mode through runspaces.

License

Notifications You must be signed in to change notification settings

Mister-Joe/CLM-Bypass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

CLM-Bypass

Bypass PowerShell (PS) constrainted language mode (CLM) through runspaces.

Overview

Each PS session uses a "runspace." By creating our own runspace with C#, it's possible to bypass the restrictions of CLM and execute any PS commands we want.

Usage

I'd recommend compiling with Visual Studio and at least .NET 3.5. Use a console application template. Edit the source to include the PS command you'd like executed. Execute the compiled executable using your preferred method.

Warnings

You will probably need to manually add the System.Automation.Management.dll to your project.

About

Bypass PowerShell constrainged language mode through runspaces.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages