First, we must find all infested files using following command. root@hr# cd /home/username/public_html/ root@hr#grep -lr –include=*.php “eval(base64_decode” * How to Remove the code ? grep -lr –include=*.php “eval(base64_decode” /home/username/public_html/ | xargs sed -i.bak ‘s/<?php eval(base64_decode[^;]*;/<?php\n/g’ Please try it.
See MoreTag: hostripples
Cpanel: Various Log Paths
1. Apache Logs: /usr/local/apache/logs/error_log 2. cPanel Logs /usr/local/cpanel/logs/error_log 3. Exim Logs: /var/log/exim_mainlog 4. FTP and Server logs /var/log/messages 5. Cron logs: /var/log/cron 6. Mysql Logs /var/lib/mysql/hostname.err Thanks.
See MoreLinux+Cpanel Server Configuration files
Following are the most IMP server configuration files in cPanel server Apache Config: /usr/local/apache/conf/httpd.conf Exim: /etc/exim.conf Mysql: /etc/my.cnf Named: /etc/named.conf cpanel : /var/cpanel/cpanel.config Yum: /etc/yum.conf Thanks.
See More
You must be logged in to post a comment.