Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

PHP: include() problems


ghost's Avatar
0 0

So I was screwing around a while ago with the include function and read how you can include your shell and take advantage of their RFI vuln. I'm just doing this for memory and I'm getting errors. Hosting locally via xampp btw.

include($var);```

```markuphttp://localhost/showpage.php?page=http://www.google.com```

it should display the contents of google but gives errors

URL file-access is disabled in the server configuration
failed to open stream: no suitable wrapper could be found
Failed opening 'http://www.google.com' for inclusion

in the ini file: allow_url_fopen = On

so what's the deal here?

Uber0n's Avatar
Member
0 0

sharpskater80 wrote: URL file-access is disabled in the server configuration

If it's disabled you aren't able to include pages outside the server itself ^^


ghost's Avatar
0 0

moshbat wrote: What about: markupallow_url_include = On

I must have removed that part in this installation, it was there before. Thanks, that was easy.