How to Create autorun file for pendrives or usb drives

Hey Friends, today i am going to teach you "How to create a Autorun.inf file for USB drives or simply CD drives" so that it can execute programs. Programs can be viruses, keyloggers, rats or simply normal services that you want to execute automatically whenever user open his/her pendrive or USB drive. Its the easiest way to spread your programs to schedule, so that they can execute by itself without any user interaction.
Creating a simple or complex autorun file for your pendrive or USB drive.

Note: You can also follow these instructions when making a CD. You just have to burn it on the cd.


create autorun file for Usb drives or pendrives
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 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 things and also for bad things depending on what you like. I am Destructive Mind, so i use it to run my coded viruses and keyloggers to execute automatically by themselves as soon as user open folder or simply opens pen drive or usb drive.



This tutorial covers:
  • Creating a USB Autorun.inf
  • Changing label\icon of thumbdrive
  • Making a new option appear in the autorun menu
  • Making programs automatically run when plugged in
So Read On How to create Autorun.inf file...
  
Creating a USB Autorun.inf :

To create an autorun file, open Notepad and save ‘autorun.inf’’ (with quotes) and save it to the root of the drive. All it needs to have is in the first line;


[autorun]



Changing label\icon of thumbdrive:

Follow the steps in Creating a USB Autorun.inf. Before you save it, type this in in this order!


[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:


Right, so make your autorun file and type this into Notepad:






[autorun]

icon=default

label=[yourlabelhere]



action=programname.exe








Open Program




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:


Follow the same instructions, blah blah blah;



[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 to execute a simple program called programname.exe

If you have any questions or queries, ask in form of comments. If you like my articles just a comment of appreciation will do the thing.

Thanks for reading! 

6 comments:

  1. Thanks for this post. I always wanted to know this but for some reason didn't bother searching for it.

    ReplyDelete
  2. Lokesh Singh, brother very good,

    ReplyDelete
  3. Thank you! You are awesome! Would you be able to make this work with a program that extracts information from the computer?

    ReplyDelete
  4. I did not get "root directory"!

    ReplyDelete
    Replies
    1. root directory is just the first location of the drive without opening any sub folders..its the first location u see when u open ur pen drive..of example if ur pen drive is F: f:\ is the root directory

      Delete
  5. when I save it as ''autorun.inf'' it says AUTORUN.INF not accessible and access denied
    what should I do?

    ReplyDelete

Please do not spam.

Copyright © 2012 Learn How to Hack - Best Online Ethical Hacking Website All Right Reserved
Designed by Hackingloops.