php小偷程序[抓取图片]
2013-09-05 19:24
447 查看
<?php
$id=$_GET["GroupID"];
$disp=$_GET["disp"];
$page=$_GET["PageNo"];
if(!$disp){
$cut='<table width="570" border="0" cellspacing="0" cellpadding="3">';
$cut2='<table width="770" height="31" border="0" align="center" cellpadding="0" cellspacing="0">';
$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","<table border=0 width=100% cellspacing=0 cellpadding=0><tr align=center><td> $cut$data[1]$cut$data[2]$cut$datat[0]");//
$chjia_com=str_replace('<img src="image/istop','<img src="images/istop',$chjia_com);
$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='<table width="770" height="26" border="0" align="center" cellpadding="0" cellspacing="0">';
$cut2='<table 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 language=javascript>document.write(ClickCount)</script>','<script>var uid=10361</script><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];
$port = isset($temp[1]) ? $temp[1] : 80;
$fp = @fsockopen($host, $port, &$errno, &$errstr, 30);
if ($fp)
{
@fputs($fp, "GET $path HTTP/1.1rnHost: $hostrnAccept: */*rnReferer:$urlrnUser-Agent: Mozilla/4.0 (compatible; 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);
return $Content;
}
$id=$_GET["GroupID"];
$disp=$_GET["disp"];
$page=$_GET["PageNo"];
if(!$disp){
$cut='<table width="570" border="0" cellspacing="0" cellpadding="3">';
$cut2='<table width="770" height="31" border="0" align="center" cellpadding="0" cellspacing="0">';
$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","<table border=0 width=100% cellspacing=0 cellpadding=0><tr align=center><td> $cut$data[1]$cut$data[2]$cut$datat[0]");//
$chjia_com=str_replace('<img src="image/istop','<img src="images/istop',$chjia_com);
$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='<table width="770" height="26" border="0" align="center" cellpadding="0" cellspacing="0">';
$cut2='<table 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 language=javascript>document.write(ClickCount)</script>','<script>var uid=10361</script><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];
$port = isset($temp[1]) ? $temp[1] : 80;
$fp = @fsockopen($host, $port, &$errno, &$errstr, 30);
if ($fp)
{
@fputs($fp, "GET $path HTTP/1.1rnHost: $hostrnAccept: */*rnReferer:$urlrnUser-Agent: Mozilla/4.0 (compatible; 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);
return $Content;
}
相关文章推荐
- 一个图片地址分解程序(用于PHP小偷程序)
- 一个图片地址分解程序(用于PHP小偷程序)
- php抓取网站图片的程序
- 一个图片地址分解程序,用于PHP小偷程序
- php抓取网站图片源码
- PHP--解决微信小程序上传图片(wx.uploadFile)接口代码
- PHP图片上传程序(完整版)
- PHP的cURL快速入门 (小偷采集程序)
- 关于PHP程序使用file_get_content()函数进行抓取PHP程序与smarty结合编译过程中产生的静态文件,抓取不了?连接超时?(地址映射)
- 一个PHP的远程图片抓取函数分享
- php 论坛采集程序 模拟登陆,抓取页面 实现代码
- 关于PHP程序使用file_get_content()函数进行抓取PHP程序与smarty结合编译过程中产生的静态文件,抓取不了?连接超时?(地址映射)
- 基于php实现七牛抓取远程图片
- php小偷程序原理和例子
- php 抓取图片
- PHP小偷程序原理、实例及改进
- PHP经典的给图片加水印程序
- PHP图片上传程序(完整版)
- PHP版 微信小程序生成带参数小程序二维码图片 php接口+小程序demo
- php小偷程序