D
D
Drno2021-10-27 11:35:08
Joomla
Drno, 2021-10-27 11:35:08

How to cure a virus on a website?

Good afternoon. A friend has a simple site, about a week ago he began to show a large load on the database and the site itself. Apparently some kind of virus in the php files
If anyone can tell me what to delete - I will be grateful
PS - the Chukchi is not a programmer, the Chukchi is a system administrator. I understand that there is harm in the code, but I don’t rummage in php)
Hoster’s answer

spoiler
Найдены вирусы, спам-ссылки или уязвимые скрипты!
Уязвимые скрипты - 1 шт.
Вредоносный код в php - 2 шт.
Вредоносный код в javascript - 0 шт.

Уязвимые скрипты
/home/p259806/www/xn--e1ajcfyi3f.xn--p1ai/libraries/joomla/session/sess..

Вредоносный код в php
/home/p259806/www/xn--e1ajcfyi3f.xn--p1ai/templates/ot_corpmx/html/com_..

/home/p259806/www/xn--e1ajcfyi3f.xn--p1ai/templates/ot_corpmx/html/com_..


I suspect that the problem is somewhere here?
61790f1f94316259239697.png

File content. The code does not fit here, uploaded to the cloud
https://mega.nz/folder/8dM2nTIQ#rjsnn6-6i0j7ytMVK7lR9A

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Fear, 2021-10-27
@Kypidon4ik

https://github.com/gregzem/aibolit/blob/master/rea...
Good luck!

E
exmmth, 2021-10-27
@exmmth

base64_decode(...) here you got nasty things with 99.9% probability.
Further algorithm of actions:
1. download the archive of the site (can be done using akeeba backup), drive it through the aibolit, it will show you the places of damage, delete the extra code.
2. Update step by step judging by the secondary signs xn--e1ajcfyi3f.xn--p1ai/language/en-GB/en-GB.xml you have version 2.5.5, google how to upgrade from your version to 3.x (There 3- 4 transitional stages will be as far as I remember)
UPD update joomla 2.5 to 3.x
https://joomlaportal.ru/faq/installation-and-updat...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question