Encrypt CMD so that even if the computer overflows, you can't get CMD permissions
Encrypt CMD so that even if the computer overflows, you can't get CMD permissions*Oz k\WrGy
Submitted by amxku on 2006, November 14, 7:59 PM. Technical notes Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat^jLTkA*V
The following is the lock.bat file
~7k(E'S*YOr Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat+d'@6Rn'VbA)M
1V`YO9B4} GC?$V
@echo offorum.315safe.comM+c7cKRHt$eb
title Password Verification 315safe.comc2d A8s_{U X
SETLOCAL
u \+U!F6q(b ec315 Security Network Technology Forum set pwd=0
j0]1d-]B315safe.com set times=3forum.315safe.come
p-Q?`9x
%z.{3Y T\-M#pxT4M315safe.com echo ________________________________________________________________________________315 Security Network Technology ForumK6H|Q:f(X7M5U
echo You are now using 's CMD. You cannot execute any commands without 's permission.
8F8KQ$d*U9if315safe.com echo Your all operations and messages in this use have been recorded in the log. If you don't have a password yet, please contact 315safe.comBj{9DZ^ E+d
echo for contact. If you already have a password, please enter your password! Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat0|zl {z F bU(e
echo ________________________________________________________________________________forum.315safe.comc-L$lFA.L
]O
echo ####################################################################### >> e:\CMD\mylog.txt
7y-L"l9N%@A{Uforum.315safe.com echo Operation: Activate password verification Time: %time% Date: %date% >> e:\CMD\mylog.txt
-}dne8m,e(H0O#p Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat8S+K7pt,Y
qq-a
:passwordu:HzbcGFJ:s
set /p pwd= Please enter your password:
.m)rW'`3A315safe.com set /A times=%times%-1
T/sW+Jv4T315safe.com if %pwd%==fangzi goto passforum.315safe.comf-G,u3og9vw?
echo ***** Password verification error. Please enter again. You have %times% more chances to enter the password *****
5VZ:|N/gmo Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat echo .
_\KOH{Ax;m315 Security Network Technology Forum if %times%==0 goto close315safe.com{:s:D"LB!_k
echo Status: User entered password Verification failed Time: %time% >> e:\CMD\mylog.txt Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chatS%hN8^?&BLq-G$o
goto password
-Lw:fFx"VA"u
i-JRu
P4D4qforum.315safe.com:close315safe.comr%DnGGc
echo Status: User entered password incorrectly 3 times Program locked Time: %time% >> e:\CMD\mylog.txtX y3K"|n1F4Sz
title Sorry, you cannot use 's CMD
uUK"\@n!j5u} Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat echo --------------------------------------------------------------------------------/? Xx;Z
J0tY!MkuK
echo Because you failed the password verification 3 times, the program has been locked. You can no longer continue to operate. You can choose to close
a:\`+@,DO&@ _ Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat echo This window. You can also contact through messages. Please enter the message and press Enter to submit!
qF5~rguC4xforum.315safe.comecho --------------------------------------------------------------------------------315safe.comHh/j,H2a(iK@4s%g
echo Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chatKf q {p'Z*Q
-]1ai/Ae(Eyforum.315safe.com:message
^$PeE\M5IC315 Security Network Technology Forum echo ________________________________________________________________________________ Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat4XWG'f:j
zPKS
set /p msg= Please enter your message:
/g+@{X3~])H315safe.comecho . >> e:\CMD\mymsg.txtP;l;@at*n%S lgf q
echo ####################################################################### >> e:\CMD\mymsg.txtforum.315safe.com o"c'H4q&Q]y
echo Date: %date% Time: %time% >> e:\CMD\mymsg.txt315 Security Network Technology ForumI-K/H7pB0Zo
echo Message content: >> e:\CMD\mymsg.txt315safe.comKg$rY:GI
echo %msg% >> e:\CMD\mymsg.txt
@X(IdM,K/?vEecho. >> c:\message.txt315safe.coma$qki9Hk
echo …… OK …… Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat `ek/YC
's CMD
v:C_-O+x5s-I$}315 Security Network Technology Forum ENDLOCAL
#_d }6DY*G
a#d9{ Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat6y$^.y#i5e:dU2v
-----------------------------------------------------------------forum.315safe.com,P
^3~8w Y`"Oq0k
_l6z#Uq
s+T.b Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat315safe.com2F.Hc|*\A
FD`5B
@echo off
C)e \Z0lnE s315 Security Network Technology Forum copy /y lock.bat %windir%\lock.bat315 Security Network Technology Forum!p9i#Ab3RL3`
echo lock.bat installed successfully
O:j
Z\Tn"q315safe.comecho lock.reg registered successfully
1\8qx_2|$\e
s315 Security Network Technology Forum-----------------------------------------------------
-K9y$
]
Xe:R315safe.com del /f lock.bat %windir%\lock.bat
A:k8T4o$VKm
u%c315 Security Network Technology Forum echo lock.bat deleted successfully
8c$z'w;y;cfT.lLn0} Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat regedit /s unlock.reg_2Z7N w,T$]b
echo lock.reg unregistered successfully
'k#h@ `.U*ckIO Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat
'z4i+Ksv5Fh------------------------------------------------------
w!lZV3F3\
B Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat315safe.com7HR3Iam]L"V
Double-click setup.bat to install!
]&y,z] ^zPvM!~9i315safe.com
%pGR/PVirn7SX When using CMD, the password is fangzi (all in lowercase, the password here is case-sensitive) Computers, networks, information, technology, security, routers, network administrators, Windows, Vista, databases, websites, development, downloads, chit-chat N7ms5LT}(w
All logs are stored in E:\CMD\mylog.txt315 Security Network Technology Forumq~ o6vb8H(z&U3a
All messages are stored in E:\CMD\mymsg.txt