Advertisement
cigcag

NPDFPEnt145011x86Fix

Jul 7th, 2023
1,002
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PowerShell 1.55 KB | Software | 0 0
  1. <#----------------------------------------------------------------------------------------------
  2. Company : Nitro Software, Inc.
  3. Product : Nitro PDF Pro
  4. Edition : Enterprise
  5. Language: English
  6. Version : 14.5.0.11
  7. File    : NitroPDF.exe
  8. Arch    : 32-bit
  9. FileVer : 14.5.0.11
  10. CRC32   : BB754EC3
  11. MD5     : 21F8E71A3C61E31229A8CC8B3D99C854
  12. SHA-1   : E37263F0BE6ED47662B4C704FBB0FA435285C51F
  13. SHA256  : 5A39B741A71D7534D87B087B8564F730565026BB2175593814324B3AAD6FED5B
  14. Download: https://downloads.gonitro.com/professional_14.5.0.11/en/enterprise/nitro_pro14_x86.msi
  15. ----------------------------------------------------------------------------------------------#>
  16. $hashSrc = ('5A39B741A71D7534D87B087B8564F730565026BB2175593814324B3AAD6FED5B')
  17. $hashCmp = Get-FileHash 'NitroPDF.exe' -Algorithm SHA256
  18. If ($hashSrc -ne $hashCmp.Hash)
  19.     {
  20.       CLS
  21.       Write-Output 'Checksum of NitroPDF.exe is wrong';
  22.       Read-Host 'Press Enter to exit script...'; break
  23.     } else  {
  24.         Copy-Item -Path 'NitroPDF.exe' -Destination 'NitroPDF.exe.bak';
  25.         $bytes = [System.IO.File]::ReadAllBytes((get-location).path+'\NitroPDF.exe')
  26.         $bytes[0x1C14EB] = 0x01
  27.         $bytes[0x1C14F9] = 0xFF
  28.         $bytes[0x1C14FA] = 0xC0
  29.         $bytes[0x1C14FB] = 0xC3
  30.         $bytes[0x1C16E0] = 0xB0
  31.         $bytes[0x1C16E1] = 0x01
  32.         $bytes = [System.IO.File]::WriteAllBytes((get-location).path+'\NitroPDF.exe',$bytes)
  33.         CLS
  34.         Write-Output 'NitroPDF.exe is successfully patched';
  35.         Read-Host 'Press Enter to exit script...'; break
  36.             }
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement