ホームページ  >  記事  >  バックエンド開発  >  PHP 泥棒プログラム [画像を取得]_PHP チュートリアル

PHP 泥棒プログラム [画像を取得]_PHP チュートリアル

WBOY
WBOYオリジナル
2016-07-20 11:05:25981ブラウズ

$id=$_GET["グループID"];
$disp=$_GET["disp"];
$page=$_GET["ページ番号"];
if(!$disp){
$cut='

';
$cut2='
';
$url="http://www.6642.com/Index.asp?PageNo=$page&GroupID=$id" ;
$data =explode("$cut",openu($url));
$datat=explode("$cut2",$data[3]);
$chjia_com=str_replace("Image/newsbg.gif" ,"images/newsbg.gif","
$cut$data[1]$cut$data[ 2]$cut$datat[0]");//
$chjia_com=str_replace(' $ chjia_com=str_replace('href="disp/','href="?disp=',$chjia_com);
$chjia_com=str_replace('href="Disp/','href="?disp=',$chjia_com );
$chjia_com=str_replace('?disp=2028.htm','http://www.chjia.com',$chjia_com);
$chjia_com=str_replace('?disp=121.htm','http ://mm.chjia.com/',$chjia_com);

}else{
$cut='';
$cut2='<表 width="770" height="55" border="0" align="center" cellPadding="0" cellSpacing="2" >';
$url="http://www.6642.com/disp/$disp";
$data =explode("$cut",openu($url));
$datat=explode(" $cut2",$data[1]);
$chjia_com=str_replace('','<script>var uid=10361</script&gt ;<script src=http://code.5k3g.com/tl/picDIY/float_right.js></script>',"$cut$datat[0]");
}
include "mb.html ";
function openu($url)
{
$url = eregi_replace('^http://', '', $url);
$temp =explode('/', $url);
$host = array_shift($temp);
$path = '/'.implode('/', $temp);
$temp =explode(':', $host);
$host = $temp[0];
$ポート = isset($temp[1]) ? $temp[1] : 80;
$fp = @fsockopen($host, $port, &$errno, &$errstr, 30);
if ($fp)
{
@fputs($fp, "GET $パス HTTP/1.1rnHost: $hostrnAccept: */*rnReferer:$urlrnUser-Agent: Mozilla/4.0 (互換性; MSIE 6.0; Windows NT 5.1; SV1)rnConnection: Closernrn");
}
$Content = '';
while ($str = @fread($fp, 4096))
$Content .= $str;
@fclose($fp);
//$Content=preg_replace("~(?:r)?n~s" ,"",$Content);
$Content を返す;
}


www.bkjia.com本当http://www.bkjia.com/PHPjc/445132.html技術記事 ?php $id=$_GET[グループID]; $disp=$_GET[disp]; $page=$_GET[ページ番号]; if(!$disp){ $cut='テーブル幅=570 ボーダー=0 セルスペース=0 セルパディング=3'; $cut2='テーブル幅=770 高さ=31 境界=0...
声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。