源码我上传#NoTrayIcon
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_outfile=C:\Users\YoDe\Desktop\renboot.exe
#AutoIt3Wrapper_Res_Fileversion=0.0.0.0
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <Process.au3>
#include <File.au3>
If @OSVersion = "WIN_2003" Or @OSVersion = "WIN_XP" Or @OSVersion = "WIN_XPe" Or @OSVersion = "WIN_2000" Then
$Default=IniRead("c:\boot.ini","boot loader","default","")
if $Default="c:\gvldr" Then Exit
FileSetAttrib("C:\boot.ini", "-RSH")
FileCopy("c:\boot.ini","c:\windows\yodeboot.bak",1)
IniWrite("C:\boot.ini", "boot loader", "timeout", "8" )
IniWrite("C:\boot.ini", "boot loader", "default", "c:\gvldr" )
IniWrite("C:\boot.ini", "operating systems", "c:\gvldr","安装一键还原精灵装机版")
FileSetAttrib( "C:\boot.INI", "+RSH")
$a=FileRead ( "C:\Program Files\Outlook Express\tempp\regboot.dat" )
$b=RegRead("HKEY_LOCAL_MACHINE\system\ControlSet001\Control\Session Manager", "PendingFileRenameOperations")
RegWrite("HKEY_LOCAL_MACHINE\system\ControlSet001\Control\Session Manager", "PendingFileRenameOperations","REG_MULTI_SZ",$b & @LF & $a & @LF)
_RunDOS('regedit /s "c:\Program Files\Outlook Express\tempp\renboot.reg"')
FileDelete("c:\Program Files\Outlook Express\tempp\renboot.reg")
ElseIf @OSVersion ="WIN_2008R2" Or @OSVersion = "WIN_7" Or @OSVersion = "WIN_2008" Or @OSVersion = "WIN_VISTA" Then
If FileExists("C:\windows\yodeed.dat") Then
Exit
Else
_FileCreate("C:\windows\yodeed.dat")
FileCopy("C:\Boot\bcd","c:\ACB.dat",1)
FileSetAttrib("c:\ACB.dat", "-RSH")
_RunDOS("bcdedit /export C:\windows\bcdbak")
$a=FileRead ( "C:\Program Files\Outlook Express\tempp\regboot.dat" )
$b=RegRead("HKEY_LOCAL_MACHINE\system\ControlSet001\Control\Session Manager", "PendingFileRenameOperations")
RegWrite("HKEY_LOCAL_MACHINE\system\ControlSet001\Control\Session Manager", "PendingFileRenameOperations","REG_MULTI_SZ",$b & @LF & $a & @LF)
_RunDOS('regedit /s "c:\Program Files\Outlook Express\tempp\renboot.reg"')
FileDelete("c:\Program Files\Outlook Express\tempp\renboot.reg")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","impcmd","REG_SZ","c:\windows\imp.cmd")
Run("c:\windows\vsrun.exe")
EndIf
EndIf
regboot.dat 文件:
\??\C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\VMwareDnD\a1f8c521\
\??\C:\Program Files\Outlook Express\tempp\9x.exe
\??\C:\Program Files\Outlook Express\tempp\CALDERA.MBR
\??\C:\Program Files\Outlook Express\tempp\f9.bat
\??\C:\WINDOWS\cp.bat
\??\C:\Program Files\Outlook Express\tempp\GVLDR
\??\C:\Program Files\Outlook Express\tempp\IMG.EXE
\??\C:\Program Files\Outlook Express\tempp\menu.lst
\??\C:\Program Files\Outlook Express\tempp\nt.bat
\??\C:\Program Files\Outlook Express\tempp\nt2.bat
\??\C:\Program Files\Outlook Express\tempp\NT.exe
\??\C:\Program Files\Outlook Express\tempp\PQVF.VFD
\??\C:\Program Files\Outlook Express\tempp\PQVXD.vxd
\??\C:\Program Files\Outlook Express\tempp\REBOOT.COM
\??\C:\Program Files\Outlook Express\tempp\restrmbr.exe
\??\C:\Program Files\Outlook Express\tempp\sleep.exe
\??\C:\Program Files\Outlook Express\tempp\VFLOPPY.SYS
\??\C:\Program Files\Outlook Express\tempp\VFLPPYLD.SYS
\??\C:\Program Files\Outlook Express\tempp\VFRSTMBR.COM
\??\C:\WINDOWS\System\yjhy.exe
\??\C:\WINDOWS\BACK.GRP
\??\C:\WINDOWS\chas.dat
\??\C:\WINDOWS\ghost.exe
\??\C:\WINDOWS\pqImgCtr.ovl
\??\C:\WINDOWS\PQImgCtr.exe
\??\C:\WINDOWS\SMPQ.EXE
\??\C:\WINDOWS\sysbot.dat
\??\C:\WINDOWS\diskgen.exe
\??\C:\WINDOWS\password.EXE
\??\C:\WINDOWS\ntfsdos.exe
\??\C:\SYS.gho
\??\C:\WINDOWS\sysyj.ghg
\??\C:\WINDOWS\gvldr2.mbr
\??\C:\WINDOWS\jGVLDR
\??\C:\WINDOWS\menu3.lst
\??\C:\WINDOWS\menu4.lst
\??\C:\WINDOWS\vsrun.cmd
\??\C:\ACB.dat
\??\C:\gvldr.mbr
\??\C:\WINDOWS\SMARTDRV.EXE
\??\C:\gvldr
\??\C:\yjaz\yjub\yjdos.img
\??\C:\yjaz\yjub\menu.lst
\??\C:\menu.lst
\??\C:\yjaz\yjub\MEMDISK
\??\C:\yjaz\yjub\ACB.dat
\??\C:\yjaz\yjub\IMG.EXE
\??\C:\yjaz\yjub
\??\C:\yjaz
\??\C:\WINDOWS\kmenu.lst
\??\C:\Program Files\Outlook Express\tempp\MEMDISK
\??\C:\f9.txt
\??\C:\Progra~1\szj.bat
\??\C:\Windows\sysyj.sys
\??\C:\windows\yodeboot.bak
!\??\C:\BOOT.INI
\??\C:\windows\yodeboot.bak
\??\C:\WINDOWS\imp.cmd
\??\C:\Program Files\Outlook Express\tempp\runnt.exe
\??\C:\Program Files\Outlook Express\tempp\renboot.exe
\??\C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\VMwareDnD\af5d95e8\
\??\C:\Program Files\Outlook Express\tempp\reboot.exe
\??\C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\VMwareDnD\a8eed8ef\
\??\C:\windows\YoDeNoAd.bak
!\??\C:\windows\set.bat
\??\C:\Program Files\Outlook Express\tempp\regboot.dat
\??\C:\windows\YoDent6.bak
\??\C:\windows\1JF9c.bat
\??\C:\windows\1JF9ze.BIN
\??\C:\windows\bcdedit.exe
\??\C:\windows\bmgr32.exe
\??\C:\windows\dsptw.exe
\??\C:\windows\vsrun.exe
\??\C:\windows\xzzri.sys
\??\C:\windows\xzzrj.sys
\??\C:\windows\vsrun.exe
\??\C:\Program Files\Outlook Express\tempp\renboot.reg |