Tuesday, April 9, 2013

All the files in a USB drive turned into EXE files

That's a panic , right ? . So , i got this flash drive with all the files inside of it shown as windows executables, when i showed all the system and the hidden files, I found that all the original files were hidden, and the shortcuts on the flash were only targeted to run the virus.

As I expected , the USB drive was virused . To cure it , i did the following :
1- Scanned it with AVG , to remove the virus.
2- Opened the CMD as an administrator.
3- Entered the following command :


attrib -S -H /S /D


-S : Removes the system attributes.
-H : Removes the Hidden attributes
/S : Works on sub-folders and files.
/D : Works on the directories' attributes as well.

That's it .. Good Luck

Popular