大网数据广告活动
服务器运维问答

Getting the Network Credentials of a running process?

· 52CE 我爱测

If a Windows program is run with ‘runas’ using the ‘/netonly’ argument is there any way to see what credentials are being used by it for the network? Similar to the way you might see a process is being run by a certain user in th…

问题原文

原帖链接 · leeand00 · CC BY-SA 4.0

If a Windows program is run with ‘runas’ using the ‘/netonly’ argument is there any way to see what credentials are being used by it for the network? Similar to the way you might see a process is being run by a certain user in the task manager, or in ‘tasklist’ or in Get-Process?

已采纳解答

原帖链接 · Daniel · CC BY-SA 4.0

Do the following as any user with administrative privileges. Naturally, this only works after the process -- that has been started with runas /netonly -- accessed a network resource.

  • Open a command line with elevated permissions (Run as Administrator) and enter klist sessions.
  • Search for the session where it says Negotiate:NewCredentials (comes from the /netonly switch ➜ logon type 9) and that contains the username that executed the runas command.
  • Note the session id, e.g. 0x154f7a8.
  • Enter the command klist -li 0x154f7a8. This will show you all the kerberos tickets for this session. The kerberos tickets are granted to the user account that was used for the runas /netonly command. If the command does not return any tickets, then the process has not yet accessed a network resource, thus did not receive a ticket yet. In that case I think your only chance is to use something like mimikatz to read the cached credentials from memory.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-12-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。