|
DOSforever
金牌会员
     
积分 4639
发帖 2239
注册 2005-1-30
状态 离线
|
|
2006-2-22 14:33 |
|
|
martin325
银牌会员
    
积分 1582
发帖 603
注册 2006-2-20
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
谢谢斑竹提供一个个取巧的办法:)
本人的启动盘是WINME下制作的,而装WINME系统的电脑也找不到了。
刚试过Win98 下的 doskey.com,版本有冲突,用不了:(
不知哪位热心朋友能否提供下载?
Thanks to the moderator for providing a clever way : )
My boot disk was made under WINME, and the computer with the WINME system installed can't be found either.
Just tried doskey.com under Win98, there is a version conflict, can't use it : (
I wonder if any enthusiastic friend can provide a download?
|
|
2006-2-22 14:43 |
|
|
martin325
银牌会员
    
积分 1582
发帖 603
注册 2006-2-20
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
15楼的方法,我试了一下,没用啊。
是竞猜答案不对,还是本人操作有误? 
The method on floor 15, I tried it, it didn't work.
Is it that the guess answer is incorrect, or is it my own operation error? :P
|
|
2006-2-22 16:49 |
|
|
martin325
银牌会员
    
积分 1582
发帖 603
注册 2006-2-20
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
请斑竹公布一下答案!
Please let the moderator announce the answer!
|
|
2006-2-23 08:12 |
|
|
DOSforever
金牌会员
     
积分 4639
发帖 2239
注册 2005-1-30
状态 离线
|
|
2006-2-23 09:42 |
|
|
martin325
银牌会员
    
积分 1582
发帖 603
注册 2006-2-20
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
在Autoexec批处理文件里写上:
doskey del=none
doskey doskey=cls
运行执行Autoexec后,就用不了del命令,doskey本身也卸载不了了。
请问在“不重新启动电脑”的情况下,如何使del命令恢复“可用”呢?
In the Autoexec batch file, write:
doskey del=none
doskey doskey=cls
After running and executing Autoexec, the del command cannot be used, and the doskey itself cannot be uninstalled.
How to make the del command "usable" again without restarting the computer?
|
|
2006-2-23 10:32 |
|
|
martin325
银牌会员
    
积分 1582
发帖 603
注册 2006-2-20
状态 离线
|
『第 22 楼』:
使用 LLM 解释/回答一下
说明:本人的doskey是第三方开发的。
Description: My doskey is developed by a third party.
|
|
2006-2-23 10:33 |
|
|
willsort
元老会员
         Batchinger
积分 4432
发帖 1512
注册 2002-10-18
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
Re DOSforever:
“高位”一说,纯属手误,不过歪打正着,能引起老兄的不平之鸣,倒是喜出望外。“无奖”一说,也属子虚,不信请看15楼的5只小手,20分可是我的评分上限了 <img src="images/smilies/face-laugh.png" align="absmiddle" border="0">
不过,老兄的答案倒确实让我有意外之得,1、2、3都是我之预想,但4确是没有想到,到现在也没有揭破,倒是无意又发现了5种解法,与你的4法一起,恰凑够“十大”了 <img src="images/smilies/face-laugh.png" align="absmiddle" border="0">
目前看来,这场切磋确实越来越有意思了,倒是有些感谢 doskey 的这些“安全问题”了,不过它的漏洞未免也太多了些。
Re martin325:
实在佩服兄能对 DOS 的安全问题如此执着,早年我对此只是稍下工夫,便觉无望而放弃了。
其实想增加 DOS 的安全性,启动时的登录问题是第一要塞,而启动后的权限分配则只是内部的一些简单防护措施了。
至于命令限制,我认为最可取的还是直接修改 command.com 了,它并不复杂,只需要使用十六进制编辑工具进行字符串的等长替换而已。
另外,你目前的方案中,仅仅禁止 del 是不够的,别忘了它还有个 Erase 的别名。
最后,关于 doskey 的破解问题,可以等我揭开 Alt- 之谜后再揭晓吗?
Last edited by willsort on 2006-2-23 at 12:45 ]
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 ]
|

※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得! |
|
2006-2-23 12:41 |
|
|
martin325
银牌会员
    
积分 1582
发帖 603
注册 2006-2-20
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
谢谢提醒:)
等待答案中……
Thanks for the reminder :)
Waiting for the answer...
|
|
2006-2-23 13:00 |
|
|
willsort
元老会员
         Batchinger
