|
原帖由 lizhenduo 于 2007-7-20 02:57 PM 发表 
以上高手:
这个install_uninstall.bat文件用以上办法变成明文后就不能执行了,它的加密办法太高了,我想学习学习,请大家给予指导.谢谢.25521
@Echo Off
cls
mode con: cols=80 lines=26
Set TT=1KEY GHOST (rebuild by lianjiang)
COLOR f9
TITLE %TT%
set winver=
if exist %systemdrive%\boot.ini goto winnt
cls
echo.
echo Sorry ,this program is only for Windows 2k/xp/2k3.
PING/n 5 127.1>NUL
Goto Exit
:winnt
set winver=winnt
set ggpath0=%systemdrive%\dosh
set ggpath1=%systemdrive%
:g_boot1
if exist %ggpath1%\g_boot.ini goto g_boot_al >nul
if exist %ggpath1%\grldr (
attrib %ggpath1%\grldr -r -h -s >nul
copy %ggpath1%\grldr %ggpath1%\g_grldr >nul
)
if exist %ggpath1%\menu.lst ren %ggpath1%\menu.lst g_menu.lst >nul
myins x onekey.dll %ggpath1%\ -y >nul
Copy %ggpath0%\tools\grldr %ggpath1%\ /y >nul
attrib %ggpath1%\grldr +r +h +s >nul
rem attrib %ggpath0% +r +h +s >nul
:add1
attrib %ggpath1%\boot.ini -r -h -s >nul
Copy %ggpath1%\boot.ini %ggpath1%\g_boot.ini /y >nul
%ggpath0%\tools\inifile %ggpath1%\boot.ini [boot loader] timeout=3 >nul
%ggpath0%\tools\inifile %ggpath1%\boot.ini [operating systems] %ggpath1%\grldr="1KEY GHOST (rebuild by lianjiang)" >nul
attrib %ggpath1%\boot.ini +r +h +s >nul
attrib %ggpath1%\g_boot.ini +r +h +s >nul
Goto exit
:g_boot_al
cls
echo.
echo Uninstall 1KEY GHOST (rebuild by lianjiang).
echo.
echo -------------------------------------
pause>nul
attrib %ggpath1%\boot.ini -r -h -s >nul
if exist %ggpath1%\g_boot.ini attrib %ggpath1%\g_boot.ini -r -h -s >nul
if exist %ggpath1%\g_grldr attrib %ggpath1%\g_grldr -r -h -s >nul
if exist %ggpath1%\grldr attrib %ggpath1%\grldr -r -h -s >nul
if not exist %ggpath1%\g_boot.ini goto sub_30 >nul
copy %ggpath1%\g_boot.ini %ggpath1%\boot.ini /y >nul
del %ggpath1%\g_boot.ini >nul
:sub_30
if not exist %ggpath1%\g_grldr del %ggpath1%\grldr&&goto sub_30a >nul
copy %ggpath1%\g_grldr %ggpath1%\grldr >nul
del %ggpath1%\g_grldr >nul
if exist %ggpath1%\g_menu.lst attrib %ggpath1%\g_menu.lst -r -h -s >nul&&ren %ggpath1%\g_menu.lst menu.lst >nul
:sub_30a
attrib %ggpath1%\boot.ini +r +h +s >nul
rd /s /q %ggpath0%\ >nul
:exit
del %temp%\*.bat >nul 2>nul
cls
echo.
echo OK!
echo.
pause |
|