Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Windows (http://www.go4expert.com/articles/windows/)
-   -   Destroy virus from hard drive in 15 seconds (http://www.go4expert.com/articles/destroy-virus-hard-drive-15-t15463/)

neo_vi 11Dec2008 14:34

Destroy virus from hard drive in 15 seconds
 

Introduction



If some viruses are attacked especially a variant of autorun. U'll see an "Open with..." dialog when u try to open a drive.

Here are the steps to delete it from ur hard drive.

Goto command prompt and goto the drive where u'll get the "Open with..." dialog.
To do this
Code:

step 1 : start -> run
step 2 : type cmd
step 3 : enter the drive name followed by a colon

type attrib

It'll list out the attributes of all the files in the drive(only files, not folders and files inside that folders)

U'll see some of the files with attributes s h r
http://www.go4expert.com/images/arti...ic1tut2hb8.jpg

Type this code

Code:

attrib -s -h -r *.*
The above line resets the attributes of all the files in the drive. Then delete the files which has s h r attributes set.(see picture) to delete the virus file

Code:

del <filename>.<extension>

e.g
del w.cmd
del autorun.inf

After removing the virus file from each drive Logoff ur PC and Logon again. This is a must. In somecases It may be optional. To be safe perform it.

NOTE: The files shown here are just an example. Original virus file may be of different name. The virus will affect any drive. I've just taken D: drive for illustration. THIS CODE SHOULD NOT BE USED IN "C:" DRIVE IF WINDOWS IS INSTALLED IN IT, AS THIS DRIVE CONTAINS SYSTEM FILES.

sun_kangane 12Dec2008 02:20

Re: Destroy virus from hard drive in 15 seconds
 
yaa this is nice ..................

but what if the virus done the changes in registry to get "open with.." window. How to restore the original registry settings.

dreams 12Dec2008 22:01

Re: Destroy virus from hard drive in 15 seconds
 
oh!
This is a very useful information for all of us..

Bhullarz 16Dec2008 18:57

Re: Destroy virus from hard drive in 15 seconds
 
Quote:

Originally Posted by sun_kangane (Post 40184)
yaa this is nice ..................

but what if the virus done the changes in registry to get "open with.." window. How to restore the original registry settings.

for the first time, each autorun virus needs this file, once the virus code gets executed, it modifies the registry entries. So there would be autorun.inf on your drive. Just open the autorun.inf with notepad and search for .bat or .exe or .com filename. Now open registry edit from run by typing "regedit" and search for the same file name you found in autorun.inf. and delete it yourself or you can just use any registry cleaner after deleting the virus code from your system. B'coz such cleaners look for the orphan registry entries which are not associated with any file.
For the safe deletion of virus code, use search feature of windows with the options selected to search in hidden files and system files. Usually such viruses copies itself into windows/system32 folder and one hidden system folder "system volume information". Just delete them. If any of the virus file is not getting deleted, then just check whether file is executing or not. You can check this using task manager / process monitor(recommended).
Just end process and thentry to delete the file.

I hope this info will help..

sun_kangane 16Dec2008 19:40

Re: Destroy virus from hard drive in 15 seconds
 
nice information bro...............................thank........... .

growingboy 21Dec2008 13:50

Re: Destroy virus from hard drive in 15 seconds
 
Its always best to have an antivirus. So that u don't need to worry about ur system much

NDL 21Dec2008 15:31

Re: Destroy virus from hard drive in 15 seconds
 
tnx nice peace of info

neo_vi 27Dec2008 14:42

Re: Destroy virus from hard drive in 15 seconds
 
thank u all 4 ur comments

growingboy 27Dec2008 20:47

Re: Destroy virus from hard drive in 15 seconds
 
nice info.. keep it up

TriG0rZ 30Dec2008 22:10

Re: Destroy virus from hard drive in 15 seconds
 
bloody awesome man, thanks :D!


All times are GMT +5.5. The time now is 23:23.