IzNoGoD just had some problem some days ago, he wanted e.g. to download: http://www.gamefront.com/files/5125790
You do the initial http request:
Code:
printf "GET /files/5125790 HTTP/1.0\r\nHost: www.gamefront.com\r\n\r\n" | netcat gamefront.com 80 > 1.txt
Check 1.txt, you gotta rip two lines:
Code:
Set-Cookie: PHPSESSID=1mcbhc3hv5h4iid1rddfr7vqk6; path=/
<a href="http://www.gamefront.com/files/service/thankyou?id=5125790" class="downloadNow premium-content" id="downloadLink">
Second request will use this data:
Code:
printf "GET /files/service/thankyou?id=5125790 HTTP/1.0\r\nHost: www.gamefront.com\r\nCookie: PHPSESSID=1mcbhc3hv5h4iid1rddfr7vqk6\r\n\r\n" | netcat gamefront.com 80 > 2.txt
Check 2.txt, you gotta rip this:
Code:
var downloadUrl = 'http://media1.gamefront.com/pub2/Call_of_Duty_2/Official_Patches/v13/CallofDuty2Patchv1_3.exe?b17f4b620c6cf1393ffa644f10eea151c975f3a1042cbd46c310d68acbb5e5807a00095c2e30b1cb0c60fa18dc133ad4f7284fffc0c0ac5c176306165711ed57a1f1c14a5ba52be7c140b96bd330899e88548e2ad06cffb08c39eacc6099c1645c43ab564e08f60dcf20027ac61c264fb1df6e4510e4ff7a9dfbd6fc381ea077a55203a8dda6aba141b1&ext=.exe';
And just download it:
Code:
wget http://media1.gamefront.com/pub2/Call_of_Duty_2/Official_Patches/v13/CallofDuty2Patchv1_3.exe?b17f4b620c6cf1393ffa644f10eea151c975f3a1042cbd46c310d68acbb5e5807a00095c2e30b1cb0c60fa18dc133ad4f7284fffc0c0ac5c176306165711ed57a1f1c14a5ba52be7c140b96bd330899e88548e2ad06cffb08c39eacc6099c1645c43ab564e08f60dcf20027ac61c264fb1df6e4510e4ff7a9dfbd6fc381ea077a55203a8dda6aba141b1&ext=.exe > CallofDuty2Patchv1_3.exe
Would probably be nice just to reconstruct the file structure based on "Call_of_Duty_2/Official_Patches/v13/CallofDuty2Patchv1_3.exe" in final dl link.