Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#------------------------------------------------------------------------
- Company : Code Industry Ltd.
- Product : Master PDF Editor
- Version : 5.9.50
- File : MasterPDFEditor.exe
- Arch : 64-bit
- FileVer : 5.9.5.0
- CRC32 : EBB0600A
- MD5 : 4046C90D0D7F0662D9665A8368348B7C
- SHA-1 : 64048D7364AA1C6F253F19176437D8D6A8FB3CBB
- SHA256 : A98476F9D974F24BEC70A60879E9D2DA1D04D7A14DEF1714F404C41786B8823C
- ------------------------------------------------------------------------#>
- $hashSrc = ("A98476F9D974F24BEC70A60879E9D2DA1D04D7A14DEF1714F404C41786B8823C")
- $hashCmp = Get-FileHash MasterPDFEditor.exe -Algorithm SHA256
- If ($hashSrc -ne $hashCmp.Hash)
- {
- Write-Output "Checksum of MasterPDFEditor.exe is wrong";
- Read-Host "Press Enter to exit script..."; exit
- }
- Copy-Item -Path "MasterPDFEditor.exe" -Destination "MasterPDFEditor.exe.bak";
- $bytes = [System.IO.File]::ReadAllBytes("MasterPDFEditor.exe")
- # Fix Registration
- $bytes[0x96710] = 0xFE
- # Unlock Permissions
- $bytes[0x19FE3C] = 0x90
- $bytes[0x19FE3D] = 0x90
- $bytes = [System.IO.File]::WriteAllBytes("MasterPDFEditor.exe",$bytes)
- Write-Output "MasterPDFEditor.exe is successfully patched";
- Read-Host "Press Enter to exit script..."; break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement