Skip to content

Commit 11d484b

Browse files
authored
Merge pull request Pennyw0rth#788 from Pennyw0rth/opsec
2 parents 8f973b1 + b250395 commit 11d484b

121 files changed

Lines changed: 2 additions & 134 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

nxc/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
audit_mode = nxc_config.get("nxc", "audit_mode", fallback=False)
3737
reveal_chars_of_pwd = int(nxc_config.get("nxc", "reveal_chars_of_pwd", fallback=0))
3838
config_log = nxc_config.getboolean("nxc", "log_mode", fallback=False)
39-
ignore_opsec = nxc_config.getboolean("nxc", "ignore_opsec", fallback=False)
4039
host_info_colors = literal_eval(nxc_config.get("nxc", "host_info_colors", fallback=["green", "red", "yellow", "cyan"]))
4140

4241

nxc/data/nxc.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pwn3d_label = Pwn3d!
55
audit_mode =
66
reveal_chars_of_pwd = 0
77
log_mode = False
8-
ignore_opsec = True
98
host_info_colors = ["green", "red", "yellow", "cyan"]
109

1110
[BloodHound]

nxc/loaders/moduleloader.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ def module_is_sane(self, module, module_path):
3333
elif not hasattr(module, "supported_protocols"):
3434
self.logger.fail(f"{module_path} missing the supported_protocols variable")
3535
module_error = True
36-
elif not hasattr(module, "opsec_safe"):
37-
self.logger.fail(f"{module_path} missing the opsec_safe variable")
38-
module_error = True
3936
elif not hasattr(module, "multiple_hosts"):
4037
self.logger.fail(f"{module_path} missing the multiple_hosts variable")
4138
module_error = True
@@ -98,7 +95,6 @@ def get_module_info(self, module_path):
9895
"description": module_spec.description,
9996
"options": module_spec.options.__doc__,
10097
"supported_protocols": module_spec.supported_protocols,
101-
"opsec_safe": module_spec.opsec_safe,
10298
"multiple_hosts": module_spec.multiple_hosts,
10399
"requires_admin": bool(hasattr(module_spec, "on_admin_login") and callable(module_spec.on_admin_login)),
104100
}

nxc/modules/adcs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class NXCModule:
1313
name = "adcs"
1414
description = "Find PKI Enrollment Services in Active Directory and Certificate Templates Names"
1515
supported_protocols = ["ldap"]
16-
opsec_safe = True
1716
multiple_hosts = True
1817

1918
def __init__(self, context=None, module_options=None):

nxc/modules/add-computer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class NXCModule:
1616
name = "add-computer"
1717
description = "Adds or deletes a domain computer"
1818
supported_protocols = ["smb"]
19-
opsec_safe = True
2019
multiple_hosts = False
2120

2221
def options(self, context, module_options):

nxc/modules/aws-credentials.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class NXCModule:
88
name = "aws-credentials"
99
description = "Search for aws credentials files."
1010
supported_protocols = ["ssh", "smb", "winrm"]
11-
opsec_safe = True
1211
multiple_hosts = True
1312

1413
def __init__(self):

nxc/modules/backup_operator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class NXCModule:
1313
name = "backup_operator"
1414
description = "Exploit user in backup operator group to dump NTDS @mpgn_x64"
1515
supported_protocols = ["smb"]
16-
opsec_safe = True
1716
multiple_hosts = True
1817

1918
def __init__(self, context=None, module_options=None):

nxc/modules/badsuccessor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ class NXCModule:
7979
name = "badsuccessor"
8080
description = "Check if vulnerable to bad successor attack (DMSA)"
8181
supported_protocols = ["ldap"]
82-
opsec_safe = True
8382
multiple_hosts = True
8483

8584
def __init__(self):

nxc/modules/bitlocker.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class NXCModule:
99
name = "bitlocker"
1010
description = "Enumerating BitLocker Status on target(s) If it is enabled or disabled."
1111
supported_protocols = ["smb", "wmi"]
12-
opsec_safe = True
1312
multiple_hosts = True
1413

1514
def __init__(self, context=None, module_options=None):

nxc/modules/change-password.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class NXCModule:
1212
name = "change-password"
1313
description = "Change or reset user passwords via various protocols"
1414
supported_protocols = ["smb"]
15-
opsec_safe = True
1615
multiple_hosts = False
1716

1817
def options(self, context, module_options):

0 commit comments

Comments
 (0)