中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-08 21:14
47,811 topics / 349,895 posts / today 0 new / 48,253 members
DOS批处理 & 脚本技术(批处理室) » Lock your CMD, only can input password to use
Printable Version  5,953 / 16
Floor1 lgx8280998 Posted 2006-11-16 12:17
初级用户 Posts 22 Credits 52
Lock your CMD, can only enter the password to use. The code is as follows

1: Save the following as lock.reg, note that there should be a blank line after Windows Registry Editor Version 5.00


2. Save the following as unlock.reg. This is for unlocking the CMD. Also, there should be a blank line after Windows Registry Editor Version 5.00


3. Save the following code as lock.bat


4. Save the following code as setup.bat


5. Save the following code as uninstall.bat



Instructions: This is adapted from the code written by an expert
uninstall.bat is for unlocking. The password here is lgx
If you want to define your own password, you can use the replacement method to replace all lgx in lock.bat with your password
There are a total of 5 files. Actually, it can all be done through one batch file.
setup.bat is used to install the CMD password lock. The principle should be understandable. It is to lock the CMD through the registry
Just run setup.bat to lock your CMD. Remember that the password is lgx and can be replaced freely.

Please pay attention to my QQ space
http://410454068.qzone.qq.com/

[ Last edited by lgx8280998 on 2006-11-16 at 12:23 PM ]
Floor2 namejm Posted 2006-11-16 12:45
荣誉版主 Posts 1,737 Credits 5,226 From 成都
Regarding the issue of using batch processing to encrypt or set passwords, there have been many discussions in the forum. The current conclusion is generally: the scheme is not feasible because the code of batch processing is saved in plain text. Even if the so-called encryption processing is done on the code, it is very easy to be cracked (please click here to view the specific discussion) - maybe a bit discouraging for the original poster.
Floor3 3742668 Posted 2006-11-16 12:56
荣誉版主 Posts 718 Credits 2,013
Hehe, it's something from a few years ago. There are too many cracking methods, but it's quite good for increasing the interest of newbies.
Floor4 lxmxn Posted 2006-11-16 17:25
版主 Posts 4,938 Credits 11,386

I want to know what are the several cracking methods.
Floor5 vkill Posted 2006-11-17 01:42
金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽
My way to deal with this is to download an xcmd.exe, which can do everything.

down: http://www.yx127.com/xcmd.exe
Floor6 cchessbd Posted 2006-11-17 02:41
高级用户 Posts 222 Credits 525
This thing...
Can I directly run CMD.exe?
Floor7 eech Posted 2006-11-17 05:22
高级用户 Posts 346 Credits 906
I tried but it didn't work. You can still open CMD.
Floor8 lxmxn Posted 2006-11-17 07:04
版主 Posts 4,938 Credits 11,386
Originally posted by eech at 2006-11-17 05:22:
It didn't work for me. You can still open CMD.


  Still can run it, which proves that the previous settings are not well done or there is an error. Or it's just that the system version is different. The above locking is for computers of the Windows NT series, right?
Floor9 jollyliho Posted 2006-11-17 08:25
新手上路 Posts 6 Credits 13
Great stuff, I've been looking for it for a long time, haha
Floor10 0401 Posted 2006-11-17 10:48
中级用户 Posts 88 Credits 435
Originally posted by lxmxn at 2006-11-16 17:25:

I want to know what are the several cracking methods.

The simplest one is CMD /D
Floor11 electronixtar Posted 2006-11-18 00:12
铂金会员 Posts 2,672 Credits 7,493
It's a pity that my cmd.exe is a cracked version, it won't read any registry, and it's only 98.5K in size, heh heh
Floor12 ccwan Posted 2006-11-18 00:43
金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊
My cmd.exe is 95k in size
Floor13 hxuan999 Posted 2006-11-23 03:54
中级用户 Posts 161 Credits 337
This is good. I'm a newbie. Let's discuss again among newbies. Please give instructions from the veterans.
Floor14 yuanshao Posted 2007-12-29 16:45
新手上路 Posts 1 Credits 2
I think it's self-contradictory`````Is it really okay? Veteran, please teach me`````
Floor15 knoppix7 Posted 2007-12-29 17:32
银牌会员 Posts 634 Credits 1,287 From cmd.exe
Direct cmd /d

/D Disable execution of AutoRun commands from the registry (see below)
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023