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

RFI / LFI vulnerable but show as PNG, how to exploit this ?

Hi,
when i scan through the brute force attempts ip address
i found this website that have something like this
showImage.php?file=xyz
when i try to put in xyz like index.php, i get a gibberish page
it even works when i put a website link there

so i know this is definitely a RFI / LFI
i tried put some code in a PNG and load from it. but it doesn't run the code

however, if i'm able to decode the gibberish back to the php text, i will be able to read all its file (potentially etc/passwd ? )

so the question is, how do i turn a gibberish png format back to plain text ?
(it even have the PNG header)
(and i can get it in hex format by using burp)

The file ends with a valid PNG ending
00 00 00 00 49 45 4E 44 AE 42 60 82

The file also have a valid PNG starts
89 50 4E 47 0D 0A 1A 0A 00 00 00


Possibly Related Threads...
Thread / Author Replies Views Last Post
by n00bmaster420May 16, 2025 06:35 PM 6 259 May 16, 2025 06:35 PM
Last Post: DramaKing
by pepsinJun 27, 2018 07:24 PM 5 249 Jun 27, 2018 07:24 PM
Last Post: CryptoLs
by SmoxAug 11, 2017 10:36 AM 5 916 Aug 11, 2017 10:36 AM
Last Post: BioPhone