first run your system in safe mode, then go to your my computer properties and enable the system restore function.
then restart your computer and run in command prompt mode. in the command mode type the following.
ATTRIB Autorun.inf -H -S -R.
if the file is found in the Drive then give.
DEL Autorun.inf.
<similarly you can do it for all drives. but you have to restart your system for each drive.>
Sunday, July 17, 2011
How to create Autorun.inf virus
This document explains you how you can form an autorun inf file. It further elaborates on the customization of the icon text and icon menu.
When we insert a CD, we find that the files on it can be run automatically. This is a utility provided to the users by Windows. However, before we can use it we need to verify if it is enabled on our system. Running a file automatically saves a lot of effort and time. This article gives us an insight into creating such a file and customizing the icon text and menu.
Windows provide users with simple utility that runs automatically applications found on a CD, when inserted in the CD drive.
To make use of this option, you must verify that it is enabled under your system configuration. If it is the case, upon inserting a CD or DVD,Windows will try to open an application.This procedure is due to the "Autorun.inf" (primary instruction file associated with the Autorun utility) found at the root directory of the CD.
First create a new (text-only) file and name it as autorun.inf.; once created, open it with your favorite text editor (notepad) and type in the following syntax:
Basically it should be like this :
If the selected application is found in a sub folder, the path must be specified:
If an argument is to be passed for the application to be auto played:
If you want to change the default icon add the following syntax:
Example:
The icon file should also reside in the root directory of the CD.
Simply add the following command line:
To edit the menu that appears when you right-click on the icon simply add the following syntax:
Keep in mind that the following parameters should be defined: shell\*\command and shell\* ,as they are the keywords, firstly for defining the application to be executed and secondly, for the text displayed in the menu.
When we insert a CD, we find that the files on it can be run automatically. This is a utility provided to the users by Windows. However, before we can use it we need to verify if it is enabled on our system. Running a file automatically saves a lot of effort and time. This article gives us an insight into creating such a file and customizing the icon text and menu.
Allowing autorun
Windows provide users with simple utility that runs automatically applications found on a CD, when inserted in the CD drive.
To make use of this option, you must verify that it is enabled under your system configuration. If it is the case, upon inserting a CD or DVD,Windows will try to open an application.This procedure is due to the "Autorun.inf" (primary instruction file associated with the Autorun utility) found at the root directory of the CD.
Creating an Autorun.inf file
First create a new (text-only) file and name it as autorun.inf.; once created, open it with your favorite text editor (notepad) and type in the following syntax:
[autorun]
parameter=value
Basically it should be like this :
[autorun]
open=myapplication.exe
Variations
If the selected application is found in a sub folder, the path must be specified:
[autorun]
open=folderA\folderA1\myapplication.exe
If an argument is to be passed for the application to be auto played:
[autorun]
open=myapplication /argument
Customizing the icon
If you want to change the default icon add the following syntax:
icon=icon.ext
Example:
[autorun]
open=myapplication.exe
icon=myicon.jpg
The icon file should also reside in the root directory of the CD.
Customizing the icon text
Simply add the following command line:
label=My application
Customizing the icon menu
To edit the menu that appears when you right-click on the icon simply add the following syntax:
shell=start shell\start\command=path/myapplication.exe
shell\start=Run Application
shell\read\command=notepad++.exe files/readme.txt
shell\read=open readme.txt
Keep in mind that the following parameters should be defined: shell\*\command and shell\* ,as they are the keywords, firstly for defining the application to be executed and secondly, for the text displayed in the menu.
Subscribe to:
Posts (Atom)