Closed ghost closed 4 years ago
Can you check again ?
Make sure you use latest binary for cme
https://github.com/byt3bl33d3r/CrackMapExec/actions/runs/153377014
I just had to update my operating system and reinstall Crackmapexec, sorry for the inconvenience and thank you very much
Ok nice, thanks for the update :)
cme ldap [ip] -u users.txt -p '' --asreproast output.txt [0/0] LDAP 10.10.10.161 389 FOREST [] Windows Server 2016 Standard 14393 x64 (name:FOREST) (domain:htb.local) (signing:True) (SMBv1:True)
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "/usr/local/lib/python3.8/dist-packages/crackmapexec-5.1.0.dev0-py3.8.egg/cme/protocols/ldap.py", line 39, in init connection.init(self, args, db, host) File "/usr/local/lib/python3.8/dist-packages/crackmapexec-5.1.0.dev0-py3.8.egg/cme/connection.py", line 47, in init self.proto_flow()
File "/usr/local/lib/python3.8/dist-packages/crackmapexec-5.1.0.dev0-py3.8.egg/cme/connection.py", line 82, in proto_flow
if self.login():
File "/usr/local/lib/python3.8/dist-packages/crackmapexec-5.1.0.dev0-py3.8.egg/cme/connection.py", line 251, in login if self.plaintext_login(self.domain, user, password): return True
File "/usr/local/lib/python3.8/dist-packages/crackmapexec-5.1.0.dev0-py3.8.egg/cme/protocols/ldap.py", line 184, in plaintext_login
self.ldapConnection = ldapimpacket.LDAPConnection('ldap://%s' % target, self.baseDN, self.kdcHost)
File "/home/intrusionz3r0/.local/lib/python3.8/site-packages/impacket/ldap/ldap.py", line 107, in init
af, socktype, proto, , sa = socket.getaddrinfo(targetHost, self._dstPort, 0, socket.SOCK_STREAM)[0]
File "/usr/lib/python3/dist-packages/gevent/_socketcommon.py", line 212, in getaddrinfo addrlist = get_hub().resolver.getaddrinfo(host, port, family, type, proto, flags) File "/usr/lib/python3/dist-packages/gevent/resolver/thread.py", line 65, in getaddrinfo return self.pool.apply(_socket.getaddrinfo, args, kwargs)
File "/usr/lib/python3/dist-packages/gevent/pool.py", line 159, in apply return self.spawn(func, args, **kwds).get()
File "src/gevent/event.py", line 268, in gevent._event.AsyncResult.get
File "src/gevent/event.py", line 296, in gevent._event.AsyncResult.get File "src/gevent/event.py", line 286, in gevent._event.AsyncResult.get
File "src/gevent/event.py", line 266, in gevent._event.AsyncResult._raise_exception File "src/gevent/event.py", line 211, in gevent._event.AsyncResult.exc_info.get
File "/usr/lib/python3/dist-packages/gevent/_tblib.py", line 371, in g
return f(a)
File "/usr/lib/python3/dist-packages/gevent/_tblib.py", line 432, in load_traceback return loads(s) File "/usr/lib/python3/dist-packages/gevent/_tblib.py", line 337, in unpickle_traceback return ret.as_traceback()
File "/usr/lib/python3/dist-packages/gevent/_tblib.py", line 202, in as_traceback
code = CodeType(
TypeError: an integer is required (got type bytes)
2020-06-30T18:17:03Z <Greenlet at 0x7f90a8e019d0: ldap(Namespace(admin_count=False, aesKey=None, asreproa, <protocol.database object at 0x7f90a8e9c550>, '10.10.10.161')> failed with TypeError