hello experts i think this topic only solved by a good knowledgeable person who expert in php i post 2 file one index.ph and other one is dl.php this is the grabber of erkiss.ru
Problem: when we click on download the file the main site of erkiss is open where the all links are same so i think this is some cookies and cache function they installed please solve this problem
Index.php:
try this url to index.php?tag=1 else they show 404 not found
and dl.php:
Problem: when we click on download the file the main site of erkiss is open where the all links are same so i think this is some cookies and cache function they installed please solve this problem
Index.php:
PHP Code:
<?
function cool_grab_url($url)
{
$ua="Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16";
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_USERAGENT,$ua);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$exec=curl_exec($ch);
return $exec;
}
$coolurl="http://en.erkiss.ru/tag/$_GET[tag]/?&s=$_GET[s]";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ''.$coolurl.'');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Language: en-us,en;q=0.7,de-de;q=0.3','Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'));
$file = curl_exec($ch);
$file=str_replace('/video/','dl.php?id=',$file);
echo $file;
?>
and dl.php:
PHP Code:
<?
function cool_grab_url($url)
{
$ua="Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16";
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_USERAGENT,$ua);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$exec=curl_exec($ch);
return $exec;
}
$coolurl="http://en.erkiss.ru/video/$_GET[id]/?&s=$_GET[s]";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ''.$coolurl.'');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Language: en-us,en;q=0.7,de-de;q=0.3','Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'));
$file = curl_exec($ch);
//$file=str_replace('/video/','dl.php?id=',$file):
echo $file;
?>
Comment