本文介绍了安全的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 你好,全部! 如何检查我是否可以访问特定的网络资源? 或者,用户''域名和密码检查他或她是否可以访问 网络资源? 谢谢。Hello, All!How can I check if I have access to specific network resource?Or, having user''s domain name and password check if he or she has access tonetwork resource?Thanks.推荐答案 不确定你叫什么网络资源? 如果它是远程文件服务器,请尝试使用资源(fi。打开文件)和 捕获访问被拒绝。异常就像你对本地档案一样。 威利。Not sure what are you calling a network resource?If it''s a remote file server, try to use the resource (fi. open a file) andcatch the "access denied" exception just like you do for a local file.Willy. 不,他们不这样做,但如果你在调用 LogonUser(NETWORK_CLEARTEXT)时指定了正确的logontype,你将获得一个直接令牌网络 访问权限! 如果你像我一样并且不喜欢冒充,你只需要建立 a网络登录会话(使用记录)使用净使用命令(来自 命令行的登录脚本),或通过调用Win32 API NetUseAdd通过 PInvoke。 Willy。No they dont, but if you specify the correct logontype when callingLogonUser (NETWORK_CLEARTEXT) you will get a direct token with networkaccess privileges!If you''re like me and don''t like impersonation, you simply have to establisha network logon session (use record) using the "net use" command (from thecommand line a logon script), or by calling Win32 API NetUseAdd throughPInvoke.Willy. 这篇关于安全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-22 17:11