Invalid computer name?
uclnj opened this issue · 1 comments
From my Ubuntu 18 host, requirements installed. Using NetBios names and IP's of both DC's. Same error on both.
greg@njlh3:~/CVE-2020-1472$ python3 zerologon_tester.py NJDC03 192.168.5.22
Performing authentication attempts...
Traceback (most recent call last):
File "zerologon_tester.py", line 86, in
perform_attack('\\' + dc_name, dc_ip, dc_name)
File "zerologon_tester.py", line 62, in perform_attack
rpc_con = try_zero_authenticate(dc_handle, dc_ip, target_computer)
File "zerologon_tester.py", line 35, in try_zero_authenticate
nrpc.hNetrServerReqChallenge(rpc_con, dc_handle + '\x00', target_computer + '\x00', plaintext)
File "/home/greg/.local/lib/python3.6/site-packages/impacket/dcerpc/v5/nrpc.py", line 2668, in hNetrServerReqChallenge
return dce.request(request)
File "/home/greg/.local/lib/python3.6/site-packages/impacket/dcerpc/v5/rpcrt.py", line 877, in request
raise exception
impacket.dcerpc.v5.nrpc.DCERPCSessionError: NRPC SessionError: code: 0xc0000122 - STATUS_INVALID_COMPUTER_NAME - Indicates a name that was specified as a remote computer name is syntactically invalid.
Rebooted workstation for kicks, now it works. Go figure.