[There's been quite a bit of interest in this post and I've expanded on it quite a bit. Please post any comments or questions to help me improve this guide.
- Neil]
Keith and I have both run into situations where we want to recover a Windows computer by cleaning it up with a Linux Live (bootable) CD distro. This offers several advantages to cleaning up an infected or compromised computer by booting into Windows:
- It prevents the malware, if it exists, from jumping from the infected computer or partition we are trying to fix to the repair partition or boot medium.
- If we boot from a CD, there's actually no way to alter the boot medium, since it's read-only.
Also, In Knoppix 5.1, you can boot from the Knoppix CD and install F-Prot with the Synaptic Package Manager:
- Run Synaptic Package Manager: K > KNOPPIX >Manage Software in KNOPPIX (kpackage)
- Click Search.
- Type f-prot in the Search: field and click [Search]
- Check f-prot-installer
- Click [Apply Changes]
- Open Details on the Applying Changes dialog box by click on the little triangle.
- the F-Prot installer prompts you in the Details box. Select Download and install and select [OK] (use the Tab key and Return to make selections)
I went straight to the source, from F-Prot: Download F-PROT Antivirus for Linux Workstations.
I downloaded the Perl-based installer, which also happens to have the largest version number (6.01, today), to my Knoppix Home directory. To install F-prot:
- Right-click on the downloaded tgz file and select Extract Here. This should create a directory in your home directory called f-prot.
- cd f-prot/
- ./install-f-prot.pl
- Just accept the default choices during the installation, unless you have a reason not to. The installer will download the latest definition files.
fpscan /media/hda1
replacing "/media/hda1" with the path to the drive you want to scan. Enter fpscan by itself at the command prompt to see a list of options. The f-prot directory also contains documentation (f-prot/doc/html if you want to use a browser).
Remember, everything disappears when you reboot, so if you don't want to have to download the F-Prot installer, copy the compressed (tgz) file to a USB drive. Then, when it's time to install it again, just boot from Knoppix, copy the tgz file to the Knoppix home directory, and then follow the steps above. Note you still need a live Internet connection to get the latest definition files.
We explored using ClamAV, which is included in Knoppix 5.1 but is not up-to-date with the latest definitions. To update ClamAV (sudo freshclam) it turns out you need to update the libc6 libraries first, which is such a pain and so time-consuming that I ended up just using F-Prot, following the steps above (although Keith and I were able to scan a laptop with ClamAV after running through an incredibly complex update procedure). Thanks to Paul for the comment on the ClamAV issue, below. If you have any more comments or questions about this procedure, let me know.
2 comments:
good advice, except clamav requires a newer version of libc6 than is available on knoppix (usually). If freshclam doesn't work, you're pretty much done. On to f-prot then.
Paul,
After going through the process of updating libc6, just to get freshclam to work, I've decided it's much easier just to go with F-Prot. I've updated the original post to describe a reliable way to run the latest F-Prot from a Knoppix 5.1 boot CD.
Thanks!
Post a Comment