Creating Autorun.inf file for executing keyloggers or viruses |
When you plug a USB or pen drive in, you might be interested in making a program or other things happen as soon as you plug it in. The way you accomplish this is through the autorun.inf file. The autorun.inf file is located in the root of the usb drive and tells Windows what to do automatically.
This autorun can be used for good or bad things depending on what you like. I have a destructive mind, so I use it to run my coded viruses and keyloggers to execute automatically by themselves as soon as a user opens the folder or simply opens the pen drive or usb drive.
This tutorial covers:
- Creating a USB autorun.inf
- Changing labelicon of thumbdrive
- Making a new option appear in the autorun menu
- Making programs automatically run when plugged in
[autorun]
Changing labelicon of thumbdrive:
[autorun]
icon=myicon.ico
label=MyLabel
And save. Make sure the icon file is in the root of your drive.
Making a new option appear in the autorun menu:
[autorun]
icon=default
label=[yourlabelhere]
action=programname.exe
Save it and exit. Once again, the program has to be in the root. Now, when you plug it in, the option should appear in the menu.
Making programs automatically run when the USB is plugged in:
[autorun]
Icon=default
label=YourLabelHere
open=programname.exe
And that’s it for this tutorial! Your Autorun program is ready to execute whatever you want. Here I have written how to execute a simple program called programname.exe
Ajeet says
I want to know can i use .bat files in action