https://alex-free.github.io/aprip/
APrip is a portable open source tool capable of bypassing/patching-out the ‘standardized’ additional anti-piracy copy protection found in some later PSX games. APrip can:
Patch The CD Image of a game to remove the additional anti-piracy copy protection.
Generate valid GameShark code(s) to remove the additional anti-piracy copy protection.
Convert an existing GameShark code which bypasses or removes the additional anti-piracy copy protection for one version of a game to a different version (i.e. converts a Rev 0 code to a Rev 1 or Demo version compatible code, or for a different regional release of the same game entirely).