Skip to content

Instantly share code, notes, and snippets.

@hacksysteam
Created May 7, 2015 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hacksysteam/4d74bf8ac59fe9547938 to your computer and use it in GitHub Desktop.
Save hacksysteam/4d74bf8ac59fe9547938 to your computer and use it in GitHub Desktop.
Token Stealing Using WinDBG
kd> .process /i 8570b5e8
You need to continue execution (press 'g' <enter>) for the context
to be switched. When the debugger breaks in again, you will be in
the new process context.
kd> g
Break instruction exception - code 80000003 (first chance)
nt!RtlpBreakWithStatusInstruction:
826c0110 cc int 3
kd> dg @fs
P Si Gr Pr Lo
Sel Base Limit Type l ze an es ng Flags
---- -------- -------- ---------- - -- -- -- -- --------
0030 82770c00 00003748 Data RW Ac 0 Bg By P Nl 00000493
kd> !pcr
KPCR for Processor 0 at 82770c00:
Major 1 Minor 1
NtTib.ExceptionList: 88a573ac
NtTib.StackBase: 00000000
NtTib.StackLimit: 00000000
NtTib.SubSystemTib: 801da000
NtTib.Version: 0001c7c1
NtTib.UserPointer: 00000001
NtTib.SelfTib: 00000000
SelfPcr: 82770c00
Prcb: 82770d20
. . .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment