1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?PHP
//echo urldecode($_GET['cookies']);
header("content-type: image/gif");
function getsock($address){
$cookie = urldecode($_GET['cookies'])."\r\n";
$fp = fsockopen("ciasrv104.de", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET ".$address." HTTP/1.1\r\n";
$out .= "Host: ciasrv104.de\r\n";
$out .="User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1\r\n";
$out .="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n";
$out .="Accept-Language: de\r\n";
$out .="Accept-Encoding: gzip,deflate\r\n";
$out .="Keep-Alive: 300\r\n";
$out .="Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
$out .= $cookie;
$out .= "Connection: Keep-Alive\r\n\r\n";
fwrite($fp, $out);
$show = false;
while(!feof($fp)) {
$o= fgets($fp);
$out .= $o;
if ( substr_count($o,"GIF") > 0 ) $show = true;
if ( $show ) echo $o;
//echo $i."<br>";
}
fclose($fp);
return $out;
}
}
$image = getsock("/speed1/captcha.php");
$image = substr($image,strpos($image,'GIF'));
$file = fopen("d:\cia\captcha.php.gif",w);
fwrite($file,$image);
fclose($file);
?> |