?
Solved

about download.php

Posted on 2003-12-07
13
Medium Priority
?
333 Views
Last Modified: 2008-03-06
hello

i've been to several websites that required me to download the file through their download.php

for ex : http://www.toriyamaworld.com/download.php?filename=hxh-15-12.zip

however, i wanna skip this process by trying get the file from a direct llink
which i need to get the address from those line in the download.php

however, i believe that we can't download "download.php" manualy, we may need to use some trick
but i don't really know how to?

anybody know aobut this?

Thx
Tom
0
Comment
Question by:tom_mk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
13 Comments
 
LVL 1

Accepted Solution

by:
Rayni earned 672 total points
ID: 9894793
If the script is secure enough it will be a tack to obtain such a thing, you can instead download the file using a download program and trace it back to its original link and hope that that file or all the files are stored in the same folder and just copy and paste the file name with the link.

Many of these scipts and made secure so that people have to register to DL the file. With the link you gave it redirects you so that means they are using permissions to access the file which is something hard to get around unless you have the file or access.

- Daniel
0
 
LVL 13

Assisted Solution

by:lozloz
lozloz earned 664 total points
ID: 9896111
adding to what rayni said, if the script is written well, it could be impossible to get the file because the file could be stored below the root or in a location that a user can't access from outside the server. this would then be read in, a header sent and the file output in the script

cheers,

loz
0
 
LVL 6

Expert Comment

by:aolXFT
ID: 9897739
Why do you want to do this?

It also depends on what download.php does, does it stream the file, or does it redirect  you to the file.

If it redirects you, then all you have to do is get the redirection url.

If it streams you you can simply pass the correct arguments to download.php

Things get more complex if they require you to register.
0
WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

 
LVL 6

Expert Comment

by:aolXFT
ID: 9897740
Are you trying to use wget?
0
 

Author Comment

by:tom_mk
ID: 9900378
what's wget?

btw..i thik it just redirect me to the dowload place la..
and it may have some script that block user to be able to d/l 1 file in 10 mins..
but i'm not sure..

this is the page i mentioned.. http://www.brainfart.org/hxh/

can u guys take a look at it?



Tom
0
 
LVL 13

Expert Comment

by:lozloz
ID: 9900643
sorry but i agree with what they say - use bittorrent if you're on broadband, or if you're on 56k then the wait shouldn't be long between downloading chapters..

loz
0
 

Author Comment

by:tom_mk
ID: 9901454
oh man..
for my curiosity ...i need to know the process ..

i know it's not right thing to do..but i wanna know how to crack that download.php out ah..

let's say..it's for my education ..la

TOm
0
 
LVL 6

Assisted Solution

by:aolXFT
aolXFT earned 664 total points
ID: 9906647
We can show you how to do something similar, but under no circumstances can we tell you how to circumvent someones security. Which is what that is. It is a method for them to secure their bandwidth.

If you wanted to recreate something like that, you could simply generate a hash that identifys your visitors.

If you have that hash in a db as having viewed in the last 10 minutes, refuse the download. Otherwise Open the file, and print the relevent headers, and output the files contents.




0
 
LVL 2

Expert Comment

by:sandoshvr
ID: 9948408
Hi,

You can use CURL to find out.
You can follow each and every hop to reach the final file...and hence find the path of the file.

code:
$ch = curl_init($url); //$url -> download url
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,0); //to follow hops. start from 0
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
print($data);

in the header part you can easily find out.
eg:
Location: http://www.saarang.org/new
0
 
LVL 2

Expert Comment

by:sandoshvr
ID: 9948417
eg: using the above script i found that it is at

http://www.vault-thirteen.com/tw/hxh-15-12.zip

for eg: visit http://www.saarang.org/in.php

hope you found the soln.
0

Featured Post

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question