Hey Guys,
The topic is # Finding ASREPRoastable Accounts
When I run
crackmapexec ldap dc01.inlanefreight.htb -u users.txt -p ' ' --asreproast asreproast.out
I receive an error
SMB dc01.inlanefreight.htb 445 DC01 [*] Windows 10.0 Build 17763 x64 (name:DC01) (domain:inlanefreight.htb) (signing:True) (SMBv1:False)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/impacket/krb5/kerberosv5.py", line 61, in sendReceive
af, socktype, proto, canonname, sa = socket.getaddrinfo(targetHost, 88, 0, socket.SOCK_STREAM)[0]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/crackmapexec", line 8, in <module>
sys.exit(main())
File "/usr/lib/python3/dist-packages/cme/crackmapexec.py", line 257, in main
asyncio.run(
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/usr/lib/python3/dist-packages/cme/crackmapexec.py", line 105, in start_threadpool
await asyncio.gather(*jobs)
File "/usr/lib/python3/dist-packages/cme/crackmapexec.py", line 69, in run_protocol
await asyncio.wait_for(
File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
return await fut
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3/dist-packages/cme/protocols/ldap.py", line 82, in __init__
connection.__init__(self, args, db, host)
File "/usr/lib/python3/dist-packages/cme/connection.py", line 65, in __init__
self.proto_flow()
File "/usr/lib/python3/dist-packages/cme/connection.py", line 101, in proto_flow
if self.login() or (self.username == '' and self.password == ''):
File "/usr/lib/python3/dist-packages/cme/connection.py", line 261, in login
elif self.plaintext_login(self.domain, usr.strip(), password): return True
File "/usr/lib/python3/dist-packages/cme/protocols/ldap.py", line 407, in plaintext_login
hash_TGT = KerberosAttacks(self).getTGT_asroast(self.username)
File "/usr/lib/python3/dist-packages/cme/protocols/ldap/kerberos.py", line 189, in getTGT_asroast
r = sendReceive(message, domain, self.kdcHost)
File "/usr/lib/python3/dist-packages/impacket/krb5/kerberosv5.py", line 65, in sendReceive
raise socket.error("Connection error (%s:%s)" % (targetHost, 88), e)
OSError: [Errno Connection error (INLANEFREIGHT.HTB:88)] [Errno -2] Name or service not known
Anybody can help me?