PColik Posted February 21, 2015 Share Posted February 21, 2015 (edited) Merhaba arkadaşlar. İnternette Premium Link çevirici sitelerin çalışma mantığı üzerine biraz araştırma yaptım. Ve Turbobit.net üzerindeki dosyaların Premium linkini üreten bir PHP kodu buldum. Fakat web tasarım bilgim, bilgisayarla yeni tanışmış bir çocuğunkinden farksız. Bu kodu nasıl çalıştırırım, eğer bu kod çalışıyorsa Turbobit üzerindeki dosyaların nasıl premium linkini alabilirim. Şimdiden teşekkürler. Kod: [spoiler] <?php /* Coded by Webmaster.TC */ $gelenlink = $_POST['dosyadresi']; class wmtc{ function getripzpl($adres){ //getripzpl decode $ch = curl_init("http://www.getripz.pl/dane.php"); $curl_header = array('X-Requested-With: XMLHttpRequest'); curl_setopt($ch, CURLOPT_HEADER,false); curl_setopt($ch, CURLOPT_POST,true); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); curl_setopt($ch, CURLOPT_HTTPHEADER, $curl_header); curl_setopt($ch, CURLOPT_POSTFIELDS,"urls=".urlencode($adres)); $a = curl_exec($ch); curl_close($ch); preg_match_all('@href="(.*?)"@',$a,$m); $kaynak2 = $this->wmtccurl($m[1][0]); preg_match_all('@<form action="(.*?)">@',$kaynak2,$m2); return $m2[1][0]; } function wmtccurl($url){ $ch = curl_init(); $timeout = "5"; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_HEADER,false); curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); curl_setopt($ch,CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch,CURLOPT_REFERER,"http://www.google.com.tr"); curl_setopt($ch,CURLOPT_USERAGENT,$_SERVER["HTTP_USERAGENT"]); $data = curl_exec($ch); curl_close($ch); return $data; } function adfly($url){ //adfly decode $curl = curl_init(); $header[0] = "Accept: text/xml,application/xml,application/xhtml+xml"; $header[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"; $header[] = "Cache-Control: max-age=0"; $header[] = "Connection: keep-alive"; $header[] = "Keep-Alive: 300"; $header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $header[] = "Accept-Language: en-us,en;q=0.5"; $header[] = "Pragma: "; curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1'); curl_setopt($curl, CURLOPT_HTTPHEADER, $header); curl_setopt($curl, CURLOPT_REFERER, 'http://www.webmaster.tc/index.php'); curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate'); curl_setopt($curl, CURLOPT_AUTOREFERER, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_TIMEOUT, 10); curl_setopt($curl, CURLOPT_COOKIEJAR, 'wmtc.txt'); curl_setopt($curl, CURLOPT_COOKIEFILE, 'wmtc.txt'); $html = curl_exec($curl); curl_close($curl); preg_match_all("@/go/.*?/(.*?)'@",$html,$m); return base64_decode($m[1][0]); } function link($adres){ return $this->adfly($this->getripzpl($adres)); } } $turbobit = new wmtc; if($_POST){ $indirme = $turbobit->link($gelenlink); } ?> <form action="" method="post"> <input type="text" name="dosyadresi" placeholder="Çevirmek istediğiniz lini girin..." /> <input type="submit" value="çevir"/> </form> <?php if(!empty($indirme)){ ?> <center><strong>İndirme Adresiniz Oluşturuldu ! :</strong> <a href="<?=$indirme;?>" title="Tıkla ve İndir" target="_blank"><?=$indirme;?></a></center> <?php } ?> [/spoiler] Edited February 21, 2015 by PColik Quote Link to comment Share on other sites More sharing options...
Rancho Posted February 21, 2015 Share Posted February 21, 2015 Wampserver programını kur elindeki php dosyalarını C:/wamp/www klasörü içine at Wampserver programını aç Tarayıcıyı aç localhost/klasörününadı yaz çalışır Quote Link to comment Share on other sites More sharing options...
PColik Posted February 22, 2015 Author Share Posted February 22, 2015 (edited) PHP dosyası derken kardeşim. Bu kodu not defterine kopyalayıp herhangi bir isimle PHP dosyası olarak kayıt etsem olur mu? Kardeş bu arada: PHP dosyasını wamp/www içerisine attım. WampServer programını açtım. Tarayıcıdan da şunların hepsini denedim: localhost/C:\wamp\www\test.php localhost/wamp/www/test.php localhost/www/test.php localhost/wamp/www localhost/www Edited February 22, 2015 by PColik Quote Link to comment Share on other sites More sharing options...
Rancho Posted February 22, 2015 Share Posted February 22, 2015 PHP dosyası derken kardeşim. Bu kodu not defterine kopyalayıp herhangi bir isimle PHP dosyası olarak kayıt etsem olur mu? Evet onu demek istemiştim .php uzantılı kaydedip o dediğim klasöre at Quote Link to comment Share on other sites More sharing options...
Rancho Posted February 23, 2015 Share Posted February 23, 2015 PHP dosyası derken kardeşim. Bu kodu not defterine kopyalayıp herhangi bir isimle PHP dosyası olarak kayıt etsem olur mu? Kardeş bu arada: PHP dosyasını wamp/www içerisine attım. WampServer programını açtım. Tarayıcıdan da şunların hepsini denedim: localhost/C:\wamp\www\test.php localhost/wamp/www/test.php localhost/www/test.php localhost/wamp/www localhost/www Localhost/sadeceklasör adı örn. www içinde deneme diye bi klasör oluşturdum ve dosyalarımı oraya attım tarayıcıyı açıp adres satırına localhost/deneme/ diye yazmam yeterli olacak bu şekilde yaparsan olur Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.