上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 77 下一页
摘要: "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 阅读(2018) 评论(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 阅读(500) 评论(0) 推荐(0)
摘要: Authenticode®是一种数字签名格式,它是用来验证二进制软件的来源和完整性。Authenticode是基于公开密匙加密标准(PKCS) #7 来签名数据,并使用X.509证书来绑定经过数字签发的二进制程序与其软件发布者的身份的联系。这份文档包含Authenticode签名的结构和技术细节。这份文档不讨论如何签发/处理X.509证书,如何使用Windows SDK工具来签署二进制程序,如何部署代码签名基础设施,或者相关的Windows® API函数。这方面的相关信息可以查看在本文档最后的“资源”章节。本资料应用于下列操作系统: Windows Server® 阅读全文
posted @ 2011-07-13 13:55 ahuo 阅读(3494) 评论(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 阅读(296) 评论(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 阅读(5250) 评论(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 阅读(8813) 评论(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 阅读(392) 评论(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 阅读(904) 评论(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 阅读(732) 评论(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 阅读(798) 评论(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 阅读(884) 评论(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 阅读(391) 评论(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 阅读(438) 评论(0) 推荐(0)
摘要: 1、对于CJK(多字节编码)的环境(泰文,日文,韩文,中文),CP_ACP与CP_OEMCP没有区别。2、对于非 CJK(单字节编码)的环境这两个代码页不同1)对应的实际代码页不同,例如English-US的环境,ACP对应1252,OEMCP而437。2)一个字节能表示的数值范围是(0-255),对于小于128的编码,437和1252对应的字符是一样的。3)对于大于128的编码,是不一样的,有可能有些OEM字符(大于128的编码)在437中不存在,有些ASCII(大于128的编码)字符在1252中不存在。4)相同的编码,对应的字符有可能不同。5)同理,相同的字符对应的编码有可能不同。3、wi 阅读全文
posted @ 2011-03-27 22:49 ahuo 阅读(1795) 评论(0) 推荐(0)
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 77 下一页