Skip to content

Files

Latest commit

7c494e5 · Sep 19, 2017

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