E_INVALIDARG - One or more arguments are invalid
See original GitHub issueAn error occurred while requesting a certificate using a domain user
I am using version 4.0
This is the command I used:certipy req -username John@test.com -p Passowrd! -ca test-DC01-CA -template User -target 173.100.4.60 -debug
The following is the error report:
[+] Trying to connect to endpoint: ncacn_np:173.100.4.60[\pipe\cert] [proxychains] Strict chain ... 192.168.172.130:1080 ... 173.100.4.60:445 ... OK [+] Connected to endpoint: ncacn_np:173.100.4.60[\pipe\cert] [-] Got error: RequestSessionError: code: 0x80070057 - E_INVALIDARG - One or more arguments are invalid. Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/Certipy-4.0.0-py3.9.egg/certipy/entry.py", line 60, in main actions[options.action](options) File "/usr/local/lib/python3.9/dist-packages/Certipy-4.0.0-py3.9.egg/certipy/commands/parsers/req.py", line 12, in entry req.entry(options) File "/usr/local/lib/python3.9/dist-packages/Certipy-4.0.0-py3.9.egg/certipy/commands/req.py", line 764, in entry request.request() File "/usr/local/lib/python3.9/dist-packages/Certipy-4.0.0-py3.9.egg/certipy/commands/req.py", line 715, in request cert = self.interface.request(csr, attributes) File "/usr/local/lib/python3.9/dist-packages/Certipy-4.0.0-py3.9.egg/certipy/commands/req.py", line 208, in request response = self.dce.request(request) File "/usr/local/lib/python3.9/dist-packages/impacket-0.9.25.dev1+20220502.112312.90866d4c-py3.9.egg/impacket/dcerpc/v5/rpcrt.py", line 880, in request raise exception
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top GitHub Comments
sorry, I didn’t find a solution
I tried that agian and i got “netbios connection timeout” this time :
Certipy v4.0.0 - by Oliver Lyak (ly4k)
[+] Trying to resolve ‘EXAMPLE.COM’ at ‘192.168.17.139’ [+] Resolved ‘EXAMPLE.COM’ from cache: 192.168.17.139 [+] Generating RSA key [*] Requesting certificate via RPC [+] Trying to connect to endpoint: ncacn_np:192.168.17.139[\pipe\cert] [+] Connected to endpoint: ncacn_np:192.168.17.139[\pipe\cert] [-] Got error: The NETBIOS connection with the remote host timed out. Traceback (most recent call last): File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\impacket-0.10.0-py3.10.egg\impacket\nmb.py”, line 984, in non_polling_read received = self._sock.recv(bytes_left) TimeoutError: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\certipy-4.0.0-py3.10.egg\certipy\entry.py”, line 60, in main actionsoptions.action File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\certipy-4.0.0-py3.10.egg\certipy\commands\parsers\req.py”, line 12, in entry req.entry(options) File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\certipy-4.0.0-py3.10.egg\certipy\commands\req.py”, line 764, in entry request.request() File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\certipy-4.0.0-py3.10.egg\certipy\commands\req.py”, line 715, in request cert = self.interface.request(csr, attributes) File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\certipy-4.0.0-py3.10.egg\certipy\commands\req.py”, line 208, in request response = self.dce.request(request) File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\impacket-0.10.0-py3.10.egg\impacket\dcerpc\v5\rpcrt.py”, line 859, in request answer = self.recv() File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\impacket-0.10.0-py3.10.egg\impacket\dcerpc\v5\rpcrt.py”, line 1310, in recv response_data = self._transport.recv(forceRecv, count=MSRPCRespHeader._SIZE) File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\impacket-0.10.0-py3.10.egg\impacket\dcerpc\v5\transport.py”, line 553, in recv return self.__smb_connection.readFile(self.__tid, self.__handle) File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\impacket-0.10.0-py3.10.egg\impacket\smbconnection.py”, line 570, in readFile bytesRead = self._SMBConnection.read_andx(treeId, fileId, offset, toRead) File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\impacket-0.10.0-py3.10.egg\impacket\smb3.py”, line 1979, in read_andx return self.read(tid, fid, offset, max_size, wait_answer) File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\impacket-0.10.0-py3.10.egg\impacket\smb3.py”, line 1314, in read ans = self.recvSMB(packetID) File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\impacket-0.10.0-py3.10.egg\impacket\smb3.py”, line 458, in recvSMB data = self._NetBIOSSession.recv_packet(self._timeout) File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\impacket-0.10.0-py3.10.egg\impacket\nmb.py”, line 915, in recv_packet data = self.__read(timeout) File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\impacket-0.10.0-py3.10.egg\impacket\nmb.py”, line 1002, in __read data = self.read_function(4, timeout) File “C:\Users\test2\Desktop\Certipy-main\Certipy-main\certipy\lib\site-packages\impacket-0.10.0-py3.10.egg\impacket\nmb.py”, line 986, in non_polling_read raise NetBIOSTimeout impacket.nmb.NetBIOSTimeout: The NETBIOS connection with the remote host timed out.