Monday, August 23, 2010

Desmume Config Pokemon Heart Gold

10.04 Lucid Lynx Clean Windows virus from Linux LiveCD disk in Ubuntu

What follows is a tutorial I've seen in linux-party.com and which I found interesting. Who knows, may be useful someday. So I copied unchanged.

Disinfect Virus Windows to Linux.

in principle (and in theory), that you could do from your LiveCD, because when the program will install a virtual drive in RAM. These are the steps ... Disinfect

Windows system infected by a virus or malware is quite easy thanks to the ClamAV Antivirus, powerful and versatile anti-virus free for Linux and other flavors of Unix.


1 .- Install ClamAV, either with YUM or APT-GET (depending on the distro you have installed)
  • sudo apt-get install clamav
  • yum install clamav
2 .- It clamav installed, do an update List of virus definitions: freshclam
3 .- If you have mounted the partition and do not know how to locate, we look to the command:
    fdisk-l
We deploy a list similar to this where we see our partitions:

Disk / dev / sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors / track, 19452 cylinders Units = cylinders of
16065 * 512 = 8225280 bytes Disk identifier
: 0 ×
41ab2316 Device Boot Start End
Blocks Id System
/ dev/sda1 May 1
40,131 Dell Utility / dev/sda2 * 6 19 046 152 946 832 + 7 HPFS / NTFS
/ dev/sda3 19047 19452 3261195 db CP / M / CTOS / ...

4 .- This example is easy to detect the Windows partition as the partition is NTFS . Before you can scan and remove virus / malware that plague it is necessary to mount it.

4.1 .- Create a directory in which you mount the partition:
  • mkdir / media / windows
4.2 .- We set this partition (in our example, / dev/sda2) with the command:
  • mount / dev/sda2 / media / windows
  • 5 .-
Now run the scan as follows (this will take time, depending on the capacity of your hard drive and the space occupied)
  • mkdir / tmp / virus
  • clamscan-v - r-bell-move / tmp / virus-log / tmp / virus.log / media / windows
clamav instructions mencionandas are up to:
  • -v: verbose - Prints out the details of the scan
  • -r: recursive - Check all files and directories
  • - bell: bell - makes a noise when a virus is detected
  • - move: Move the virus to the / tmp / virus / To delete them directly using the - remove = yes
  • - log: Keep a log of all files in / tmp / virus.log
  • / media / windows: This is the directory where we will scan our windows partition
  • mounted
  • not included in the example, but using the - you can exclude certain file types excluded under. Example: - exclude =. avi
6 .- Finally, delete the directory where you moved the infected files. But before doing that, it is advisable to check which files were detected as infected:
  • cd / tmp / virus
  • In
ls If you think you can delete ...
  • rm-rf / tmp / virus
Note: You can also install ClamTk, a graphical interface to clamav, but does not allow using some of the features described in this article. For that reason, it is advisable to use clamav directly from the terminal.

If you have not installed any Linux distro and you want to disinfect your Windows by following this little How-To, download a LiveCD and run the above steps, you can do it using a Live USB . Sure, it would be better definitely get rid of Windows and Linux finally adopted the philosophy. :) Forget the virus and find out why Linux is more secure than Windows .

NOTE: This article was translated from English page: Phrank's Ubuntu Blog

We also used references: Usemoslinux .


Seen here: http://www.linux-party.com/modules.php?name=News&file=article&sid=6123/desinfectar-a-windows-desde-linux-de-virus.

0 comments:

Post a Comment