Open mlinton opened 5 years ago
I am getting the same error (not running in virtualenv):
UserEnum LDAP Ping POC - Reino Mostert/SensePost 2018
[*] Starting ...
Traceback (most recent call last):
File "UserEnum_LDAP.py", line 126, in
I solve the issue by installing asn1tools 0.100.0
root@plaintext:/opt/UserEnum# python UserEnum_LDAP.py 192.168.26.141 test.local userslist.txt
UserEnum LDAP Ping POC - Reino Mostert/SensePost 2018
[*] Starting ...
Traceback (most recent call last):
File "UserEnum_LDAP.py", line 126, in <module>
encoded = request_asn.encode('LDAPMessage3',message)
File "/usr/local/lib/python2.7/dist-packages/asn1tools/compiler.py", line 133, in encode
type_.check_types(data)
File "/usr/local/lib/python2.7/dist-packages/asn1tools/codecs/compiler.py", line 91, in check_types
return self.type_checker.encode(data)
File "/usr/local/lib/python2.7/dist-packages/asn1tools/codecs/type_checker.py", line 249, in encode
self._type.encode(data)
File "/usr/local/lib/python2.7/dist-packages/asn1tools/codecs/type_checker.py", line 146, in encode
member.encode(data[name])
File "/usr/local/lib/python2.7/dist-packages/asn1tools/codecs/type_checker.py", line 146, in encode
member.encode(data[name])
File "/usr/local/lib/python2.7/dist-packages/asn1tools/codecs/type_checker.py", line 45, in encode
data))
asn1tools.codecs.EncodeError: protocolOp: typesOnly: Expected data of type bool, but got 0.
root@plaintext:/opt/UserEnum# pip install asn1tools==0.100.0
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of p
ip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting asn1tools==0.100.0
Downloading https://files.pythonhosted.org/packages/31/69/403217e31261cdbc2ba11520419dbcf6228d5450c8877c1336b80090b9c0/asn1tools-0.100.0-py2.py3-none-any.whl (60kB)
|████████████████████████████████| 61kB 346kB/s
Requirement already satisfied: bitstruct in /usr/local/lib/python2.7/dist-packages (from asn1tools==0.100.0) (8.0.0)
Requirement already satisfied: pyparsing>=2.2.0 in /usr/lib/python2.7/dist-packages (from asn1tools==0.100.0) (2.2.0)
Requirement already satisfied: prompt-toolkit in /usr/local/lib/python2.7/dist-packages (from asn1tools==0.100.0) (2.0.9)
Requirement already satisfied: six>=1.9.0 in /usr/lib/python2.7/dist-packages (from prompt-toolkit->asn1tools==0.100.0) (1.12.0)
Requirement already satisfied: wcwidth in /usr/local/lib/python2.7/dist-packages (from prompt-toolkit->asn1tools==0.100.0) (0.1.7)
Installing collected packages: asn1tools
Found existing installation: asn1tools 0.128.0
Uninstalling asn1tools-0.128.0:
Successfully uninstalled asn1tools-0.128.0
Successfully installed asn1tools-0.100.0
root@plaintext:/opt/UserEnum# python UserEnum_LDAP.py 192.168.26.141 test.local userslist.txt
UserEnum LDAP Ping POC - Reino Mostert/SensePost 2018
[*] Starting ...
[+] Administrator exist
[*] Done
pip install asn1tools==0.100.0
works!
installed the requirements.txt within an virtualenv, when I go to run the UserEnum_LDAP.py I get an error:
Here are the modules installed: