Files
Pennyw0rth-NetExec/nxc/modules/shadowcoerce.py
T
2025-08-19 13:27:32 -04:00

25 lines
947 B
Python

from nxc.helpers.misc import CATEGORY
class NXCModule:
name = "shadowcoerce"
description = "[REMOVED] Module to check if the target is vulnerable to ShadowCoerce, credit to @Shutdown and @topotam"
supported_protocols = ["smb"]
category = CATEGORY.ENUMERATION
def options(self, context, module_options):
"""
IPSC Use IsPathShadowCopied (default: False). ex. IPSC=true
LISTENER Listener IP address (default: 127.0.0.1)
"""
self.ipsc = False
self.listener = "127.0.0.1"
if "LISTENER" in module_options:
self.listener = module_options["LISTENER"]
if "IPSC" in module_options:
# Any string that's not empty can be casted to bool True
self.ipsc = bool(module_options["IPSC"])
def on_login(self, context, connection):
context.log.fail('[REMOVED] This module moved to the new module "coerce_plus"')