Files
Investidor-V2/outputs/investmoz-audit-current-20261012/B-preserve-install-receipt-20261015.php
T
nala c13f250b87
tests / ci (push) Canceled after 0s
versao compilada
2026-10-15 17:37:00 +02:00

3 lines
593 B
PHP

<?php
$p=__DIR__.'/B-activation-installed-20261015.json';$v=json_decode(file_get_contents($p),true,512,JSON_THROW_ON_ERROR);$v['at']='2026-10-15T15:27:38+00:00';$v['path_enabled']=false;$s=json_encode($v,JSON_PRETTY_PRINT|JSON_THROW_ON_ERROR);$expected=json_decode(file_get_contents(__DIR__.'/B-activation-flag-20261015.json'),true)['installed_evidence_sha256'];if(hash('sha256',$s)!==$expected)throw new RuntimeException('Receipt reconstruction mismatch');file_put_contents(__DIR__.'/B-activation-installed-before-flag-20261015.json',$s);echo 'Pre-flag receipt preserved with original hash';