Protecting Drives against autorun.inf



Windows has some serious flaw that make it very easy for viruses to spread through your (our) thumbdrives, flashdisks, or any other removable devices. The trick behind this is the file called autorun.inf. This file contains the information about the autorun action that windows will perform when double-clicking the drive on My computer. If the content of the file instructs to open a virus, this action will be performed each time you click on the drive in My Computer. Luckily, its easy to win this war :P. Here's how to secure your removable disk from this annoying file, by creating a fake, stealth autorun.inf
  • Browse to your removable drive
  • Create a new folder
  • Rename the folder as autorun.inf
  • Now, open the command prompt [how?]
  • In command prompt, change to your drives directory. For example, if your flash drive is labelled I: in My Computer, then type in the command prompt I: and press enter
  • Then type attrib +s +r +h autorun.inf
The last command is to protect and hide our fake autorun.inf and make sure that the file is irreplaceable by the malicious autorun.inf file. Now, next time you plug-in your flash drives on an infected computer, the malicious autorun.inf cannot be copied into your flash drives, thus saving your drives from being a vvirus carrier afterward. The virus itself, however, might be copied into the drive, but let your anti-virus take care of that.. :)

0 comments

Make A Comment
top