首 页 ┆ 源码下载 ┆ IT学院 ┆ 字体下载 ┆ 模板下载 ┆ 源码发布 ┆ 广告合作 ┆ 网站地图
► 设为首页
► 加入收藏
► 联系我们
源码下载 >> ASP源码 | PHP源码 | ASP.net源码 | JSP源码 | CGI源码 | VC/C++源码 | VB源码 | Delphi源码 | Flash源码
文章学院 >> 网络编程 | 网页设计 | 图形图象 | 数据库 | 服务器 | 网络媒体 | 网络安全 | 操作系统 | 办公软件 | 软件开发 | 黑客知识
字体下载 >> 精制字体 | 非英字体 | 艺术字体 | 著名字体 | 哥特式 | 简单字体 | 手写体 | 节假日 | 图案字体 | 精度像素 | 中文字体
模板下载 >> 企业门户 | 数码网络 | 休闲娱乐 | 影视音乐 | 旅游名胜 | 文化艺术 | 电子商务 | 个性展示 | 登陆导航 | Flash模板
►►您当前的位置:源码园 → 源码下载 → VC/C++源码 → 系统编程 → 源码源码信息
下载栏目导航
  • 多 媒 体
  • 网络编程
  • 数 据 库
  • 系统编程
  • 游戏编程
  • 算法相关
  • 局 域 网
  • 图像相关
  • 窗体界面
  • 其它类别
推荐源码
  • QQ娱乐资源网音乐插件版
  • 便民拼车网留言本
  • Elite记事薄(功能完善,界面规范)...
  • 简易小画板
  • 谷歌联盟Google AdSense点击统计...
  • 深度学习网址导航系统 v2.2.16
  • Rainbow v1.4.0.1778e RC4汉化版...
  • Xaraya v0.9.12多国语言版
  • 荒野新闻系统企业标准版3.5.5
  • 宏远VOD原代码
  • DedeCms V3.1 Lit版 Build 20061...
  • 民航管理系统(作业)
  • 图像浏览jpeg,bmp,gif,png
  • NovoCM CRM v3.4.8 Released
  • 金华分类信息网 v2.0
  • Sunshine Office Anywherev2.0
  • 手机财务管理WEB版

Tokenmon源码

运行环境:9x/Me/NT/2000/XP/
源码语言:简体中文
源码类型:VC/C++源码 - 系统编程
授权方式:免费软件
源码大小:146 KB
推荐星级:
更新时间:2004-11-13 21:43:59
联系方式:暂无联系方式
演示地址:暂无演示
官方主页:暂无提供
图片预览: 没有预览图片
下载统计:
源码简介
TOKEN监视器,分为系统驱动和GDI界面两部分,对深入学习系统编程很有帮助,初学的就不用看了
Introduction 
Tokenmon is a application that monitors and displays a variety of security-related activity taking place on a system. Tokenmon gets its name from the fact that Windows NT/2000 stores a process‘ security information, including the user account context in which the process executes, in an object called a token. Tokenmon monitors includes the following: 
User logon/logoff 
Applications enabling or disabling security privileges in their process tokens 
Process startup and exit (token creation/deletion) 
Impersonation 
Tokenmon has advanced filtering and search capabilities that make it a powerful tool for exploring the way NT works, seeing how applications use security functions, or tracking down problems in system or application configurations. 

Tokenmon works on NT 4.0 and Windows 2000.

Installation and Use 
Simply run the Tokenmon GUI (Tokenmon.exe). Note that you must have administrative privilege to run Tokenmon. Menus, hot-keys, or toolbar buttons can be used to clear the window, save the monitored data to a file, and to filter and search output. 
When a thread impersonates you‘ll see the thread‘s primary identity in the domainuser column and the identity its adopting in the Other column. Any security actions it performs at that point are in the impersonation context. When it reverts back to its own identity the thread‘s primary identity is again shown in the domainuser column.

As events are printed to the output, they are tagged with a sequence number. If Tokenmon‘s internal buffers are overflowed during extremely heavy activity, this will be reflected with gaps in the sequence number.

Each time you exit Tokenmon it remembers the position of the window and the widths of the output columns. 

How Tokenmon Works 
Tokenmon intercepts logon by hooking the NtCreateToken native API. The local security authority uses this API to create an initial login token when a user logs in either remotely or locally. When a user logs on the Local Security Authority Subsystem (LSASS) assigns the logon session a locally unique identifer (LUID) called a logon ID. To see a corresponding logoff, Tokenmon registers with the Security Reference Monitor (SRM) using the SeRegisterLogonSessionTerminatedRoutine kernel function, which requests that the SRM call the driver back whenever a user is logged off. 
In order to see a process enable and disable privileges, Tokenmon hooks the NtAdjustPrivilegesToken function, which is the native API-equivalent of the Win32 AdjustTokenPrivileges functions. This function takes an array of privileges with a flag for each indicating whether the process wants to enable or disable it. Tokenmon shows the action for each privilege affected by a single call in separate output lines.

Tokenmon uses the PsSetCreateProcessNotifyRoutine kernel function, which is documented in the Windows 2000 DDK (but available on NT 4), to register a callback function whenever a process starts or exits. 

Finally, there are several functions that applications can use to impersonate another user. Tokenmon hooks NtSetInformationThread, a variant of which is the native API-equivalent of the ImpersonateLoggedOnUser and ImpersonateSelf Win32 APIs, the FSCTL_PIPE_IMPERSONATE variant of NtFsControlFile (the native-equivalent of ImpersonateNamedPipeClient), and NtImpersonateClientOfPort, which is called by applications using the Local Procedure Call (LPC) facility and local RPC for impersonating the remote end of a LPC connection.

Tokenmon relies on several undocumented SRM functions to obtain a logon ID from a thread‘s primary and impersonation tokens, and GetSecurityUserInfo, an undocumented function exported by the KSecDD (Kernel Security-support driver) that retrieves a logon session user‘s name, domain name, and logon server given a logon ID. Another interesting implementation detail is that several of the native API functions that Tokenmon hooks are not exported by ntoskrnl.exe for use by drivers. Thus, the Tokenmon GUI must reach into NTDLL.DLL, extract their system call numbers, and pass them to the driver. This contrasts with Regmon, which reaches into ntoskrnl.exe using Registry function exports to obtain system call numbers.

See Inside Windows 2000, 3rd Edition by David Solomon and Mark Russinovich (Microsoft Press) for more information on the Windows NT/2000 security subsystem.

下载地址
点击此处立即下载
下载说明
* 为了达到最快的下载速度,推荐使用网际快车或迅雷下载本站软件。
* 若无法正常解压,请使用较新版本WinRAR解压本站提供的软件!
* 如果您发现下载链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含破解及注册码均是由网上搜集,若侵犯了你的版权利益,敬请来信通知我们!
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 源码发布
Copyright © 2003-2009 Ymyasp.Com. All Rights Reserved .
备案序号:粤ICP备07029071号