cobbr / Covenant

Covenant is a collaborative .NET C2 framework for red teamers.

Home Page:https://cobbr.io/Covenant.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Looking for task that consistently crashes a Grunt

jannlemm0913 opened this issue · comments

I am working on a kind of persistence mechanism that starts when a Grunt crashes. Currently, I am crashing the Grunt process manually with a PoC and the persistence mechanism works as desired.

However, I would like to test this in a more "realistic" way, preferably with a task that crashes a Grunt. Searching through the open issues, I haven't found a Grunt crashing task and have not found one myself either. 😄

Does anyone know of a task or a combination of circumstances on the system that consistently crashes a Grunt process? Any help would be appreciated!

It depends on what sort of crash you want to simulate. In most cases, a "crash" would just be the result of an unhandled exception somewhere. You could throw an arbitrary exception in a task by just doing throw new Exception();. However, the Grunt should catch that exception and ensure the process itself doesn't exit. If you just want to simulate the process closing, then Environment.Exit() would do that. Or if you wanted something more fatal, then maybe invoking some sort of memory corruption would be the way to go.

Not related to Covenant per se, so I will close the issue again.