Encrypted CMD prevents computer overflow from obtaining the CMD permission

Source: Internet
Author: User
Tags echo date echo message

CommentsLock. bat file @ echo offtitle password verification SETLOCALset pwd = 0 set times = 3 echo ____________________________________________________________________________ echo you are using [Anlge] CMD, no command can be executed without the permission of [Angle]. The following is lock. bat file @ echo off
Title password verification
SETLOCAL
Set pwd = 0
Set times = 3 echo ________________________________________________________________________________
Echo: you are using the CMD of [Anlge]. You cannot execute any command without the permission of [Angle,
Echo all your operations and messages used this time have been recorded in the log. If you do not have a password, contact
Echo [Angle] contact. You already have a password. Please enter the password!
Echo ________________________________________________________________________________
Echo ####################################### ##################################> e: \ CMD \ mylog.txt
Echo operation: Activation password verification time: % time % Date: e %> e: \ CMD \ mylog.txt
Echo status: Waiting for verification ...... > E: \ CMD \ mylog.txt
Echo.> e: \ CMD \ mylog.txt
Echo [LOGIN]: password
Set/p pwd = enter your password:
Set/A times = % times %-1
If % pwd % = fangzi goto pass
Echo ***** incorrect password verification. Please enter your password again. % times % chance to enter your password *****
Echo.
If % times % = 0 goto close
Echo status: Failed password verification time: % time %> e: \ CMD \ mylog.txt
Goto password: close
Echo status: the user entered the password three times. The program lock time is % time %> e: \ CMD \ mylog.txt
Title sorry, you cannot use CMD of [Angle]
Echo --------------------------------------------------------------------------------
Echo the program has been locked because you failed to verify the password three times. You cannot continue the operation. You can choose to close it.
In this window, you can also contact [Angle] by leaving a message. after entering the message, press enter to submit it!
Echo --------------------------------------------------------------------------------
Echo [MESSAGES]: message
Echo ________________________________________________________________________________
Set/p msg = enter your message:
Echo.> e: \ CMD \ mymsg.txt
Echo ####################################### ##################################> e: \ CMD \ mymsg.txt
Echo Date: e % 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 close the window or choose to continue leaving the message.
Echo operation: user message time: % time %> e: \ CMD \ mylog.txt
Goto message: pass
Echo status: the application is open. Welcome time: % time %> e: \ CMD \ mylog.txt
CMD of title [Angle]
ENDLOCAL ------------------------------------------------------------------- The following is setup. bat @ echo off.
Copy/y lock. bat % windir % \ lock. bat
Echo lock. bat is successfully installed.
Regedit/s lock. reg
Echo lock. reg registered successfully
----------------------------------------------------- Files used for unloading
Unlock. reg @ echo off
Del/f lock. bat % windir % \ lock. bat
Echo lock. bat deleted successfully
Regedit/s unlock. reg
Echo lock. reg anti-registration successful ------------------------------------------------------ double-click setup. bat to install it! When CMD is used, the password is fangzi (all in lowercase. The password here is case sensitive)
All logs are stored in E: \ CMD \ mylog.txt.
All messages are stored in E: \ CMD \ mymsg.txt.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.