Skip to content

Commit 1fe2240

Browse files
committed
Remove return values and add module options text
1 parent c5bb5a2 commit 1fe2240

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

nxc/modules/enum_ca.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ class NXCModule:
2323

2424
name = "enum_ca"
2525
description = "Anonymously uses RPC endpoints to hunt for ADCS CAs"
26-
supported_protocols = ["smb"] # Example: ['smb', 'mssql']
26+
supported_protocols = ["smb"]
2727

2828
def __init__(self, context=None, module_options=None):
2929
self.context = context
3030
self.module_options = module_options
3131

3232
def options(self, context, module_options):
33-
pass
33+
"""No options available"""
3434

3535
def on_login(self, context, connection):
3636
self.__username = connection.username
@@ -78,7 +78,7 @@ def on_login(self, context, connection):
7878
RPC_PROXY_CONN_A1_0X6BA_ERR in error_text:
7979
context.log.fail("This usually means the target does not allow "
8080
"to connect to its epmapper using RpcProxy.")
81-
return False
81+
return
8282

8383
for entry in entries:
8484
tmpUUID = str(entry["tower"]["Floors"][0])
@@ -96,7 +96,7 @@ def on_login(self, context, connection):
9696
context.log.highlight("Web enrollment found on HTTP (ESC8).")
9797
except requests.RequestException as e:
9898
context.log.debug(e)
99-
return None
99+
return
100100

101101
def __fetchList(self, doKerberos, rpctransport):
102102
dce = rpctransport.get_dce_rpc()

0 commit comments

Comments
 (0)