问题原文
原帖链接 · 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/netonlyswitch ➜ logon type 9) and that contains the username that executed therunascommand. - 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 therunas /netonlycommand. 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
