this might help
https://github.com/sminozzi/casino-seo-poisoning-guidehacker probably still has an access to server through infected/fake process and/or cronjobs, Ive used gemini to solve this problem
you can start with checking who is connected to your server right now with following command:
netstat -antp | grep -E "ESTABLISHED|LISTEN"you will see something like this:
tcp 0 0 *IP*:*PORT* *IP*:*PORT* ESTABLISHED 2927707/nginx: work
tcp 0 0 *IP*:*PORT* *IP*:*PORT* ESTABLISHED 2975254/dovecot/ima
tcp 0 0 *IP*:*PORT* *IP*:*PORT* ESTABLISHED 2212967/dovecot/ima
tcp 0 0 *IP*:*PORT* *IP*:*PORT* ESTABLISHED 2945502/sshd: root
tcp 0 0 *IP*:*PORT* *IP*:*PORT* ESTABLISHED 2928151/cwpsrv: wor
look for "cwpserv" and "sshd". other ones like dovecot, nginx etc are usually fine, if *IP* is unknown to you then I suggest you to kill the connection and ban the IP
then you can check for deleted processes:
ls -al /proc/*/exe 2> /dev/null | grep 'deleted'if have any output then its probably is infected process which was used by hacker to get access, use gemini or w/e AI for further steps, you need to find where this process came from and delete files