积分 4432
发帖 1512
注册 2002-10-18
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
Re martin325:
众里寻它千百度,蓦然回首,却在灯火阑珊处。
DOSforever 兄的 alt- 之解,却原来就藏在 DOSKey /? 中,枉我从 Alt-Num,Alt-Enter 中苦思寻解。好了,现在可以公布目前为止,我所知道的可以解开 doskey doskey=cls 的所有方案了。
- (Alt-F10)
- (space)doskey doskey=
- doskey.com doskey=
- call doskey doskey=
- for %c in (doskey) do %c doskey=
- if errorlevel 0 doskey doskey=
- doskey/reinstall
- command /k doskey doskey=
exit
- echo doskey doskey=>dk.bat
dk.bat
del dk.bat
- ren doskey.com dk.com
dk doskey=
ren dk.com doskey.com
Last edited by willsort on 2006-2-24 at 18:14 ]
Re martin325:
After searching for it thousands of times in the crowd, suddenly looking back, it was right there in the dimly lit place.
Brother DOSforever's interpretation of alt- turns out to be hidden in DOSKey /?, while I was struggling to find the solution from Alt-Num, Alt-Enter. Okay, now I can announce all the solutions I know so far to unlock doskey doskey=cls.
- (Alt-F10)
- (space)doskey doskey=
- doskey.com doskey=
- call doskey doskey=
- for %c in (doskey) do %c doskey=
- if errorlevel 0 doskey doskey=
- doskey/reinstall
- command /k doskey doskey=
exit
- echo doskey doskey=>dk.bat
dk.bat
del dk.bat
- ren doskey.com dk.com
dk doskey=
ren dk.com doskey.com
Last edited by willsort on 2006-2-24 at 18:14 ]
|

※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得! |
|
2006-2-24 18:13 |
|
|
martin325
银牌会员
    
积分 1582
发帖 603
注册 2006-2-20
状态 离线
|
『第 26 楼』:
使用 LLM 解释/回答一下
好的,我先试试看!
关于安全问题,我在DOS启动时,在Autoexec里设置了三个choice语句,并屏蔽了F5、F8、Ctrl+C和Ctrl+Break,这样第一道关口也做了设置!
这个方法比较简单些,安全上也不是很好,但也算得上一道防线,对像我这样的小菜鸟还是有用的吧?请斑竹指出该方法的大漏洞!
另外请问还有其他更安全的方法吗?
Okay, let me give it a try!
Regarding security issues, when I boot up in DOS, I set three choice statements in Autoexec and disabled F5, F8, Ctrl+C, and Ctrl+Break. So the first line of defense is also set!
This method is relatively simple. Security-wise, it's not very good, but it can be considered a line of defense. It's still useful for little菜鸟 like me, right? Please, moderator, point out the major loopholes in this method!
Also, may I ask if there are other more secure methods?
|
|
2006-2-24 20:02 |
|
|
martin325
银牌会员
    
积分 1582
发帖 603
注册 2006-2-20
状态 离线
|
『第 27 楼』:
使用 LLM 解释/回答一下
刚才测试了一下,发现只有第一项对本人使用的第三方开发的doskey程序有效!
其余9项都是无效的!
Just now I tested it, and found that only the first item is effective for the third-party developed doskey program I use!
The remaining 9 items are all ineffective!
|
|
2006-2-24 22:10 |
|
|
willsort
元老会员
         Batchinger
积分 4432
发帖 1512
注册 2002-10-18
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
Re martin325:
这有些奇怪,我在 MSDOS6.22 、MSDOS7.10 和 WinME启动盘下都做了测试,而 MSDOS7.10/WinME 下使用的正是 Paul Houle 的 Enhanced DOSKEY Ver 1.8 ,除了第7项因为参数开关不同而仅对 MS 的 DOSKEY 有效,其他方法均同样有效。不知你是如何测试的?
至于你的安全性测试,建议你首先制作一个加护你现有的所有安全措施的最简化启动盘IMG镜像,然后上传为附件或直接发到我的邮箱,这样我也可以顺便测试一下你的DOS环境下doskey安全性表现。
Last edited by willsort on 2006-2-25 at 00:54 ]
Re martin325:
There is something strange here. I have tested under MSDOS6.22, MSDOS7.10 and WinME boot disks. In MSDOS7.10/WinME, the one used is exactly Paul Houle's Enhanced DOSKEY Ver 1.8. Except that item 7 is only valid for MS's DOSKEY due to different parameter switches, the other methods are equally effective. How did you test?
As for your security test, it is suggested that you first make a simplified boot disk IMG image that protects all your existing security measures, then upload it as an attachment or send it directly to my email, so that I can also test the security performance of doskey in your DOS environment by the way.
Last edited by willsort on 2006-2-25 at 00:54 ]
|

