2

I've been thinking about expanding what I could do with a LFI attack to somehow extract information that we usually get by invoking commands. And since a lot of things in linux behaves like a file or at least streams of bytes, I thought I could get almost any info I want.

I have success reading /proc/* and configuration files /home/user/.* but can't seem to get anything on my network information IP,gateway etc. Tried strace-ing /bin/ifconfig but they seem to read .so files.

So, is there any way of achieving this through LFI? I'm testing this on a debian machine but I'm just curious of the possibility in general regardless of platform.

To clarify, The LFI exploit I'm testing this on is technically an abitary file download vulnerability where the response MIME type is image/php so you can safely download a binary file. Didn't think this changes anything though unless I can derive the information I need by scraping some binary files content.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.