Pennyw0rth / NetExec

The Network Execution Tool
https://netexec.wiki/
BSD 2-Clause "Simplified" License
3.27k stars 358 forks source link

[SMB] Add the --qwinsta option to list remote RDP/Console sessions and --tasklist option #426

Closed Dfte closed 1 month ago

Dfte commented 1 month ago

Adding the --qwinsta option to list remote RDP/Console sessions:

nxc smb 192.168.56.0/24 -u Administrateur -p Defte@WF --qwinsta

image

Works both with admin and non admin users :)

EDIT: I have added the --tasklist option as well:

nxc smb 192.168.56.0/24 -u Administrateur -p Defte@WF --tasklist

image

mpgn commented 1 month ago

👍

however kerberos will no work with this option (currently) but it's seems implemented in the tsts class :)