I read a ethical hacking book and I should pass a exercise. In this exercise there is a php code like this:
<?php
$page = $_GET['p'];
include($page.".php");
?>
I must access passwd by appling file inclusion attack. I tried put %00 end of url and I can't.
The simple Null Byte Injection depends on the current server configuation. So maybe it's prevented because
magic_quotes_gpc
is turned On.But there are other attack vectors too: