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

Using port 139 throws: "socket.gaierror: [Errno -5] No address associated with hostname" #3

Open
NeodymiumFerBore opened this issue Sep 17, 2020 · 0 comments

Comments

@NeodymiumFerBore
Copy link

Running the exploit using port 139 throws the following error:

socket.gaierror: [Errno -5] No address associated with hostname

(My DNS is set up correctly, I'm able to resolve DC1, dc1.lab.lan, reverse lookup 10.0.0.10)

Same result by specifying -target_machine. Full command: ./zer0dump.py -port 139 -target_machine DC1 DC1. Tried multiple combinations, using IP, fqdn or NetBIOS. I don't know much about Netlogon, hard to troubleshoot for me.

Appart that, no problem with port 445.

Full trace:

Traceback (most recent call last):
  File "/opt/test/CVE-2020-1472_ZeroLogon-zer0dump/zer0dump/zer0dump.py", line 163, in <module>
    perform_attack(options)
  File "/opt/test/CVE-2020-1472_ZeroLogon-zer0dump/zer0dump/zer0dump.py", line 81, in perform_attack
    rpc_con, serverChallenge = try_zero_authenticate(dc_handle, dc_ip, target_computer)
  File "/opt/test/CVE-2020-1472_ZeroLogon-zer0dump/zer0dump/zer0dump.py", line 31, in try_zero_authenticate
    rpc_con.connect()
  File "/opt/test/CVE-2020-1472_ZeroLogon-zer0dump/venv/lib/python3.8/site-packages/impacket/dcerpc/v5/rpcrt.py", line 801, in connect
    return self._transport.connect()
  File "/opt/test/CVE-2020-1472_ZeroLogon-zer0dump/venv/lib/python3.8/site-packages/impacket/dcerpc/v5/transport.py", line 342, in connect
    af, socktype, proto, canonname, sa = socket.getaddrinfo(self.getRemoteHost(), self.get_dport(), 0, socket.SOCK_STREAM)[0]
  File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -5] No address associated with hostname

Note: using impacket 0.9.22.dev1+20200915.115225.78e8c8e4 instead of the one in your requirements.txt. It was throwing other errors at zer0dump runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant