Re DOSforever:
The statement about "high bit" was purely a typing error, but surprisingly, it provoked your indignant outcry, which is quite a pleasant surprise. The claim about "no prize" is also unfounded. Just take a look at the 5 little hands on floor 15; 20 points is the upper limit of my rating!
However, your answer did indeed bring me an unexpected gain. 1, 2, and 3 were all what I expected, but 4 was something I didn't think of, and it hasn't been uncovered yet. Inadvertently, I've discovered 5 more solutions, which together with your 4 methods exactly make up "ten".
Currently, it seems this exchange is getting more and more interesting. Actually, I'm a bit grateful for these "security issues" with doskey, but its loopholes are indeed too many.
Re martin325:
I really admire your perseverance in focusing on DOS security issues. In the past, I only spent a little time on it and then gave up as I felt it was hopeless.
Actually, to enhance DOS security, the login issue at startup is the first stronghold, and the permission allocation after startup is just some simple internal protection measures.
As for command restriction, I think the most practical way is to directly modify command.com. It's not complicated; just use a hexadecimal editing tool to replace strings with equal length.
Additionally, in your current plan, simply prohibiting del is not enough. Don't forget it has an alias called Erase.
Finally, regarding the cracking of doskey, can you wait until I unveil the Alt- mystery to reveal it?
[
Last edited by willsort on 2006-2-23 at 12:45 ]