Skip to main content

How To Remove Malware From Any Website - Tips and Tricks

There are couple of easy steps we need to follow to clear malware from your website.
And here I’m going to describe those steps.

Here I'll explain how to install and configure Linux Malware Detect (aka MalDet or LMD for short)


You just need to follow these steps. If you found any difficulties , you can post in the below comment box. I’ll surely help you regarding your post.


So let’s begin.


Step 1:

First of please go to this directory using below command
root@server[~]#cd /usr/local/src/

Now please download the jar using below command
root@server[~]#wget http://www.rfxn.com/downloads/maldetect-current.tar.gz

Once you download the jar, please extract it using below command

root@server[~]#tar -xzf maldetect-current.tar.gz

After extract you need to go the maldet folder using below command

root@server[~]#cd maldetect-*

Now, run the below command to install maldet.
sh ./install.sh or sudo sh ./install.sh

It will give below output
Linux Malware Detect v1.3.4
(C) 1999-2010, R-fx Networks
(C) 2010, Ryan MacDonald
inotifywait (C) 2007, Rohan McGovern
This program may be freely redistributed under the terms of the GNU GPL

installation completed to /usr/local/maldetect
config file: /usr/local/maldetect/conf.maldet
exec file: /usr/local/maldetect/maldet
exec link: /usr/local/sbin/maldet
cron.daily: /etc/cron.daily/maldet

maldet(32517): {sigup} performing signature update check…
maldet(32517): {sigup} local signature set is version 2010051510029
maldet(32517): {sigup} latest signature set already installed


Step 2: Configuring LMD

By default all options are fully commented in the configuration file, so configure it according to your needs. But before making any changes let’s have a detailed review of each option below.

email_alert : If you would like to receive email alerts, then it should be set to 1.
email_subj : Set your email subject here.
email_addr : Add your email address to receive malware alerts.
quar_hits : The default quarantine action for malware hits, it should be set 1.
quar_clean : Cleaning detected malware injections, must set to 1.
quar_susp : The default suspend action for users wih hits, set it as per your requirements.
quar_susp_minuid : Minimum userid that can be suspended.
Open file /usr/local/maldetect/conf.maldet and make changes according to your needs
nano /usr/local/maldetect/conf.maldet

To update the maldet use the below commands.
maldet -u or maldet -d
To scan the files. perticular user
maldet -a /home/username/

It will scan all the files and provide you the output.

To scan all user under public_html paths under /home*/ this can be done with:
root@server[~]# maldet --scan-all /home?/?/public_html

root@server[~]-maldet --scan-all /home
To scan the same path but the content that has been created/modified in the last 5 days:
root@server[~]# maldet --scan-recent /home?/?/public_html 5

To scan but forget to turn on the quarantine option, you could quarantine all malware results from a previous scan with:
root@server[~]# maldet --quarantine SCANID

If you wanted to attempt a clean on all malware results from a previous scan that did not have the feature enabled, you would do with.
root@server[~]# maldet --clean SCANID

If you had a file that was quarantined from a false positive or that you simply want to restore (i.e: you manually cleaned it), you can use the following:
root@server[~]# maldet --restore config.php.2384
root@server[~]# maldet --restore /usr/local/maldetect/quarantine/config.php.2384









Comments

Popular posts from this blog

A memorable trip to Kerala

Before starting anything I just want to write a small intro about myself. Although I'm a working person but at the same time I'm a frequent traveler. And I love to travel all over the world. But as I'm a working person and I've a family, so I need to plan my trip with basis of couple of constrains like number of days we are going to travel , budget, also need to check its a pick up season or not. Because if its a pickup season means your automatically your budget will be increased. Except all these things I need to check the climate when we will arrive on that place. Of-course no one wants to destroy their travel experience because of the bad weather. As I told I'm a frequent traveler, so normally in every year two times we used to plan our family trip. This time we have planned for Kerala tour for 5 days. And exact date was 1st June to 6th June. Normally I always use a trick to make my trip. Before going to trip I usually called to few of travel agencies and

Free IPL 2020 Live stream || How to watch IPL 2020 Live without Hotstar subcription in your mobile device and save Rs. 399 || Best four apps for free IPL 2020 live stream

Today I've found four app from the google playstore, that actually showing live stream of IPL2020 absolutely free. Absolutely no need to subscribe Hotstar for watching IPL. Note: App name and link updated in the below of this blog. Also added three more app name. But I'll share this app name tomorrow. Today I'll watch full IPL match and after testing then only I'll tell this app name with URL in this page and with a full review of that stream quality. Because in my website I always try to post legit and correct information for my readers. So please stay tune with me to get details about this app. This app actually showing stream from some different country channel. I've tried to browse that channel directly but its need vpn to connect that channel directly. So I found this alternative app, which is providing total six alternative URL's for see IPL 2020 live stream. Anytime you face any issue with one link, you can change the link and bingoo... enjoy free stream.

Amazing winter trip in Shimla Kullu Manali

Before writing anything here I want to say one thing, this was our first tour after my marriage. So our full tour was planned by us only, and we made our trip plan very budget friendly way and everything I had booked well ahead (4 months) before of our journey date. Tour itinerary Tour Duration: - 06 Nights 07 Days Day 01: Kolkata Delhi to Shimla on 11st Nov 2012 Day 02: Shimla - Kufri - Shimla on 12nd Nov 2012 Day 03: Shimla to Manali via Kullu on 13rd Nov 2012 Day 04: Manali Sightseeing 14th Nov 2012 Day 05: Manali - Solang Valley (Snow Point) 15th Nov 2012 Day 06: Manali to Chandigarh 16th Nov 2012 Day 07: Chandigarh to Delhi Kolkata 17th Nov 2012 Shimla is well connected through road, train and air. So you can choose any one alternative for travel there. We choose train Howrah-Kalka mail and booked ac 3A for our journey. And 21st Nov 2012  we started our journey by Kalka mail at 8:40pm from Howrah. Although train was late for 15 m