Advertisement
cigcag

NPDFPEnt145011x64Fix

Jul 6th, 2023 (edited)
1,341
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    : 64-bit
  9. FileVer : 14.5.0.11
  10. CRC32   : D794BF01
  11. MD5     : 301C6AE24FE292DF2FE353F038E0E0D3
  12. SHA-1   : D4C9FCE242487E540222819F54E9C0B8E4A417D9
  13. SHA256  : 93A0AF25E6422E3C4BE2CBE9F613E52991DED7E4FC53BA97BBF3C880F70E2733
  14. Download: https://downloads.gonitro.com/professional_14.5.0.11/en/enterprise/nitro_pro14_x64.msi
  15. ----------------------------------------------------------------------------------------------#>
  16. $hashSrc = ('93A0AF25E6422E3C4BE2CBE9F613E52991DED7E4FC53BA97BBF3C880F70E2733')
  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[0x207D15] = 0x01
  27.         $bytes[0x207D2B] = 0xFF
  28.         $bytes[0x207D2C] = 0xC0
  29.         $bytes[0x207D2D] = 0xC3
  30.         $bytes[0x207F52] = 0xB0
  31.         $bytes[0x207F53] = 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.  
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement