question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

E_INVALIDARG - One or more arguments are invalid

See original GitHub issue

An 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:closed
  • Created a year ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
helloywcommented, Nov 2, 2022

出现错误:RequestSessionError:代码:0x80070057 - E_INVALIDARG - 一个或多个参数无效。

你找到解决方案了吗?

sorry, I didn’t find a solution

0reactions
ElizabethHanson1999commented, Nov 5, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

E_INVALIDARG One or more arguments are invalid.
The problem is that you haven't created your DX11 device to be compatible with Direct2D. You need to pass the correct creation flags...
Read more >
E_INVALIDARG 0x80070057 One or more arguments ... - MSDN
I have the following code to copy a region from render target into a bitmap, and display it back by drawing that bitmap....
Read more >
E_INVALIDARG One or more more arguments are invalid #3
According to your tutorial, the D3D11CreateDeviceAndSwapChain can't get the address of Swapchain, swapchain and device can't get the address ...
Read more >
There is an error while installing ISE14.7 Windows10
Appliance import failed VBoxManage.exe: error: Code E_INVALIDARG. (0x80070057) - One or more arguments are invalid (extended info not.
Read more >
[C++]Fail to create archive, E_INVALIDARG on UpdateItems
E_INVALIDARG One or more arguments are invalid. But not for zip or 7zip format. It produce this error for xs, bzip2, gzip, etc....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found