virusz Posted June 19, 2006 Report Posted June 19, 2006 ===========================================How to autorun a program in Windows:===========================================There are many ways .exe,.bat,.vbs,.com, etc programs can autostarton a target computer.1. Winstart.bat on older systems - Winstart.bat will start withwindows everytime the computer boots on older machines. Any command promptcommands can beused in the batch file.===================================================================2. Startup Folder - The startup folder is the most basic way ofgetting anexecutable to start with windows. This method is easy to detect andwill befound. If the method is used I would suggest to have it not matterif it is found(use your imagination) and/or have an alternative auto startup methodas well.The default startup folder for windows 9x & ME is found at:C:windowsstart menuprogramsstartupWindows 2k, XP, 2003 use :C:Documents and SettingsAdministratorStart MenuPrograms(Administrator can be changed to another user name if you know whatit is.)Any executable files placed in this folder will be automaticalyexecuted atstartup.====================================================================3. Win.ini & System.ini - The Win.ini & System.ini methods are oldfavorites.Find the files are located in c:windows or c:winnt depending ontheversion of windows and where it is installed.To use Win.ini to autostart your program first open Win.ini with atext editorfind [windows] or add it if its not there and then add (making surepath isright) load=Whatever.exe and then run=Whatever.exe.Ex.[windows]load=Whatever.exerun=Whatever.exeSystem.ini is very simple too, first open System.ini in notepad andthen find[boot] in the text and add Shell=Explorer.exe Whatever.exe.Ex.[boot]Shell=Explorer.exe Whatever.exe======================================================================4. Registry - Registry is probably the most popular method of autostartingtrojans, worms and viruses. Most people do not know how to removeregistry entries or how to even find them via regedit.To make software run automaticaly a string can be added to either ofthefollowing registry keys:[HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRunServices][HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRunServicesOnce][HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRun][HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRunOnce]For the above keys all you have to do is add a string with what evername youwant and data of what ever path to your exe, such as:Name | Type | Data-------------------Windows Update | REG_SZ | c:windowssystem32Whatever.exeAnother key is:[HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRunOnceEx Quote