question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RecursionError: maximum recursion depth exceeded

See original GitHub issue

Describe the bug Playing with Cascade machine on hackthebox, I want to try your tools. ps: I root the box,

To Reproduce

./activeDirectoryEnum.py -u arksvc@cascade.local -o outputfile --no-creds 10.10.10.182
[huge amount of error repeated errors]
Traceback (most recent call last):
  File "./activeDirectoryEnum.py", line 799, in <module>
    enumAD = EnumAD(args.dc, args.secure, file_to_write, args.smb, args.bloodhound, args.kerberos_preauth, args.spn, args.user)
  File "./activeDirectoryEnum.py", line 75, in __init__
    self.runWithoutCreds()
  File "./activeDirectoryEnum.py", line 122, in runWithoutCreds
    self.search()
  File "./activeDirectoryEnum.py", line 177, in search
    self.conn.search(self.dc_string[:-1], '(&(sAMAccountType=805306369)(!(UserAccountControl:1.2.840.113556.1.4.803:=2)))', attributes=self.ldapProps, search_scope=SUBTREE)
  File "/home/m1/.local/lib/python3.8/site-packages/ldap3/core/connection.py", line 782, in search
    response = self.post_send_search(self.send('searchRequest', request, controls))
  File "/home/m1/.local/lib/python3.8/site-packages/ldap3/strategy/sync.py", line 139, in post_send_search
    responses, result = self.get_response(message_id)
  File "/home/m1/.local/lib/python3.8/site-packages/ldap3/strategy/base.py", line 352, in get_response
    ref_response, ref_result = self.do_operation_on_referral(self._outstanding[message_id], responses[-2]['referrals'])
  File "/home/m1/.local/lib/python3.8/site-packages/ldap3/strategy/base.py", line 762, in do_operation_on_referral
    referral_connection.search(selected_referral['base'] or request['base'],
  File "/home/m1/.local/lib/python3.8/site-packages/ldap3/core/connection.py", line 782, in search
    response = self.post_send_search(self.send('searchRequest', request, controls))
  File "/home/m1/.local/lib/python3.8/site-packages/ldap3/strategy/sync.py", line 139, in post_send_search
    responses, result = self.get_response(message_id)
  File "/home/m1/.local/lib/python3.8/site-packages/ldap3/strategy/base.py", line 352, in get_response
    ref_response, ref_result = self.do_operation_on_referral(self._outstanding[message_id], responses[-2]['referrals'])
  File "/home/m1/.local/lib/python3.8/site-packages/ldap3/strategy/base.py", line 762, in do_operation_on_referral
    referral_connection.search(selected_referral['base'] or request['base'],

The output file is not created, so i don’t really know where it’s crashing…

Expected behavior Some output, and no error 😃

  • OS: archlinux
  • version : Just git clone 1 hour ago

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kalidorcommented, May 3, 2020

As you suggested, using cascade.local instead of IP works like a charm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the maximum recursion depth in Python, and how to ...
It works up to n=997 , then it just breaks and spits out a RecursionError: maximum recursion depth exceeded in comparison . Is...
Read more >
Python maximum recursion depth exceeded in comparison
The “maximum recursion depth exceeded in comparison” error is raised when you try to execute a function that exceeds Python's built in recursion...
Read more >
Python: Maximum Recursion Depth Exceeded [How to Fix It]
This error says it all—maximum recursion depth exceeded in comparison. This tells you that Python's recursion depth limit of 1000 is reached.
Read more >
Python RecursionError: Maximum Recursion Depth Exceeded ...
A Python RecursionError exception is raised when the execution of your program exceeds the recursion limit of the Python interpreter.
Read more >
Python | Handling recursion limit - GeeksforGeeks
When you execute a recursive function in Python on a large input ( > 10^4), you might encounter a “maximum recursion depth exceeded...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found