Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 213 Bytes

challenge-51.md

File metadata and controls

13 lines (12 loc) · 213 Bytes

Challenge

$url = 'file://localhost/etc/passwd'
$parts = parse_url($url);
if (empty($parts['hosts']) || $parts['host'] != 'localhost'){
    exit('error');
}
readfile($url);
?>

Solution

Refference