-1

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.

Enes
  • 301
  • 2
  • 7
  • 15

1 Answers1

0

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:

Evil_skunk
  • 3,040
  • 4
  • 30
  • 42