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-14 01:18
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » How to disable CMD dangerous commands!!! Come and have a look View 3,384 Replies 18
Original Poster Posted 2006-01-03 09:31 ·  中国 广西 南宁 电信
初级用户
Credits 38
Posts 11
Joined 2005-11-11 23:15
20-year member
UID 45085
Status Offline
Ask for your advice,
I want to prohibit the use of the NET command in CMD. How should I do it?
It's not the kind of deleting and renaming, because that can't get to the root of the problem~~
Moderator, come and help me, please~~~
Floor 2 Posted 2006-01-03 09:36 ·  中国 广东 广州 白云区 电信
荣誉版主
★★★
Credits 718
Posts 313
Joined 2005-09-26 00:00
20-year member
UID 42844
Gender Male
Status Offline
1. Turn off the relevant services.
2. Uninstall all protocols except the TCP/IP protocol in the network card.
Floor 3 Posted 2006-01-03 10:15 ·  中国 广西 南宁 电信
初级用户
Credits 38
Posts 11
Joined 2005-11-11 23:15
20-year member
UID 45085
Status Offline
Which relevant service is that?
I mainly want to prohibit others from using the "net user administrator XXX" function when I ban NET~~
Floor 4 Posted 2006-01-03 17:06 ·  中国 上海 鹏博士宽带
初级用户
Credits 52
Posts 26
Joined 2006-01-03 16:47
20-year member
UID 48376
Status Offline
In the system32 directory

Just change the name of the net.exe file.
Floor 5 Posted 2006-01-03 20:31 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,056
Posts 3,041
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
The person upstairs is confused. Taking out the bullets of your own gun can prevent others from shooting you?
简单就是美
Floor 6 Posted 2006-01-03 21:41 ·  中国 广东 广州 天河区 电信
荣誉版主
★★★
Credits 718
Posts 313
Joined 2005-09-26 00:00
20-year member
UID 42844
Gender Male
Status Offline
re zhri1980
Why change the name on the local machine? Just delete it directly, heh heh.
re two2qq
1. Just uninstall the NETBIOS protocol in the network card's protocol. Network neighbor access is through the NETBIOS protocol. Without it, it can't be resolved, so there's no fear of net use; the network neighborhood won't be found either.
2. As for the service, I don't remember the specific details. Please search online by yourself.
Floor 7 Posted 2006-01-04 10:23 ·  中国 上海 鹏博士宽带
初级用户
Credits 52
Posts 26
Joined 2006-01-03 16:47
20-year member
UID 48376
Status Offline
It's just about playing DOS~~~

Then consider from this aspect~~~

By the way, I'm not a new user.

I've been here for almost 3 years.

Two years ago, there was a very cocky person here. I called him a beast.

By the summer of 2005, when I saw he was still here, I continued to call him a beast.

This was originally a place for nostalgia, but it actually became a place for cult worship.

Now I don't know if he's dead or not, so I come back to continue my nostalgia.
Floor 8 Posted 2006-01-04 10:30 ·  中国 上海 鹏博士宽带
初级用户
Credits 52
Posts 26
Joined 2006-01-03 16:47
20-year member
UID 48376
Status Offline
No matter how powerful DOS batch processing is, it can't surpass TC 2.0.

A bat file only has a few environment variables, a very weak if statement, For statement, pipes, and redirections. At most, it can do some multiple configurations, and the choice external command makes the interface look better, and shilf expands the parameters.

That guy really can create a personality cult.

The fun of DOS lies in a great sense of accomplishment. With a pitch-black screen, a few keystrokes on the keyboard, and you can achieve your wishes. Unlike Windows, which is all fool - like. (Most of the time, people who play DOS can become computer application experts, while those who play Windows cannot)

Hey?

Is that guy a moderator?

(Is the one with the "sky" - shaped icon in the difficult area him?)

???

