document updated 16 years ago, on Jun 30, 2008
There are several ways to get AutoRun/AutoPlay to work on your USB drive:
- Get a U3-enabled flash drive, and replace the built-in autorun software with a home-made autorun.inf
- (you probably want to write/find some code that will find the read/write drive, and run over there instead, since your autorun will initially be running from a very small read-only drive)
- In Windows XP Service Pack 2, the AutoPlay behavior changed quite a bit. Now when you insert some media, Windows will pop up a dialog asking you to choose which action to perform.
- documentation:
- example autorun.inf's:
- Registry keys:
- There are a ton of crappy VB tray apps out there that scan a drive whenever it's plugged in, and will trigger its autorun. (this of course requires some extra pre-existing setup)
- (yeah, and how many of them will autorun your media when the computer is locked? heheheh...)
- Use social engineering to get someone to manually run the executable
viruses
- apparently virus authors have put some thought into figuring out how to make autorun best run from USB (obviously this is a bad thing when they do it, but a good thing if it makes my job easier)