[翻译]WinXP中的空连接

简介:
第一次翻译鸟文,不对的地方大家帮帮忙~~~ 

空连接*一直*都能够在NT4, Windows 2000, 和 Windows XP 的机器上实现。如果对方主机的相应服务是打开着的,并且没有关闭139或445端口,你便可以使用匿名进行连接,对方主机会对回复你说“Command completed successfully"(命令成功完成)。这些在NT4 到Win2K 到 XP 中都没有改变。 

那什么被改变了呢?在成功建立空连接后,你能干什么呢?在NT4和Win2k的默认情况下,你可以枚举账户列表和共享文件信息。当在注册表中设置RestrictAnonymous=1 时,它能够帮你防止别人枚举你的相关信息(虽然不是完全的防止)。RestrictAnonymous=2 将会完全防止,只在Win2K中有效。 

在WinXP中,注册表中的键值被重新定义了: 

默认时,RestrictAnonymousSam=1 。这个将防治枚举账户信息。这个键值的定义说明是:“Do not allow anonymous enumeration of SAM accounts.”默认值是激活了这项功能(这意味着XP默认时不能通过空连接来枚举账户信息)。 

默认时,RestrictAnonymous=0。这个将防治枚举SAM中的账户信息和共享信息。这个键值的定义说明是:“Do not allow anonymous enumeration of SAM accounts and shares”激活开关的键值应该是1。 

RestrictAnonymous=2在XP上不再有效。 

所以,在XP系统的默认设置情况下,你能够匿名连接并且枚举共享信息,但是不能枚举账户信息。 

总而言之,想要完全的禁止匿名用户连接,应该关闭139和445端口(通过IPSec端口过滤或Internet防火墙),或者在网络的协议属性中不选择“在Microsoft网络中共享文件和打印”。 

原文: 

Null sessions can *always* be established to NT4, Windows 2000, and Windows 
XP machines. If the machine's server service is enabled, and ports 139 or 
445 are available, then you can do a net use with anonymous credentials, 
and the system will respond with "Command completed successfully". This 
has not changed from NT4 to Win2K to XP. 

What has changed, however, is what you are able to do once you establish 
the null session. In NT4 and Win2K, by default, you could enumerate 
information about users and shares. Setting RestrictAnonymous=1 would help 
prevent against this enumaration (though not fully). RestrictAnonymous=2 
(Win2K only) would fully prevent this enumeration. 

On Windows XP, there are new registry keys: 

RestrictAnonymousSam=1 is a default setting. This prevents detailed 
enumeration of user accounts. This setting correlates with the 
SecurityPolicy setting "Do not allow anonymous enumeration of SAM 
accounts" with a default setting 'Enabled" (meaning the default of XP will 
prohibit anonymous enumeration (R.A.SAM=1). 

RestrictAnonymous=0 is a default setting. This correlates with the 
SecurityPolicy Setting "Do not allow anonymous enumeration of SAM accounts 
and shares". Set this policy to 'Enabled' (RA=1) to prevent anonymous 
enumeration of shares. 

RestrictAnonymous=2 (on XP) is no longer a valid setting. 

So, by default, on an XP system, you can anonymously connect and enumerate 
shares by default, but you cannot enumerate detailed user information. 

To disable anonymous connections altogether, block access to tcp139/445 
(IPSec port filters or Internet Connection Firewall), or uncheck "File and 
Print Sharing for Microsoft Networks" from the network interface in 

question (via the properties tab of the network connection).
















本文转自loveme2351CTO博客,原文链接:http://blog.51cto.com/loveme23/7696 ,如需转载请自行联系原作者






相关文章
|
安全
mac激活office2016的教程(超简单的工具一键激活无病毒)
下载该破解激活工具请使用百度云: 链接: https://pan.baidu.com/s/1hs7pf60 密码: iec4  (如果链接失效了请在下面留言) ·········· 不会使用dmg文件的同学请注意,下载之后需要双击打开,然后可以看到一个蓝色钥匙的图标。
5069 0
|
9月前
|
Linux 数据安全/隐私保护
Mac连接linux的办法(自带终端和iterm2)
Mac连接linux的办法(自带终端和iterm2)
|
存储 缓存 监控
CleanMyMac X 4.11.5 for Mac中文免费激活版下载
CleanMyMacX4.11.5 for Mac是一款适用于Mac OS X的智能清洁和优化工具。它可以扫描系统的每一寸,只需两次单击即可清除千兆字节的垃圾,并像第一天一样帮助您维护Mac的健康并提高性能。
1406 0
CleanMyMac X 4.11.5 for Mac中文免费激活版下载
|
Linux Windows
Windows往Linux传文件----FileZilla Client工具使用[2021-10-22亲测有用]
Windows往Linux传文件----FileZilla Client工具使用[2021-10-22亲测有用]
197 0
Windows往Linux传文件----FileZilla Client工具使用[2021-10-22亲测有用]
|
安全 数据安全/隐私保护
ubantu之使用中文和Teamviewer远程
ubantu之使用中文和Teamviewer远程
ubantu之使用中文和Teamviewer远程
|
索引 Windows
EndNote 20.4.1 英文版 for Windows (含激活补丁)
EndNote是一款主流的文档管理软件,被数以百万计的研究人员、学生和图书管理员使用。
288 0
EndNote 20.4.1 英文版 for Windows (含激活补丁)
|
编解码 人工智能 安全
Adobe Photoshop 2023 For Mac V24.0(Ps2023 Mac)支持M1中文激活完整版下载
Adobe Photoshop 2023 For Mac V24.0(Ps2023 Mac)支持M1中文激活完整版下载
Adobe Photoshop 2023 For Mac V24.0(Ps2023 Mac)支持M1中文激活完整版下载
|
域名解析 缓存 网络协议
【TCP/IP】【调试】Windows常用网络相关DOS命令一览
【TCP/IP】【调试】Windows常用网络相关DOS命令一览
406 0
黑苹果系统,如何把键盘更改成和MAC自带的一样
黑苹果系统,如何把键盘更改成和MAC自带的一样
黑苹果系统,如何把键盘更改成和MAC自带的一样