Digital Point Forums
iKobo

Go Back   Digital Point Forums > Design & Development > Programming > PHP
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Oct 20th 2009, 1:15 am
spidersense101's Avatar
spidersense101 spidersense101 is offline
Champion of the Naaru
 
Join Date: Sep 2009
Location: Mumbai, India
Posts: 131
spidersense101 is on a distinguished road
Question php decode hacked my sites. Is it Virus

I Found a problem on my site and when i compare the files on the server with my local files i found that every page (*.js or *.php) has this line on it
<?php /**/eval(base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKC
or a javascript line

so i knew that my site has been hacked..
so
1 - i want to know how to prevent anyone to hack my site?
i made on every textfield or textarea on posting or getting it the htmlspecialcharacter($_POST['name'])

is this true? and can it help me?
2- how did anyone hack my site??
3- how i can know what does this code mean???
thanks in advance and have a nice day

Please help me. i am in trouble..If this is not the right place to post.

Than i request to DP Admin that please move my post to right Forum.

Thanks
__________________
International Debt Collection | Medical Debt Collection Agency for more details Iwmc-group.com
Reply With Quote
  #2  
Old Oct 20th 2009, 2:20 am
mastermunj mastermunj is offline
Hand of A'dal
 
Join Date: Oct 2009
Location: India
Posts: 461
mastermunj is on a distinguished road
its not hacked.. its been infected by malicious script..

if you have backup copy of your files, then immediately delete these files and after putting files back from backup, change its permission to 755 or 766 after consulting a linux expert.
Reply With Quote
  #3  
Old Oct 20th 2009, 2:40 am
spidersense101's Avatar
spidersense101 spidersense101 is offline
Champion of the Naaru
 
Join Date: Sep 2009
Location: Mumbai, India
Posts: 131
spidersense101 is on a distinguished road
I have also try to do with 744 but not secure ....... please give me more suggestion on that.

Thanks
__________________
International Debt Collection | Medical Debt Collection Agency for more details Iwmc-group.com
Reply With Quote
  #4  
Old Oct 20th 2009, 2:48 am
mastermunj mastermunj is offline
Hand of A'dal
 
Join Date: Oct 2009
Location: India
Posts: 461
mastermunj is on a distinguished road
no no.. do not just change it to 744... first replace affected files with clean files from backup.

it might also be possible due to shared hosting, may be your domain was not affected but since other domain which is co-hosted on same server as yours got affected and that affected your files too.

stay calm and follow all security steps one by one with guidance from your host and it all will be fine soon.
Reply With Quote
  #5  
Old Oct 20th 2009, 2:49 am
VouchersGG VouchersGG is offline
Banned
 
Join Date: Sep 2009
Posts: 131
VouchersGG is on a distinguished road
what the link site you has been hacked ?
i think i can help you
Reply With Quote
  #6  
Old Oct 20th 2009, 5:16 am
dsignresponder's Avatar
dsignresponder dsignresponder is offline
Grunt
 
Join Date: Aug 2009
Posts: 72
dsignresponder is on a distinguished road
Read this article and try to follow the steps. It helped me to decode some malicious script on a host :
http://danilo.ariadoss.com/decoding-...-base64-decode

Hope that might help...
Reply With Quote
  #7  
Old Oct 20th 2009, 10:01 am
Gray Fox Gray Fox is offline
Champion of the Naaru
 
Join Date: Sep 2008
Location: Belgrade, Serbia
Posts: 104
Gray Fox is on a distinguished road
Can you paste the full "eval'd" code here? It shouldn't be too hard to decode and investigate it.
Reply With Quote
  #8  
Old Oct 20th 2009, 10:15 am
jestep's Avatar
jestep jestep is offline
of the Nightfall
 
Join Date: Dec 2004
Location: Austin
Posts: 2,488
jestep is a splendid one to beholdjestep is a splendid one to beholdjestep is a splendid one to beholdjestep is a splendid one to beholdjestep is a splendid one to beholdjestep is a splendid one to behold
If you found an eval( code in your php, your site/server is hacked. The only way to insert this on a page is via command line or ftp, or a very unprotected script that allows user input to be processed.

Look at the modified date of the affected pages, and look through your logs to try and figure out how the compromise happened.
Reply With Quote
  #9  
Old Oct 20th 2009, 10:15 am
Stephie's Avatar
Stephie Stephie is offline
Champion of the Naaru
 
Join Date: Apr 2006
Posts: 133
Stephie is on a distinguished road
I had the same thing happen to my sites. I hate hackers !
__________________
Celebrity Forums
Reply With Quote
  #10  
Old Oct 20th 2009, 12:19 pm
rainborick rainborick is offline
Hand of A'dal
 
Join Date: Apr 2004
Location: Minneapolis, MN
Posts: 268
rainborick will become famous soon enoughrainborick will become famous soon enough
When you find your site has been hacked, you need to do two things: (1) remove the hacked files, and (2) close the hole in your security that allowed the hacker to gain access to your site.

First, run your regular anti-virus scan on your own computer. Then run an anti-malware or anti-virus program that you don't use regularly in order to get a "second opinion". Once you've done that and repaired any problems, you should change the passwords on all of the FTP accounts for your site. Next, delete all of the files on the site and then restore them from known clean copies on your computer. Then be sure to update all blog, forum, gallery, or other scripts that are running on your site to get the latest version because hackers most often gain access through known vulnerabilities in these scripts. Finally, download the resulting files for your site back down to your computer so that you have the current copies available to restore again. This process should clean your site and give you good protection against further problems.
__________________
Richard L. Trethewey
Minneapolis Web Design * SEO Tips * *
Reply With Quote
  #11  
Old Nov 4th 2009, 7:02 pm
MattyAsia MattyAsia is offline
Grunt
 
Join Date: Jul 2008
Posts: 37
MattyAsia is on a distinguished road
I met this virus just a few weeks ago, it seemed to have come in through some gallery software.
If it's the same, it will have added itself to the start of ever PHP file on your site.
What you need to do is decode the message, and then find the file that started it, and first delete that file, check the software that the file was in the folder of for updates and update asap, then it's a matter of cleaning each and every php file. Though without the root file, they mostly do nothing, though that depends on the virus to be honest.

If you post the full text, I can maybe help more.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help me DECODE this php code :( Buyer1seller PHP 13 Aug 6th 2009 3:31 am
Php Decode Nelson_G Programming 1 Dec 3rd 2008 7:47 pm
Can Any one Decode This Php Code ? Mina_ms PHP 3 Sep 11th 2008 3:22 pm
PHP JSON Decode greatlogix PHP 0 May 26th 2008 4:56 am
PHP JSON Decode greatlogix PHP 0 May 26th 2008 2:54 am


All times are GMT -8. The time now is 5:29 am.