Last updated: February 28 2021
Thousands of sites are recently affected by lovegreenpencils malware, directing users to:
This contamination affects PHP files, JS files, wp_posts tables, wp_options site URLs.
Need help? Let us clean your site.
To fix a hacked website, follow these steps:
2. Disable MySQL remote access, especially if you’re using Plesk.
3. Change MySQL user password.
2. Extract wordpress-5.5.3.zip, add wp-config.php from your infected site inside wordpress folder ( make sure you check its content and clear malicious lines – if any ).
3. Add plugins and theme manually, one by one, inside /wp-content/plugins/ and /wp-content/themes/
4. Upload everything back to your server.
Easiest way would be to edit wp-config.php file via FTP or hosting dashboard ( replace example.com with your own domain name ).
define( 'WP_HOME', 'http://example.com' ); define( 'WP_SITEURL', 'http://example.com' );
Look for “String.fromCharCode”, “lovegreenpencils”, “secondaryinformtrand” and “list.insertBefore(s, list.childNodes)”.
Insert the following script with pack.php file and place it inside your root folder. This way you can pack all PHP and JS files, which can be cleaned locally.
Search and replace tools for malicious strings inside multiple files: dnGrep, grepwin, VisualGrep ( mac ), powergrep ( paid ).
Example of infected index.php file:
Example of infected JS file:
Attackers usually alter wp_posts and wp_options tables. Example:
The following SQL commands may be used to clear any malicious JS injections:
2. Check users with administrator privileges.
Disable any unmaintained abandoned plugins.
This way, any infected cached pages listed on Google will be updated.
So make sure other sites hosted on the server are secured. And better move each site with a separate cPanel, after cleanup will be completed.
Here are some live samples from the server logs:
184.108.40.206 – – [23/Nov/2020:05:28:36 +0800] “POST /wp-content/uploads/wp-stream.php HTTP/1.1” 200
220.127.116.11 – – [14/Nov/2020:05:05:53 +0100] “POST /wp-content/uploads/2020/11/wpc.php HTTP/1.1” 200
18.104.22.168 – – [22/Nov/2020:23:10:54 +0100] “POST /wp-content/uploads/2020/11/wpc.php HTTP/1.1” 200
22.214.171.124 – – [23/Nov/2020:03:49:54 +0800] “POST /wp-content/uploads/wp-beckup.php HTTP/1.1” 200
Try our Free site check.
If your Google Ads are currently suspended, we would recommend our Platinum plan, which will include malware cleanup and Ads support:
New “linetoadsactive.com” wave of attacks, documented on Nov. 29:
Other malicious links:
Malicious domains used with this attack: checkandgo.info, check-you-robot.online, allowandgo.com, allow-space.com, helpmart.ga, transandfiestas.ga, travelfornamewalking.ga, bluemountainreserve.ga, directedmyfounds.ga, blackwaterforllows.ga, firstlymoveactions.ga, beawickcampaing.ga, suddendictionaryother6.live, suddendictionaryother7.live, evenfreshequate10.live, herfeelfollow10.live, howtestcent15.live, strangethatshop9.live, menweatherremember9.live, theseservesell12.live, willsidenoun10.live.
Malicious IPs: 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11.
Try our Free site check.