selesn777

Untitled

Jul 13th, 2023
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. Thanks to @xanax for the MedZ & Thanks to @alf9872000 for the Powershell help!
  2.  
  3. Powershell patch for 64-bit Enterprise edition (EN)
  4.  
  5. based on previous 13.x patch
  6.  
  7. Site: https://pastebin.com/raw/GN7qjdS9
  8.  
  9.  
  10. Powershell patch for 32-bit Enterprise edition (EN)
  11.  
  12. Site: https://pastebin.com/raw/cJ0kB3Rf
  13.  
  14.  
  15. - Open Windows Powershell (default path is 'C:\Users\your_username')
  16.  
  17. - Copy NitroPDF.exe (from installation folder) in 'C:\Users\your_username'
  18.  
  19. - in Powershell, enter:
  20.  
  21. $hashSrc = ("93A0AF25E6422E3C4BE2CBE9F613E52991DED7E4FC53BA97BBF3C880F70E2733")
  22. $hashCmp = Get-FileHash NitroPDF.exe -Algorithm SHA256
  23. If ($hashSrc -ne $hashCmp.Hash)
  24. {
  25. Write-Output "Checksum of NitroPDF.exe is wrong";
  26. Read-Host "Press Enter to exit script..."; break
  27. }
  28. Copy-Item -Path "NitroPDF.exe" -Destination "NitroPDF.exe.bak";
  29. $bytes = [System.IO.File]::ReadAllBytes("NitroPDF.exe")
  30. $bytes[0x207D15] = 0x01
  31. $bytes[0x207D2B] = 0xFF
  32. $bytes[0x207D2C] = 0xC0
  33. $bytes[0x207D2D] = 0xC3
  34. $bytes[0x207F52] = 0xB0
  35. $bytes[0x207F53] = 0x01
  36. $bytes = [System.IO.File]::WriteAllBytes("NitroPDF.exe",$bytes)
  37. Write-Output "NitroPDF.exe is successfully patched";
  38. Read-Host "Press Enter to exit script..."; break
  39.  
  40.  
  41. - Press Enter
  42.  
  43. NitroPDF.exe is successfully patched
  44.  
  45. Now in 'C:\Users\your_username', you have 2 files, NitroPDF.exe.bak (original file backup) & NitroPDF.exe (patched file)
  46.  
  47. Copy & replace NitroPDF.exe (patched file) in installation folder
Add Comment
Please, Sign In to add comment