Advertisement
cigcag

MasterPDFEditor5950x64Fix

Jul 5th, 2023 (edited)
815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PowerShell 1.20 KB | Software | 0 0
  1. <#------------------------------------------------------------------------
  2. Company : Code Industry Ltd.
  3. Product : Master PDF Editor
  4. Version : 5.9.50
  5. File    : MasterPDFEditor.exe
  6. Arch    : 64-bit
  7. FileVer : 5.9.5.0
  8. CRC32   : EBB0600A
  9. MD5     : 4046C90D0D7F0662D9665A8368348B7C
  10. SHA-1   : 64048D7364AA1C6F253F19176437D8D6A8FB3CBB
  11. SHA256  : A98476F9D974F24BEC70A60879E9D2DA1D04D7A14DEF1714F404C41786B8823C
  12. ------------------------------------------------------------------------#>
  13. $hashSrc = ("A98476F9D974F24BEC70A60879E9D2DA1D04D7A14DEF1714F404C41786B8823C")
  14. $hashCmp = Get-FileHash MasterPDFEditor.exe -Algorithm SHA256
  15.  
  16. If ($hashSrc -ne $hashCmp.Hash)
  17. {
  18.   Write-Output "Checksum of MasterPDFEditor.exe is wrong";
  19.   Read-Host "Press Enter to exit script..."; exit
  20. }
  21. Copy-Item -Path "MasterPDFEditor.exe" -Destination "MasterPDFEditor.exe.bak";
  22. $bytes = [System.IO.File]::ReadAllBytes("MasterPDFEditor.exe")
  23. # Fix Registration
  24. $bytes[0x96710] = 0xFE
  25. # Unlock Permissions
  26. $bytes[0x19FE3C] = 0x90
  27. $bytes[0x19FE3D] = 0x90
  28. $bytes = [System.IO.File]::WriteAllBytes("MasterPDFEditor.exe",$bytes)
  29. Write-Output "MasterPDFEditor.exe is successfully patched";
  30. Read-Host "Press Enter to exit script..."; break
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement