cube0x0 / CVE-2021-1675

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

RPRN SessionError: code: 0x2 - ERROR_FILE_NOT_FOUND #57

Closed clayhax closed 1 year ago

clayhax commented 3 years ago

PrintNightmareErrorFileNotFound_github

PrintNightmareSMBshare_github

LLPMR commented 3 years ago

I am having the exact same problem. Please if you find a solution please post here.

sahil5399 commented 3 years ago

use /opt/PrintNightmare/ as the share location instead of 'pwd'

LLPMR commented 3 years ago

Thank you very much. Solved for me.

YagamiShadow commented 3 years ago

tried the suggested fix, still getting the same error, any ideas?

t0biasripper commented 2 years ago

You need to be sure that your file is accessible anonymously, if smbserver.py from impacket not working try smbd. You may take smb.conf from README.md and create user that specified in it in row "force user" or specify user "kali".