Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asreproast module error #263

Closed
jedai47 opened this issue Apr 18, 2024 · 1 comment · Fixed by #271
Closed

asreproast module error #263

jedai47 opened this issue Apr 18, 2024 · 1 comment · Fixed by #271
Labels
bug Something isn't working

Comments

@jedai47
Copy link

jedai47 commented Apr 18, 2024

netexec ldap 163.172.230.75 -u 'pentest' -p 'Pent3st123!' --asreproast as.out
SMB         163.172.230.75  445    DC-ASREPROAST    [*] Windows 10 / Server 2019 Build 17763 x64 (name:DC-ASREPROAST) (domain:ROOTME.local) (signing:True) (SMBv1:False)
LDAP        163.172.230.75  389    DC-ASREPROAST    [+] ROOTME.local\pentest:Pent3st123!
LDAP        163.172.230.75  389    DC-ASREPROAST    [*] Total of records returned 187
LDAP        163.172.230.75  389    DC-ASREPROAST    False
[14:40:33] ERROR    Exception while calling proto_flow() on target 163.172.230.75: unsupported operand type(s) for +: 'bool' and 'str'                            connection.py:127
                    ╭──────────────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────────────╮
                    │ /Users/walid/.local/pipx/venvs/netexec/lib/python3.12/site-packages/nxc/connection.py:122 in __init__                                     │
                    │                                                                                                                                           │
                    │   119 │   │   │   sleep(value)                                                                                                            │
                    │   120 │   │                                                                                                                               │
                    │   121 │   │   try:                                                                                                                        │
                    │ ❱ 122 │   │   │   self.proto_flow()                                                                                                       │
                    │   123 │   │   except Exception as e:                                                                                                      │
                    │   124 │   │   │   if "ERROR_DEPENDENT_SERVICES_RUNNING" in str(e):                                                                        │
                    │   125 │   │   │   │   self.logger.error(f"Exception while calling proto_flow() on target                                                  │
                    │       {self.host}: {e}")                                                                                                                  │
                    │                                                                                                                                           │
                    │ /Users/walid/.local/pipx/venvs/netexec/lib/python3.12/site-packages/nxc/connection.py:180 in proto_flow                                   │
                    │                                                                                                                                           │
                    │   177 │   │   │   │   │   self.call_modules()                                                                                             │
                    │   178 │   │   │   │   else:                                                                                                               │
                    │   179 │   │   │   │   │   self.logger.debug("Calling command arguments")                                                                  │
                    │ ❱ 180 │   │   │   │   │   self.call_cmd_args()                                                                                            │
                    │   181 │                                                                                                                                   │
                    │   182 │   def call_cmd_args(self):                                                                                                        │
                    │   183 │   │   """Calls all the methods specified by the command line arguments                                                            │
                    │                                                                                                                                           │
                    │ /Users/walid/.local/pipx/venvs/netexec/lib/python3.12/site-packages/nxc/connection.py:201 in call_cmd_args                                │
                    │                                                                                                                                           │
                    │   198 │   │   for attr, value in vars(self.args).items():                                                                                 │
                    │   199 │   │   │   if hasattr(self, attr) and callable(getattr(self, attr)) and value is not                                               │
                    │       False and value is not None:                                                                                                        │
                    │   200 │   │   │   │   self.logger.debug(f"Calling {attr}()")                                                                              │
                    │ ❱ 201 │   │   │   │   getattr(self, attr)()                                                                                               │
                    │   202 │                                                                                                                                   │
                    │   203 │   def call_modules(self):                                                                                                         │
                    │   204 │   │   """Calls modules and performs various actions based on the module's attributes.                                             │
                    │                                                                                                                                           │
                    │ /Users/walid/.local/pipx/venvs/netexec/lib/python3.12/site-packages/nxc/protocols/ldap.py:936 in asreproast                               │
                    │                                                                                                                                           │
                    │    933 │   │   │   │   │   hash_TGT = KerberosAttacks(self).get_tgt_asroast(user[0])                                                      │
                    │    934 │   │   │   │   │   self.logger.highlight(f"{hash_TGT}")                                                                           │
                    │    935 │   │   │   │   │   with open(self.args.asreproast, "a+") as hash_asreproast:                                                      │
                    │ ❱  936 │   │   │   │   │   │   hash_asreproast.write(hash_TGT + "\n")                                                                     │
                    │    937 │   │   │   │   return True                                                                                                        │
                    │    938 │   │   │   else:                                                                                                                  │
                    │    939 │   │   │   │   self.logger.highlight("No entries found!")                                                                         │
                    ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
                    TypeError: unsupported operand type(s) for +: 'bool' and 'str'

EDIT by @NeffIsBack: Formatted

@NeffIsBack NeffIsBack added the bug Something isn't working label Apr 18, 2024
@NeffIsBack
Copy link
Contributor

Can you provide the debug output? You can enable debug mode with nxc --debug smb...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants