# 程序53种自启动方式

**URL:** <https://forum.90sec.com/t/topic/3075>\
**Category:** 交流讨论\
**Created:** [2011 年12 月 19 日 06:46 UTC](https://forum.90sec.com/t/topic/3075 "2011-12-19T06:46:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

作者： ![Micropoor1](https://forum.90sec.com/user_avatar/forum.90sec.com/micropoor1/32/11345_2.png) [@Micropoor1](https://forum.90sec.com/u/Micropoor1)\
发布日期： [2011 年12 月 19 日 06:46 UTC](https://forum.90sec.com/t/topic/3075/1 "2011-12-19T06:46:01Z")

</div>

注册表  
1.

HKEY\_LOCAL\_MACHINE\Software\Microsoft\Windows\Curr entVersion\Run\   
All values in this key are executed.  
2.

HKEY\_LOCAL\_MACHINE\Software\Microsoft\Windows\Curr entVersion\RunOnce\   
All values in this key are executed, and then their autostart reference is deleted.  
3.

HKEY\_LOCAL\_MACHINE\Software\Microsoft\Windows\Curr entVersion\RunServices\   
All values in this key are executed as services.  
4.

HKEY\_LOCAL\_MACHINE\Software\Microsoft\Windows\Curr entVersion\RunServicesOnce\   
All values in this key are executed as services, and then their autostart reference is deleted.  
5.

HKEY\_CURRENT\_USER\Software\Microsoft\Windows\Curre ntVersion\Run\   
All values in this key are executed.  
6.

HKEY\_CURRENT\_USER\Software\Microsoft\Windows\Curre ntVersion\RunOnce\   
All values in this key are executed, and then their autostart reference is deleted.  
7.

HKEY\_CURRENT\_USER\Software\Microsoft\Windows\Curre ntVersion\RunOnce\Setup\   
Used only by Setup. Displays a progress dialog box as the keys are run one at a time.  
8.

HKEY\_USERS.Default\Software\Microsoft\Windows\Cur rentVersion\Run\   
Similar to the Run key from HKEY\_CURRENT\_USER.  
9.

HKEY\_USERS.Default\Software\Microsoft\Windows\Cur rentVersion\RunOnce\   
Similar to the RunOnce key from HKEY\_CURRENT\_USER.  
10.

HKEY\_LOCAL\_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon  
The "Shell" value is monitored. This value is executed after you log in.  
11.

HKEY\_LOCAL\_MACHINE\Software\Microsoft\Active Setup\Installed Components\   
All subkeys are monitored, with special attention paid to the "StubPath" value in each subkey.  
12.

HKEY\_LOCAL\_MACHINE\System\CurrentControlSet\Servic es\VxD\   
All subkeys are monitored, with special attention paid to the "StaticVXD" value in each subkey.  
13.

HKEY\_CURRENT\_USER\Control Panel\Desktop  
The "SCRNSAVE.EXE" value is monitored. This value is launched when your screen saver activates.  
14.

HKEY\_LOCAL\_MACHINE\System\CurrentControlSet\Contro l\Session Manager  
The "BootExecute" value is monitored. Files listed here are Native Applications that are executed before Windows starts.  
15.

HKEY\_CLASSES\_ROOT\vbsfile\shell\open\command\   
Executed whenever a .VBS file (Visual Basic Script) is run.  
16.

HKEY\_CLASSES\_ROOT\vbefile\shell\open\command\   
Executed whenever a .VBE file (Encoded Visual Basic Script) is run.  
17.

HKEY\_CLASSES\_ROOT\jsfile\shell\open\command\   
Executed whenever a .JS file (Javascript) is run.  
18.

HKEY\_CLASSES\_ROOT\jsefile\shell\open\command\   
Executed whenever a .JSE file (Encoded Javascript) is run.  
19.

HKEY\_CLASSES\_ROOT\wshfile\shell\open\command\   
Executed whenever a .WSH file (Windows Scripting Host) is run.  
20.

HKEY\_CLASSES\_ROOT\wsffile\shell\open\command\   
Executed whenever a .WSF file (Windows Scripting File) is run.  
21.

HKEY\_CLASSES\_ROOT\exefile\shell\open\command\   
Executed whenever a .EXE file (Executable) is run.  
22.

HKEY\_CLASSES\_ROOT\comfile\shell\open\command\   
Executed whenever a .COM file (Command) is run.  
23.

HKEY\_CLASSES\_ROOT\batfile\shell\open\command\   
Executed whenever a .BAT file (Batch Command) is run.  
24.

HKEY\_CLASSES\_ROOT\scrfile\shell\open\command\   
Executed whenever a .SCR file (Screen Saver) is run.  
25.

HKEY\_CLASSES\_ROOT\piffile\shell\open\command\   
Executed whenever a .PIF file (Portable Interchange Format) is run.  
26.

HKEY\_LOCAL\_MACHINE\System\CurrentControlSet\Servic es\   
Services marked to startup automatically are executed before user login.  
27.

HKEY\_LOCAL\_MACHINE\System\CurrentControlSet\Servic es\Winsock2\Parameters\Protocol\_Catalog\Catalog\_En tries\   
Layered Service Providers, executed before user login.  
28.

HKEY\_LOCAL\_MACHINE\System\Control\WOW\cmdline  
Executed when a 16-bit Windows executable is executed.  
29.

HKEY\_LOCAL\_MACHINE\System\Control\WOW\wowcmdline  
Executed when a 16-bit DOS application is executed.  
30.

HKEY\_LOCAL\_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit  
Executed when a user logs in.  
31.

HKEY\_LOCAL\_MACHINE\Software\Microsoft\Windows\Curr entVersion\ShellServiceObjectDelayLoad\   
Executed by explorer.exe as soon as it has loaded.  
32.

HKEY\_CURRENT\_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows\run  
Executed when the user logs in.  
33.

HKEY\_CURRENT\_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows\load  
Executed when the user logs in.  
34.

HKEY\_CURRENT\_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer\run\   
Subvalues are executed when Explorer initialises.  
35.

HKEY\_LOCAL\_MACHINE\Software\Microsoft\Windows\Curr entVersion\Policies\Explorer\run\   
Subvalues are executed when Explorer initialises.

文件夹

1. windir\Start Menu\Programs\Startup\
2. User\Startup\
3. All Users\Startup\
4. windir\system\iosubsys\
5. windir\system\vmm32\
6. windir\Tasks\

文件

1. c:\explorer.exe
2. c:\autoexec.bat
3. c:\config.sys
4. windir\wininit.ini
5. windir\winstart.bat
6. windir\win.ini - [windows] "load"
7. windir\win.ini - [windows] "run"
8. windir\system.ini - [boot] "shell"
9. windir\system.ini - [boot] "scrnsave.exe"
10. windir\dosstart.bat
11. windir\system\autoexec.nt
12. windir\system\config.nt

---

<div class="post-metadata">

作者： ![315156883](https://forum.90sec.com/letter_avatar_proxy/v4/letter/3/7c8e57/32.png) [@315156883](https://forum.90sec.com/u/315156883)\
发布日期： [2011 年12 月 20 日 09:10 UTC](https://forum.90sec.com/t/topic/3075/2 "2011-12-20T09:10:44Z")

</div>

记下了，以后用。。。

---

<div class="post-metadata">

作者： ![712732916](https://forum.90sec.com/letter_avatar_proxy/v4/letter/7/a183cd/32.png) [@712732916](https://forum.90sec.com/u/712732916)\
发布日期： [2012 年1 月 10 日 09:43 UTC](https://forum.90sec.com/t/topic/3075/3 "2012-01-10T09:43:41Z")

</div>

这个真有用 - -转走了

---

<div class="post-metadata">

作者： ![ayiis](https://forum.90sec.com/letter_avatar_proxy/v4/letter/a/ebca7d/32.png) [@ayiis](https://forum.90sec.com/u/ayiis)\
发布日期： [2012 年3 月 13 日 14:37 UTC](https://forum.90sec.com/t/topic/3075/4 "2012-03-13T14:37:41Z")

</div>

目测只有tasks能过

---

<div class="post-metadata">

作者： ![user56](https://forum.90sec.com/user_avatar/forum.90sec.com/user56/32/11423_2.png) [@user56](https://forum.90sec.com/u/user56)\
发布日期： [2012 年3 月 14 日 06:18 UTC](https://forum.90sec.com/t/topic/3075/5 "2012-03-14T06:18:43Z")

</div>

随即测试了2个 似乎无效，测试环境：windows xp

1. windir\winstart.bat
2. windir\dosstart.bat

时间有点老了吧。

---

<div class="post-metadata">

作者： ![zyq8709](https://forum.90sec.com/user_avatar/forum.90sec.com/zyq8709/32/11658_2.png) [@zyq8709](https://forum.90sec.com/u/zyq8709)\
发布日期： [2012 年5 月 9 日 12:40 UTC](https://forum.90sec.com/t/topic/3075/6 "2012-05-09T12:40:16Z")

</div>

了解了，先收藏着！
