The script is a . You can read its source code, but you cannot force it to lie. If you modify the script—changing the can_screenshot variable from false to true —the license server will reject the request because the cryptographic signature of the script itself has changed (a process called Code Integrity Verification).
And like any contract, the party who writes the script—the publisher—has all the leverage. The user only has the right to execute it, never to amend it. Drm Scripts
Because the script is not the secret. The key is the secret. The script is a