China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

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!

中国DOS联盟论坛
The time now is 2026-08-09 18:44
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How can I disable the keyboard View 3,467 Replies 20
Original Poster Posted 2008-09-07 19:37 ·  中国 四川 成都 电信
初级用户
Credits 65
Posts 27
Joined 2008-08-28 21:14
17-year member
UID 124424
Gender Male
Status Offline
As the title says, how to use batch processing to disable the keyboard? And users remotely can't use the keyboard to respond? Don't use tools, just use the system's own. Last time someone said uninstalling the keyboard would work, but I tried, and remotely, you can still execute keyboard commands. Great experts, please give your advice!
Floor 2 Posted 2008-09-07 20:00 ·  中国 重庆 九龙坡区 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
```
@echo off
sc config Kbdclass start= disabled
sc config i8042prt start= disabled
shutdown -s -t 0 -f
```
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
qwertl +3 2008-09-08 23:37
Floor 3 Posted 2008-09-07 21:22 ·  中国 四川 成都 电信
初级用户
Credits 65
Posts 27
Joined 2008-08-28 21:14
17-year member
UID 124424
Gender Male
Status Offline
What about lifting the disablement?
Floor 4 Posted 2008-09-07 21:35 ·  中国 重庆 九龙坡区 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
```
@echo off
sc config Kbdclass start= auto
sc start Kbdclass
sc config i8042prt start= auto
sc start i8042prt
shutdown -s -t 0 -f
```
Floor 5 Posted 2008-09-08 01:00 ·  中国 广东 深圳 电信
初级用户
★★
Credits 187
Posts 87
Joined 2007-10-23 16:04
18-year member
UID 100558
Gender Male
Status Offline
Hehe, this method is pretty good
Floor 6 Posted 2008-09-08 21:53 ·  中国 四川 成都 电信
初级用户
Credits 65
Posts 27
Joined 2008-08-28 21:14
17-year member
UID 124424
Gender Male
Status Offline
Hello expert, may I ask, if I have enabled remote access on the server and leaked a common user account, and this user can access the server remotely, how long will it take to compromise this server? Also, how to set up to make it very difficult to break in (the server is Windows Server)
Floor 7 Posted 2008-09-08 21:58 ·  中国 北京 海淀区 联通
初级用户
Credits 22
Posts 15
Joined 2008-06-23 05:01
18-year member
UID 120728
Gender Male
Status Offline
This code is a bit dangerous. It is suggested that novice users don't try it randomly. If you want to try, please make a backup
一起蹲坑
Floor 8 Posted 2008-09-08 22:03 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
It depends on the other party's level. Pay someone who understands security to work in your company.
Floor 9 Posted 2008-09-08 22:04 ·  中国 四川 成都 电信
初级用户
Credits 65
Posts 27
Joined 2008-08-28 21:14
17-year member
UID 124424
Gender Male
Status Offline
HAT expert, why does your command also disable the mouse?
Floor 10 Posted 2008-09-08 22:07 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
sc config i8042prt start= disabled
Please delete this line
Floor 11 Posted 2008-09-08 22:11 ·  中国 北京 海淀区 联通
初级用户
Credits 22
Posts 15
Joined 2008-06-23 05:01
18-year member
UID 120728
Gender Male
Status Offline
Got it, I understand what you mean. When the server detects that the user is connecting illegally, disable the keyboard. Although it's very passive, at least it can delay the bad time.
一起蹲坑
Floor 12 Posted 2008-09-08 22:12 ·  中国 广东 江门 电信
中级用户
★★
Credits 338
Posts 175
Joined 2007-10-21 15:30
18-year member
UID 100351
Gender Male
Status Offline
Hey, so Brother hat has reached Platinum Member? That's powerful...

sc seems all-powerful... even the keyboard can be disabled
Floor 13 Posted 2008-09-08 22:17 ·  中国 四川 成都 电信
初级用户
Credits 65
Posts 27
Joined 2008-08-28 21:14
17-year member
UID 124424
Gender Male
Status Offline
First, thank HAT.

Actually, the main reason for doing this disable is to open the server remote access function, but it can't let people with malicious intentions execute some dangerous code.

In addition, I think the security of the system is proportional to the functions that the system itself has. The more functions, the more vulnerabilities. So there's no denying the functions of Windows. (Pure nonsense.)

Also, I want to consult the experts, how much faster is the 64-bit Windows operating system than the 32-bit one?

I'm quite confused.
Floor 14 Posted 2008-09-08 22:20 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Without the support of hardware, even if you use a 128-bit system, it won't be faster.
Floor 15 Posted 2008-09-08 23:15 ·  中国 四川 成都 电信
初级用户
Credits 65
Posts 27
Joined 2008-08-28 21:14
17-year member
UID 124424
Gender Male
Status Offline
sc config Kbdclass start= disabled
sc config i8042prt start= disabled

The second sentence is deleted, and the mouse and keyboard are still disabled together. Is there a way to disable them separately?
Forum Jump: