又发现一个绝好的工具哈...
Found a really great tool, hey...
Found a really great tool, hey...
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
The following is the lock.bat file
@echo off
title Password Verification
SETLOCAL
set pwd=0
set times=3
echo ________________________________________________________________________________
echo You are now using 's CMD. You cannot execute any commands without 's permission.
echo All your operations and messages in this use have been recorded in the log. If you don't have a password yet, please contact . If you already have a password, please enter it!
echo ________________________________________________________________________________
echo ####################################################################### >> e:\CMD\mylog.txt
echo Operation: Activate password verification Time: %time% Date: %date% >> e:\CMD\mylog.txt
echo Status: Waiting for verification... >> e:\CMD\mylog.txt
echo. >> e:\CMD\mylog.txt
echo
:password
set /p pwd=Please enter your password:
set /A times=%times%-1
if %pwd%==fangzi goto pass
echo ***** Password verification error. Please enter again. You have %times% more chances to enter the password *****
echo.
if %times%==0 goto close
echo Status: User entered password Verification failed Time: %time% >> e:\CMD\mylog.txt
goto password
:close
echo Status: User entered password incorrectly 3 times Program locked Time: %time% >> e:\CMD\mylog.txt
title Sorry, you cannot use 's CMD
echo --------------------------------------------------------------------------------
echo Because you failed the password verification 3 times, the program has been locked. You can no longer operate. You can choose to close
echo this window. You can also contact through messages. After entering the message, please press Enter to submit!
echo --------------------------------------------------------------------------------
echo
:message
echo ________________________________________________________________________________
set /p msg=Please enter your message:
echo. >> e:\CMD\mymsg.txt
echo ####################################################################### >> e:\CMD\mymsg.txt
echo Date: %date% Time: %time% >> e:\CMD\mymsg.txt
echo Message content: >> e:\CMD\mymsg.txt
echo %msg% >> e:\CMD\mymsg.txt
echo. >> c:\message.txt
echo …… OK ……
echo Your message has been recorded. You can choose to close the window or continue to leave a message
echo Operation: User message Time: %time% >> e:\CMD\mylog.txt
goto message
:pass
echo Status: Program is open, welcome to use Time: %time% >> e:\CMD\mylog.txt
title 's CMD
ENDLOCAL
-----------------------------------------------------------------
The following is setup.bat
@echo off
copy /y lock.bat %windir%\lock.bat
echo lock.bat installed successfully
regedit /s lock.reg
echo lock.reg registered successfully
-----------------------------------------------------
The file used for uninstallation
The following is unlock.reg
@echo off
del /f lock.bat %windir%\lock.bat
echo lock.bat deleted successfully
regedit /s unlock.reg
echo lock.reg unregistered successfully
| Rater | Score | Time |
|---|---|---|
| HUNRYBECKY | +5 | 2007-03-10 08:40 |
Originally posted by HUNRYBECKY at 2007-1-18 08:48 AM:
Finally found the answer. My computer is a DEEPIN streamlined version. The other day when I was doing antivirus, I accidentally found a CMDOW.exe file, which was said to be a trojan. I checked online and found that many GHOST and streamlined systems have this file...