From e2556f9fdb3ef6cf60a5ba5f13baaa807d976b73 Mon Sep 17 00:00:00 2001 From: PJ Date: Wed, 11 Oct 2023 19:50:34 -0500 Subject: [PATCH] Update defender.py final patch, added --options help Signed-off-by: PJ --- nxc/modules/defender.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nxc/modules/defender.py b/nxc/modules/defender.py index 1736af4a9..e6a67d916 100644 --- a/nxc/modules/defender.py +++ b/nxc/modules/defender.py @@ -66,6 +66,22 @@ def __init__(self, context=None, module_options=None): self.method = "smb" def options(self, context, module_options): + ''' + Name: defender by @byinarie + Description: Enables/Disables Windows Defender + Supported Protocols: smb + + Options: + ACTION Enable/Disable Windows Defender (choices: enable, disable) + + Usage: + nxc smb -u -p -M defender -o ACTION=enable + nxc smb -u -p -M defender -o ACTION=disable + + nxc smb -id 1 -M defender -o ACTION=enable + nxc smb -id 1 -M defender -o ACTION=disable + ''' + if "ACTION" not in module_options: context.log.fail("ACTION option not specified!") print(NXCModule.help())