GhostPack / Seatbelt

Seatbelt is a C# project that performs a number of security oriented host-survey "safety checks" relevant from both offensive and defensive security perspectives.
Other
3.74k stars 685 forks source link

Functionality to exclude specific commands from group #103

Closed mgeeky closed 2 years ago

mgeeky commented 2 years ago

Hi!

This PR adds a simple logic to exclude specified commands from being run while group syntax is used.

Syntax:

Seatbelt.exe -group=all -AuditPolicies

Will run ALL commands except to AuditPolicies.

Use case is when for some reason Seatbelt stops execution upon reaching specific command and we insist on grabbing output of entire commands group.

Hope you'll like it.

HarmJ0y commented 2 years ago

Thanks! Landed.