Most of the people are facing computer due to autorun.inf that are placed inside pendisks that manage quickly infect computers when users double-click on the icon to open the pendisk.
A virulent computer will add these files on the root of a target USB disk:
CODE
autorun.inf
Recycled [folder]
Recycled\ctfmon.exe
If you think your computer is safe - open up windows explorer --> Tools --> Folder Options --> Check "Show Hidden system files"
And take another look.
---
Now, I'll mention a way to remove these annoying files but it would be nice to know which other techniques exist out there to remove this menace.
Let's imagine that on this example your USB disk is placed on drive E:
- You open up a command prompt window (type cmd.exe on the run window)
- Let's remove the pesky file - type:
CODE
erase E:\aurorun.inf /f /a
- Add a dummy folder:
CODE
md E:\autorun.inf
- Add write protection:
CODE
attrib +s +h +r E:\autorun.inf
This is what I use to make my pendisks immune to virus whenever walking around several other machines.
A virulent computer will try to create a autorun.inf on the root of the pendisk but as a folder already exists this operation won't be possible. Some virus might try to delete this folder, but since we add the additional protection attributes - it will be somewhat safer.