上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 77 下一页
摘要: 转换库WoW64子系统是一个轻量级的compatibility layer, 在所有版本的windows上都拥有同样的接口. 它的主要目的是用来创建32-bit环境, 为了让32位的应用程序可以不经过任何修改就运行在64-bit的系统上, 它提供了必须的接口.技术上说, WOW64是由三个DLL实现的.Wow64.dll是Windows NT kernel的核心接口, 在32位和64位调用之间进行转换, 包括指针和调用栈的操控.Wow64win.dll 为32位应用程序提供合适的入口指针.Wow64cpu.dll负责将处理器在32位和64位的模式之间转换.注册表和文件系统 WOW子系统也会处理 阅读全文
posted @ 2011-07-21 16:01 ahuo 阅读(375) 评论(0) 推荐(0)
摘要: "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin\signtool.exe"签名工具是一个命令行工具的数字签名的文件,验证文件和时间戳文件中的签名。 签名工具将自动安装的 Visual Studio 中。 要启动工具,请使用 Visual Studio 命令提示符。 签名工具具有以下常规语法: signtool [command] [options] [file_name | ...] 参数 参数 说明 command 四个命令之一 ( catdb、 sign、 Timestamp,或 Verify) 阅读全文
posted @ 2011-07-21 11:48 ahuo 阅读(2031) 评论(0) 推荐(0)
摘要: win7 x64 下VC6的调试程序无法退出的问题Common/MSDev98/Bin/TLLOC.dll必须安装VCSP6,否则无效。http://files.cnblogs.com/ahuo/vc6win7x64.rar 阅读全文
posted @ 2011-07-18 16:05 ahuo 阅读(502) 评论(0) 推荐(0)
摘要: Authenticode®是一种数字签名格式,它是用来验证二进制软件的来源和完整性。Authenticode是基于公开密匙加密标准(PKCS) #7 来签名数据,并使用X.509证书来绑定经过数字签发的二进制程序与其软件发布者的身份的联系。这份文档包含Authenticode签名的结构和技术细节。这份文档不讨论如何签发/处理X.509证书,如何使用Windows SDK工具来签署二进制程序,如何部署代码签名基础设施,或者相关的Windows® API函数。这方面的相关信息可以查看在本文档最后的“资源”章节。本资料应用于下列操作系统: Windows Server® 阅读全文
posted @ 2011-07-13 13:55 ahuo 阅读(3521) 评论(0) 推荐(0)
摘要: 创建脚本debug.batcall C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Remote Debugger\x86\msvsmon.exe" /noauth /anyuser /silent创建服务sc create runsys binpath= "cmd /k start c:\debug.bat" type= own type= interact完成后机器不用登录都可以调试了 阅读全文
posted @ 2011-07-07 17:43 ahuo 阅读(312) 评论(0) 推荐(0)
摘要: void ExpandTreeItems(const CTreeCtrl& tree,HTREEITEM hItem) { AfxMessageBox( tree.GetItemText(hItem));HTREEITEM hChildItem = tree.GetChildItem(hItem); if ( NULL != hChildItem)ExpandTreeItems(tree,hChildItem); HTREEITEM hSib = tree.GetNextSiblingItem(hItem);if (hSib != NULL)ExpandTreeItems(tree,h 阅读全文
posted @ 2011-07-06 19:38 ahuo 阅读(5252) 评论(0) 推荐(0)
摘要: Windows Research KernelWRK目录列表模块目录模块功能cache\cache managerconfig\registry implementationdbgk\user-mode debugger supportex\executive functions (kernel heap, synchronization, time)fsrtl\file system run-time supportio\I/O managerke\scheduler, CPU management, low-level synchronizationlpc\local procedure 阅读全文
posted @ 2011-05-29 22:44 ahuo 阅读(8897) 评论(0) 推荐(0)
摘要: .dml_startkd> .dml_startAnalyze last eventBrowse process informationBrowse core commandsBrowse extension chainBrowse dot commandskd> .help /D a*A B C D E F G H I J K L M N O P Q R S T U V W X Y Z All. commands matching a*: .allow_bp_ba_convert [0|1] - Control bp/bm/bu breakpoints to use hardwa 阅读全文
posted @ 2011-04-15 13:56 ahuo 阅读(393) 评论(0) 推荐(0)
摘要: !devnode \DEVICE\{A4F74E3A-7A5D-4BFA-8B76-AC26F16DE201}Dumping IopRootDeviceNode (= 0x81ebdce0)DevNode 0x81ebdce0 for PDO 0x81ebde18 Parent 0000000000 Sibling 0000000000 Child 0x81ebd840 InstancePath is "HTREE\ROOT\0" State = DeviceNodeStarted (0x308) Previous State = DeviceNodeEnumerateCo 阅读全文
posted @ 2011-04-10 20:58 ahuo 阅读(911) 评论(2) 推荐(0)
摘要: NTSTATUS ntStatus = STATUS_SUCCESS; PDEVICE_OBJECT DeviceObject = NULL; PFILE_OBJECT FileObject = NULL; ntStatus = IoGetDeviceObjectPointer(pObjectName,FILE_ALL_ACCESS,&FileObject,&DeviceObject); if(!NT_SUCCESS(ntStatus)) { KdPrint(("IoGetDeviceObjectPointer Failed,ntStatus = 0x%08lX\n& 阅读全文
posted @ 2011-04-10 15:16 ahuo 阅读(460) 评论(0) 推荐(0)
摘要: 1.什么是Access TokenAccess Token用来标识一个用户,其中包括用户的SID和用户所属组的SID,还包括这个用户和所属用户组的所拥有的权限列表。当用户输入用户名和密码登陆到Windows之后,Windows会创建一个Acess Token,用来标识这个用户。在这个用户下创建的进程都将得到一份这个Access Token的备份。当进程需要访问一个可以加密的对象(如文件,事件等)时,windows利用这个Access Token来跟对象的Security Descriptor进行比较,以确认这个进程是否有权限来访问这个对象。(关于SID和Security Descriptor请 阅读全文
posted @ 2011-03-27 23:12 ahuo 阅读(742) 评论(0) 推荐(0)
摘要: 1,一个session中可以拥有多个winstation,一个winstation必然属于某个session,且无法更换。2,所有winstation的函数,包括OpenWindowStation,CreateWindowStation,EnumWindowStations等等,均仅限于调用Process的primary token的session。3,一个process仅对应一个session,也即其primary token的session。更简单的方法是ProcessIdToSessionId。当然也可以通过查询primary token的方法获得。一个process的thread可以拥 阅读全文
posted @ 2011-03-27 23:10 ahuo 阅读(802) 评论(0) 推荐(0)
摘要: 用法: prog.exe address1:port1 address2:port2程序将从本地端口的port1接收的数据发往 address1:port1, 同时address1:port1发出的数据将转发会原始的发送者。#ifndef __WIN32__#include<time.h>#include<errno.h>#include<fcntl.h>#include<unistd.h>#include<signal.h>#include<sys/types.h>#include<netinet/in.h> 阅读全文
posted @ 2011-03-27 23:03 ahuo 阅读(891) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<assert.h>#include<windows.h>#defineLOCK_READ0#defineLOCK_WRITE1classrwlock{public:rwlock();~rwlock();public:voidlock(intdirect);voidunlock(intdirect);voidlock_exclusive(void);voidunlock_exclusive(void);voidwrlock(){lock(LOCK_WRITE);}voidwrunlock(){unlock(L 阅读全文
posted @ 2011-03-27 23:00 ahuo 阅读(393) 评论(0) 推荐(0)
摘要: HANDLE hToken;TOKEN_PRIVILEGES tkp;OpenProcessToken(GetCurrentProcess(),TOKEN_ADJUST_PRIVILEGES|TOKEN_QUERY,&hToken);tkp.PrivilegeCount=1;tkp.Privileges[0].Attributes=SE_PRIVILEGE_ENABLED;LookupPrivilegeValue(NULL,SE_SHUTDOWN_NAME,&tkp.Privileges[0].Luid);AdjustTokenPrivileges(hToken,FALSE,& 阅读全文
posted @ 2011-03-27 22:58 ahuo 阅读(440) 评论(0) 推荐(0)
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 77 下一页