Id: 70916; Nick: n/a; Timestamp: 2008-09-19 23:55:47; Pasted as: PHP
Description: n/a
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
<?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);
	    while(!feof($fp)) {
			$out .= fgets($fp);
			//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);
?>
Options: New, Download,
;
Copyright © 2006 by Zyberdog - Some rights reserved. (Browse/Disclaimer/Stats/About) - Highlighted with GeSHi