Skip to content

Commit

Permalink
Update defender.py
Browse files Browse the repository at this point in the history
final patch, added --options help 

Signed-off-by: PJ <byinarie@gmail.com>
  • Loading branch information
byinarie authored Oct 12, 2023
1 parent a5c0058 commit e2556f9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions nxc/modules/defender.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <target> -u <user> -p <password> -M defender -o ACTION=enable
nxc smb <target> -u <user> -p <password> -M defender -o ACTION=disable
nxc smb <target> -id 1 -M defender -o ACTION=enable
nxc smb <target> -id 1 -M defender -o ACTION=disable
'''

if "ACTION" not in module_options:
context.log.fail("ACTION option not specified!")
print(NXCModule.help())
Expand Down

0 comments on commit e2556f9

Please sign in to comment.