[ Last edited by zhri1980 on 2006 - 1 - 4 at 10:48 ]
Floor 9 Posted 2006-01-04 14:29 ·  中国 广东 广州 白云区 电信
荣誉版主
★★★
Credits 718
Posts 313
Joined 2005-09-26 00:00
20-year member
UID 42844
Gender Male
Status Offline
Maybe my remarks have caused problems again.
1. "By the way, I'm not a new user." ——I treat all members of the forum as friends, and I never judge people by their registration time! Maybe I will show a little more respect to the moderators or old members because they have once made contributions and supported the operation of this forum. I personally haven't found that there is a cult of personality in this forum!
2. "DOS is fun because it gives a great sense of accomplishment. With a black screen, just a few keystrokes, you can achieve your wish." ——I have the same feeling, but I don't agree. No matter how fun it is, it can't be more fun than so many famous games. I think DOS is something that can exercise people's abilities. As long as you can persevere in the dark interface, you will definitely learn something; people who play Windows may not necessarily not become experts.
3. "No matter how powerful DOS batch processing is, it's no match for TC2.0." ——Not everyone needs C. Some things can be done with scripting languages, which is enough.

The above nonsense is not to refute friend zhri1980! It's just to express my ignorant views, in the hope that someone can correct my thinking angle and point out the misunderstandings in my understanding. Thank you.

[ Last edited by 220110 on 2006-1-4 at 15:37 ]
Floor 10 Posted 2006-01-04 17:51 ·  中国 上海 鹏博士宽带
初级用户
Credits 52
Posts 26
Joined 2006-01-03 16:47
20-year member
UID 48376
Status Offline
Don't worry, friend. I have no malicious intent.

What you said makes a lot of sense.

Even though we are both members, in this matter, the environment I am in is different from yours.

I just came to see if that jerk is dead yet.

For an outdated operating system, gathering some enthusiasts to continue giving it its last bit of use can also be considered a good form of promotion~~~

(It's like there are still fans developing drivers for Voodoo now)

That is to say, I am targeting an individual, not the forum.

I won't quibble with friends over words.

BAT is not a scripting language. This is the meaning of a sentence in the official DOS 4.0 user manual.
Floor 11 Posted 2006-01-04 17:57 ·  中国 上海 鹏博士宽带
初级用户
Credits 52
Posts 26
Joined 2006-01-03 16:47
20-year member
UID 48376
Status Offline
I'm sorry, that beast seems to still be alive.

But the tone has eased a lot compared to two years ago.

And it has become a gold member.

Climbing

It seems that the cockroach has a very tenacious life force~~~

Continuing to play with the only few statements in the bat.
Floor 12 Posted 2006-01-04 19:41 ·  中国 广西 南宁 电信
初级用户
Credits 38
Posts 11
Joined 2005-11-11 23:15
20-year member
UID 45085
Status Offline
re zhri1980

DOS is really as you said "only a few statements in the bat."

I can't say who is stronger than whom, who dares to say that one language is stronger than another...

But each language has its own advantages.

If you think you are very skilled, come out and tell us how to make the NET command unable to modify the administrator's password~~~ Can you do it?

You look down on DOS so much, now you

No matter what language you use, if you can solve the problem today, it proves that you do have certain abilities.

If you come here to find someone, please be careful...
Floor 13 Posted 2006-01-04 19:47 ·  中国 广西 南宁 电信
初级用户
Credits 38
Posts 11
Joined 2005-11-11 23:15
20-year member
UID 45085
Status Offline
You also know that batch processing in DOS is not a script. Batch processing is batch processing... No matter what the others are, they are not comparable objects.
Floor 14 Posted 2006-01-04 20:33 ·  中国 广东 广州 白云区 电信
荣誉版主
★★★
Credits 718
Posts 313
Joined 2005-09-26 00:00
20-year member
UID 42844
Gender Male
Status Offline
You come out and say how to make the NET command unable to modify the administrator's password~~~


Then does that mean the method I provided to uninstall the NETBIOS protocol is not workable? After uninstalling, can other machines still use NET USER?
I don't have a relevant environment here, so I can't test it; I just tell you based on experience, please don't laugh.
Floor 15 Posted 2006-01-04 21:57 ·  中国 广西 南宁 电信
初级用户
Credits 38
Posts 11
Joined 2005-11-11 23:15
20-year member
UID 45085
Status Offline
This has nothing to do with the network.
Forum Jump: