Hi, Khách!
![]() | ![]() ![]() ![]() ![]() |
Thật sự thì thằng này nó dùng ajax nên dễ thì cũng dễ, khó thì cũng khó tùy người
link leech dạng http://trachanh.biz/category/1602-truyen-voz.html?page=2 này nha, không phải từng page hay full chuyên mục đâu, tại cái chuyên mục của trachanh khủng quá

<?php
define('_IN_JOHNCMS', 1);
$rootpath = '';
require('incfiles/core.php');
@set_time_limit(6000);
// chỉnh chưa ở đây
$user_id='1'; //id người post
$refid='4'; //id chuyên mục post vào
$from='ADMIN'; // tên người post
function cat_trang ($data){
if(preg_match ('#<a class=\"page\" href=\"\?page=([0-9+)\">([0-9+)</a>#is',$data)){
preg_match_all('#<a class=\"page\" href=\"\?page=([0-9+)\">([0-9+)</a>#is',$data,$page);
return max($page[1);
}
else
{
return '1';
}
}
function tach($data){
$c=explode('<b>Từ khóa:</b>',$data);
return $c[0;
}
if (isset($_POST['url')){
$url=trim($_POST['url');
$header=array();
$header[ = "Accept: text/xml,application/xml,application/xhtml+xml,";
$header[ = "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 = curl_init();
curl_setopt ($curl, CURLOPT_USERAGENT, "NokiaN73-2/3.0-630.0.2 Series60/3.0 Profile/MIDP-2.0 Configuration/CLDC-1.1");
curl_setopt ($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl, CURLOPT_ENCODING, "");
curl_setopt ($curl, CURLOPT_URL, $url);
curl_setopt ($curl, CURLOPT_REFERER, $url);
$content= curl_exec ($curl);
preg_match_all("/<div class=\"menu\"><img src=\"http\:\/\/trachanh\.biz\/images\/new\.png\" alt=\"(.*?)\" \/> <a href=\"(.*?)\" title=\"(.*?)\">(.*?)<\/a><br \/><table><tr><td><img src=\"(.*?)\" class=\"thumb\" alt=\"(.*?)\" \/><\/td><td>(.*?)<\/td><\/tr><\/table><\/div>/is",$content,$link);
$list_link=$link[2;
$list_title=$link[4;
foreach($list_link as $k=>$l){
preg_match("/trachanh\.biz\/read\/([0-9+)\-(.*?)\.html/is",$l,$id);
curl_setopt ($curl, CURLOPT_REFERER, $l);
$title=$list_title[$k;
curl_setopt ($curl, CURLOPT_URL, 'http://trachanh.biz/ajaxI.php?id='.$id[1.'&page=1');
$data= curl_exec ($curl);
$trang=cat_trang($data);
$nd=tach($data);
if($trang>1){
for($i=2;$i<=$trang;$i++){
curl_setopt ($curl, CURLOPT_URL, 'http://trachanh.biz/ajaxI.php?id='.$id[1.'&page='.$i);
$dat= curl_exec ($curl);
$nd.=tach($dat);
}
}
$nd=strip_tags($nd,'<br><img><b>');
$nd=html_entity_decode($nd,ENT_QUOTES,'UTF-8');
$nd=preg_replace("/trachanh\.biz/is","Thucdem.Mobi",$nd);
$ten=trim(preg_replace("/^Truyện voz -/is",'',$title));
$nd=str_replace('<br/>','[br',$nd);
$nd=str_replace('<br />','[br',$nd);
$nd=preg_replace("/<img(.*?)src=\"(.*?)\"(.*?)\/>/is",'[img$2[/img',$nd);
mysql_query("INSERT INTO `forum` SET
`refid` ='$refid',
`type` ='t',
`time` ='". time() ."',
`user_id` ='$user_id',
`from` ='$from',
`text` ='$ten',
`soft` ='Mr.Taiw'
") or exit(__LINE__ . ':' . mysql_error());
$rid = mysql_insert_id();
mysql_query("INSERT INTO `forum` SET
`refid` ='$rid',
`type` ='m',
`time` ='". time() ."',
`user_id` ='$user_id',
`from` ='$from',
`ip` ='". core::$ip ."',
`soft` = 'BOT',
`ip_via_proxy` ='". core::$ip_via_proxy ."',
`text` ='". mysql_real_escape_string($nd) ."'
") or exit(__LINE__ . ':' . mysql_error());
echo 'leech '.$ten.' thành công<br/>';
}
}
else
{
echo 'Nhap 1 link tu trachanh.biz, đề mở http://trachanh.biz/category/1602-truyen-voz.html?page=2<br/><form action ="" method="post"><br>
•Link: *<br/><input type="text" name="url" value="" size="15"/>';
echo '</select><br/><input type="submit" value="Gửi bài viết"></form>';
}
echo'<hr>Code by <a href="http://thucdem.mobi">MrTaiw</a> on <a href="https://daivietpda.vn/members/69053/">DaiVietPda.Vn</a>';
Copy code
define('_IN_JOHNCMS', 1);
$rootpath = '';
require('incfiles/core.php');
@set_time_limit(6000);
// chỉnh chưa ở đây
$user_id='1'; //id người post
$refid='4'; //id chuyên mục post vào
$from='ADMIN'; // tên người post
function cat_trang ($data){
if(preg_match ('#<a class=\"page\" href=\"\?page=([0-9+)\">([0-9+)</a>#is',$data)){
preg_match_all('#<a class=\"page\" href=\"\?page=([0-9+)\">([0-9+)</a>#is',$data,$page);
return max($page[1);
}
else
{
return '1';
}
}
function tach($data){
$c=explode('<b>Từ khóa:</b>',$data);
return $c[0;
}
if (isset($_POST['url')){
$url=trim($_POST['url');
$header=array();
$header[ = "Accept: text/xml,application/xml,application/xhtml+xml,";
$header[ = "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 = curl_init();
curl_setopt ($curl, CURLOPT_USERAGENT, "NokiaN73-2/3.0-630.0.2 Series60/3.0 Profile/MIDP-2.0 Configuration/CLDC-1.1");
curl_setopt ($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl, CURLOPT_ENCODING, "");
curl_setopt ($curl, CURLOPT_URL, $url);
curl_setopt ($curl, CURLOPT_REFERER, $url);
$content= curl_exec ($curl);
preg_match_all("/<div class=\"menu\"><img src=\"http\:\/\/trachanh\.biz\/images\/new\.png\" alt=\"(.*?)\" \/> <a href=\"(.*?)\" title=\"(.*?)\">(.*?)<\/a><br \/><table><tr><td><img src=\"(.*?)\" class=\"thumb\" alt=\"(.*?)\" \/><\/td><td>(.*?)<\/td><\/tr><\/table><\/div>/is",$content,$link);
$list_link=$link[2;
$list_title=$link[4;
foreach($list_link as $k=>$l){
preg_match("/trachanh\.biz\/read\/([0-9+)\-(.*?)\.html/is",$l,$id);
curl_setopt ($curl, CURLOPT_REFERER, $l);
$title=$list_title[$k;
curl_setopt ($curl, CURLOPT_URL, 'http://trachanh.biz/ajaxI.php?id='.$id[1.'&page=1');
$data= curl_exec ($curl);
$trang=cat_trang($data);
$nd=tach($data);
if($trang>1){
for($i=2;$i<=$trang;$i++){
curl_setopt ($curl, CURLOPT_URL, 'http://trachanh.biz/ajaxI.php?id='.$id[1.'&page='.$i);
$dat= curl_exec ($curl);
$nd.=tach($dat);
}
}
$nd=strip_tags($nd,'<br><img><b>');
$nd=html_entity_decode($nd,ENT_QUOTES,'UTF-8');
$nd=preg_replace("/trachanh\.biz/is","Thucdem.Mobi",$nd);
$ten=trim(preg_replace("/^Truyện voz -/is",'',$title));
$nd=str_replace('<br/>','[br',$nd);
$nd=str_replace('<br />','[br',$nd);
$nd=preg_replace("/<img(.*?)src=\"(.*?)\"(.*?)\/>/is",'[img$2[/img',$nd);
mysql_query("INSERT INTO `forum` SET
`refid` ='$refid',
`type` ='t',
`time` ='". time() ."',
`user_id` ='$user_id',
`from` ='$from',
`text` ='$ten',
`soft` ='Mr.Taiw'
") or exit(__LINE__ . ':' . mysql_error());
$rid = mysql_insert_id();
mysql_query("INSERT INTO `forum` SET
`refid` ='$rid',
`type` ='m',
`time` ='". time() ."',
`user_id` ='$user_id',
`from` ='$from',
`ip` ='". core::$ip ."',
`soft` = 'BOT',
`ip_via_proxy` ='". core::$ip_via_proxy ."',
`text` ='". mysql_real_escape_string($nd) ."'
") or exit(__LINE__ . ':' . mysql_error());
echo 'leech '.$ten.' thành công<br/>';
}
}
else
{
echo 'Nhap 1 link tu trachanh.biz, đề mở http://trachanh.biz/category/1602-truyen-voz.html?page=2<br/><form action ="" method="post"><br>
•Link: *<br/><input type="text" name="url" value="" size="15"/>';
echo '</select><br/><input type="submit" value="Gửi bài viết"></form>';
}
echo'<hr>Code by <a href="http://thucdem.mobi">MrTaiw</a> on <a href="https://daivietpda.vn/members/69053/">DaiVietPda.Vn</a>';
Copy code
Download code cho nhanh :kh09:
Download tool-leech-trachanh.zip
Vui lòng Đăng Nhập để có thể tải file
tool-leech-trachanh-thucdem-mobi.zip
Thể loại: application/zip
Dung lượng: 2.03KB
Chỉnh sửa lúc 2016-04-12 03:28 bởi Pham_loi

Trực Tuyến:
Khách: 1