About Terminal Server, Citrix, Delphi and other stuff
Today just some fun stuff with ASM, probably not the most recommended way to do things but for sure the most geeky way ![]()
Get the Current Session Id:
Get the Current Console Session Id:
And… if we can read it we can also write it?
and
You can safely try it since it of course affects the current process only, so don’t worry.
And perhaps more usefull
No related posts.
Active Directory Altiris bug Citrix Dell Delphi Exchange Exchange2003 Exchange2010 Hewlett-Packard HP iOS Jailbreak Java LinkedIn Linux MSI MySQL Navigation Objects Office Outlook Passat PowerPoint PowerShell referall was returned RNS315 RNS510 SasLibEx script slow Terminal Server ThinApp TSAdmin TSAdminEx VBS VCDS Vista VMWare Volkswagen Windows PE WLAN Wordpress WTSWaitSystemEvent wts_event_flush
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.
2 Responses for "Fun with asm"
Exellent article Remko!
Little question: imagine you have ThreadA and ThreadB. Is it possible to get ThreadB’s TEB from within ThreadA?
Thanks!
It’s possible by using NtQueryInformationThread function with ThreadBasicInformation class.
Leave a reply