※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得! |
|
2006-2-25 00:45 |
|
|
martin325
银牌会员
    
积分 1582
发帖 603
注册 2006-2-20
状态 离线
|
『第 29 楼』:
使用 LLM 解释/回答一下
邮件已经发给willsort斑竹了。请查收,并请提出宝贵意见。
补充说明:
当运行时看到屏显为non-system disk or disk error
Please reboot it by enter [Ctrl+Alt+Del]
Bad command or file name
这是为了迷惑小小菜鸟的!哈哈……
The email has been sent to moderator willsort. Please check it and give your valuable opinions.
Additional notes:
When running, the screen display is "non-system disk or disk error"
Please reboot it by enter
Bad command or file name
This is to confuse little novices! Haha...
|
|
2006-2-25 09:36 |
|
|
willsort
元老会员
         Batchinger
积分 4432
发帖 1512
注册 2002-10-18
状态 离线
|
『第 30 楼』:
使用 LLM 解释/回答一下
Re martin325:
已做测试,应该说它在安全性方面做得还是相当不错的。如果使用此启动盘启动,且不知道密码按键的情况下,是很难登录到DOS环境的。
当然,它仍然存在一些漏洞。其中最大的,作为一张启动盘,它仍然不能防止用户使用其它方式登录系统,并从其中查看和编辑你的启动盘中的各种文件,从而轻松了解和破除各种安全性屏障。这也是 MS-DOS 本身固有的最大的安全性漏洞,甚至也是所有微软系统的最大安全性软肋。这个问题通常来说,是很难解决的,我所能想到的方案是,制作一张经过加密压缩的DOS启动盘镜像,在BIOS引导后调用某个启动工具来读取并加载这个镜像启动系统,但是我现在还未了解到那个启动工具可以读取加密压缩镜像。
对于目前的防护措施而言,我仅提供以下几个建议:
1、config中break.sys和autoexec中的boff使用一个就足够了,至于如何取舍在于你自己;
2、启动后的重启提示似乎与系统原来的并不一致,细心的人会看出问题所在的。
另外,doskey 的安全性也已测试,1-10 除 7 外均有效。需要注意的是,1、7会直接清除所有宏命令,而2-10仅删除doskey这个宏命令,而只要删除了它,再使用 doskey -r 或 doskey del= 等清除其它宏命令就简单多了。
Last edited by willsort on 2006-2-25 at 13:37 ]
Re martin325:
Tests have been carried out, and it should be said that it has done quite well in terms of security. If you boot with this boot disk and don't know the password key, it's very difficult to log in to the DOS environment.
Of course, there are still some loopholes. The biggest one is that as a boot disk, it still cannot prevent users from logging in to the system in other ways and viewing and editing various files in your boot disk, thus easily understanding and bypassing various security barriers. This is also the biggest security loophole inherent in MS-DOS itself, and even the biggest security weakness of all Microsoft systems. This problem is generally very difficult to solve. The solution I can think of is to make an encrypted and compressed DOS boot disk image, and after BIOS booting, call a certain boot tool to read and load this image to boot the system, but I haven't learned yet which boot tool can read the encrypted and compressed image.
For the current protection measures, I only provide the following suggestions:
1. In config, break.sys and boff in autoexec need only one to be sufficient, and it's up to you to decide which one to choose;
2. The restart prompt after booting seems inconsistent with the original system, and careful people will see the problem.
In addition, the security of doskey has also been tested, and 1-10 are effective except 7. It should be noted that 1 and 7 will directly clear all macro commands, while 2-10 only delete the doskey macro command, and as long as it is deleted, it's much simpler to use doskey -r or doskey del= to clear other macro commands.
Last edited by willsort on 2006-2-25 at 13:37 ]
|

※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得! |
|
2006-2-25 10:35 |
|