DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Help! php path encode  (Read 6,301 times)

Kuntau

  • My English is bad :(
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 90
Help! php path encode
« on: July 05, 2008, 11:01 AM »
Hi guys,

I just lurking around net and I found this website that use some php code to retrieve file for download. eg

Code: (php)
http://www.somesite.com/members/_getFile.php?path=ZG93bmxvYWRzL3Bva2VyIHRleHQuemlw

What I can found is.. the code is up one level and go into downloads dir.. but I can't go directly in there.

Here is some error I got if I enter random parameter

Code: (php)
filesize(): Stat failed for ../downloads/Blabla (errno=2 - No such file or directory)

Is it possible to identify how he code the path? FYI, I know some files inside downloads dir so I can test.

Thanks.

mediaguycouk

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 247
Re: Help! php path encode
« Reply #1 on: July 05, 2008, 03:27 PM »
1) The file is probably not on the public webserver so you are probably looking in the wrong place (most places have folder on the webserver, but not in the public_html part)
2) Unless you an inject some code you won't be able to list the contents of the directory
3) If you could you are obviously trying to hack into someone elses website, so I think you'll find us ethical people wouldn't help if we could
Learning C# - Graham Robinson

Kuntau

  • My English is bad :(
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 90
Re: Help! php path encode
« Reply #2 on: July 05, 2008, 03:38 PM »
I do for the sake of learning  :Thmbsup:

Problem solved anyway  8)

Original address: https://www.donationcoder.com/forum/index.php?topic=13954.0