精易论坛

标题: 【升级】易语言文件解锁(关闭句柄法) [打印本页]

作者: 1185384801    时间: 2019-5-1 13:45
标题: 【升级】易语言文件解锁(关闭句柄法)

前言



正文













1. NtClose is a generic routine that operates on any type of object.
2. Closing an open object handle causes that handle to become invalid. The system also decrements the handle count for the object and checks whether the object can be deleted. The system does not actually delete the object until all of the object's handles are closed and no referenced pointers remain.
3. A driver must close every handle that it opens as soon as the handle is no longer required. Kernel handles, which are those that are opened by a system thread or by specifying the OBJ_KERNEL_HANDLE flag, can be closed only when the previous processor mode is KernelMode. This requirement applies both to system threads and to dispatch routines for IRPs that were issued from kernel mode. (For more information about the previous processor mode, see ExGetPreviousMode.) For example, a handle that NtCreateKey returns to a DriverEntry routine cannot subsequently be closed by the same driver's dispatch routines. A DriverEntry routine runs in a system process, whereas dispatch routines usually run either in the context of the thread issuing the current I/O request, or, for lower-level drivers, in an arbitrary thread context.
4. A nonkernel handle can be closed only if one of two conditions is met: The previous processor mode is KernelMode, or the calling thread has sufficient permission to close the handle. An example of the latter occurs when the calling thread is the one that created the handle.
5. Callers of NtClose should not assume that this routine automatically waits for all I/O to complete prior to returning.

1. NtClose是一个在任何类型的对象上运行的通用例程。
2. 关闭打开的对象句柄会导致该句柄无效。系统还会减少对象的句柄计数,并检查是否可以删除该对象。在关闭所有对象的句柄并且不保留引用的指针之前,系统实际上不会删除该对象。
3. 一旦不再需要句柄,驱动程序必须关闭它打开的每个句柄。内核句柄是由系统线程打开或通过指定OBJ_KERNEL_HANDLE标志的句柄,只有在先前的处理器模式为KernelMode时才能关闭。此要求适用于系统线程和分配从内核模式发出的IRP的例程。 (有关先前处理器模式的更多信息,请参阅ExGetPreviousMode。)例如,NtCreateKey返回到DriverEntry例程的句柄随后不能由相同的驱动程序的调度例程关闭。 DriverEntry例程在系统进程中运行,而调度例程通常在发出当前I / O请求的线程的上下文中运行,或者对于较低级别的驱动程序在任意线程上下文中运行。
4. 只有满足以下两个条件之一时,才能关闭非内核句柄:先前的处理器模式是KernelMode,或者调用线程有足够的权限来关闭句柄。当调用线程是创建句柄的线程时,会发生后者的示例。
5. NtClose的调用者不应该假设此例程在返回之前自动等待所有I / O完成。
























增加命令 备注 参数
RemoteCloseHandle1 远程关闭句柄,基本通吃 ProcessId和Handle
RemoteCloseHandle2 NtClose法,不支持64位进程! ProcessId和Handle



结尾语


最后还是那句老话:源码回复下载!!


最后说一句:如果你觉得可以的话,请:


附件下载:



[hide=d9999] 扫描进程占用.zip (717.66 KB, 下载次数: 529) [/hide]

作者: a2964355835    时间: 2019-5-1 14:30
最后说一句:如果你觉得可以的话,请:


作者: 就是那个秋    时间: 2019-5-1 14:31
感谢发布原创作品,精易因你更精彩!
作者: sxlldaj    时间: 2019-5-1 16:32
谢谢分享,学习了

作者: Mr.Yang    时间: 2019-5-1 17:03

作者: 路人丁20    时间: 2019-5-1 17:08
看看什么原理
作者: a2289128964    时间: 2019-5-1 17:19
1111111111111
作者: a135123    时间: 2019-5-1 17:43

RE: 【升级】易语言文件解锁(关闭句柄法) [修改]

作者: HeraLess    时间: 2019-5-1 20:01
666666666666666666
作者: kagari    时间: 2019-5-1 20:36
新技能已get√
作者: 毛超    时间: 2019-5-1 21:01
感谢分享!!!!!!!

作者: suibiankan    时间: 2019-5-1 22:37
这个厉害了,厉害
作者: yxl2008    时间: 2019-5-2 09:00
谢谢楼主无私分享!
作者: guiiffhr    时间: 2019-5-2 09:49
看下 看下 看下
作者: 下下魔鬼    时间: 2019-5-2 12:51
提示: 作者被禁止或删除 内容自动屏蔽
作者: 文武双全1149    时间: 2019-5-2 13:38
牛哥666666666666666666666666666666666666666666666
作者: 文武双全1149    时间: 2019-5-2 13:38
4444444444444444444444444444444
作者: 不朽曦    时间: 2019-5-2 14:07
66666666666
作者: 不朽曦    时间: 2019-5-2 14:07
66666666666
作者: 不朽曦    时间: 2019-5-2 14:07
6666666666
作者: 225298658    时间: 2019-5-2 19:36
可以的,试下!
作者: 塔利班的蛋糕    时间: 2019-5-3 17:36
新技能已get√
作者: 桓宇凡    时间: 2019-5-4 09:02
学习下1111111

作者: Relieved    时间: 2019-5-4 09:05
谢谢分享11111
作者: 以烟代酒    时间: 2019-5-4 09:17
回复看隐藏
作者: 萌萌嗒的小白    时间: 2019-5-4 09:27
远程关闭句柄是怎么弄的

作者: 温柔的十一刀    时间: 2019-5-4 09:43
灰常不错         
作者: mzhsohu    时间: 2019-5-4 10:19
感谢分享~1
作者: ffsfdsa    时间: 2019-5-4 12:42
感谢分享,很给力!~1

作者: 汉族    时间: 2019-5-4 12:45
来掏帖  ,赞一个
作者: 韦贝贝    时间: 2019-5-4 16:26
        支持开源~!感谢分享
作者: 283688410    时间: 2019-5-4 22:29
谢谢分享,下载学习
作者: 影子需要光    时间: 2019-5-4 22:37
感谢分享感谢分享
作者: 89496414    时间: 2019-5-5 00:30
研究一下看看
作者: 乐乐大人    时间: 2019-5-5 00:38
很NB 果然超级用户
作者: wmv520    时间: 2019-5-5 00:56
#在这里快速回复#支持开源~!感谢分享
作者: Terrell    时间: 2019-5-6 21:56
感谢大佬的程序,这个正用得上
作者: 违规用户名309721    时间: 2019-5-7 04:26
没事学习一下哈哈哈
作者: 站在月光下想你    时间: 2019-5-8 11:04
是什么意思啊,下载来看看。
作者: 56766876    时间: 2019-6-12 11:10
支持开源~!感谢分享
作者: 一剑磨十年    时间: 2019-6-30 14:34
正好需要这个
作者: ycoca    时间: 2019-8-23 13:41
牛批啊老哥
作者: anranyo    时间: 2019-9-20 00:23
666666666666666
作者: anranyo    时间: 2019-10-19 19:34
支持
作者: 见与不见    时间: 2019-11-23 22:24
好                                                                   好
作者: 辽阳小哲    时间: 2019-12-20 22:37
扫描的时候卡死了  - -
作者: 辽阳小哲    时间: 2019-12-21 14:11
有些进程会扫描不到占用的句柄。
作者: 暴龙    时间: 2019-12-22 13:22
扫描的时候卡死
作者: ou000    时间: 2020-2-17 13:21
感谢分享,学习了~~~
作者: 已注销622479    时间: 2020-8-2 22:51
啥也不说 牛逼就完事了
作者: bachelor66    时间: 2020-10-14 16:33
下载学习一下                                
作者: gay酱    时间: 2021-8-5 09:28
支持支持支持支持支持支持支持支持支持支持
作者: 514562646    时间: 2021-8-29 23:34
感谢!!!!!!!!!!!!!!!!!!!
作者: 514562646    时间: 2021-8-29 23:35
谢谢作者!!!!!!!!!!!!!!!!!!!!!
作者: 562159129    时间: 2021-8-31 11:54
1111111111111111111
作者: linglong    时间: 2021-9-2 23:53
好好好好.....................
作者: 易语言1001    时间: 2021-9-30 00:23
学习感谢分享
作者: asas1234    时间: 2021-11-15 23:54
大佬能不能加上多线程扫描 扫描好慢
作者: 9638594    时间: 2021-12-25 20:15
好东西  看看  正好需要
作者: 撒加    时间: 2022-5-23 15:59
感谢发布原创作品,精易因你更精彩!
作者: 编程辉煌    时间: 2022-10-20 13:53
看看吧 学习一下
作者: 编程辉煌    时间: 2022-10-20 13:53
看看能不能实现强制删除DLL
作者: 编程辉煌    时间: 2022-10-20 13:53
看看6666666666666666666666666666666666
作者: 佰里佰渡    时间: 2022-12-11 23:48
11111111111111111111111
作者: 1870041280    时间: 2023-1-27 00:28
学习感谢分享
作者: 山猪    时间: 2023-10-12 17:42
666666666666666666666666
作者: 求合体的处男    时间: 2023-10-26 00:04
看看6666666666666666666666666666666666
作者: 像神一样飘渺    时间: 2023-11-17 07:49
支持开源~!感谢分享
作者: 网络注册络员    时间: 2024-4-7 23:24
支持开源
作者: hbsydwx    时间: 2024-6-15 23:05
易语言文件解锁(关闭句柄法)
作者: 游先森    时间: 2024-6-20 03:43
正好需要这个试试
作者: wcftt58    时间: 2024-8-21 18:02
支持开源~!感谢分享
作者: kydir    时间: 2024-11-14 09:59
支持开源~!感谢分享
作者: Z8D8C8    时间: 2025-1-10 17:03
谢谢分享,努力学习
作者: yankai233    时间: 2025-1-26 18:14
666 支持666 支持666 支持
作者: Enterld    时间: 2025-4-13 20:29
22222222222222




欢迎光临 精易论坛 (https://125.confly.eu.org/) Powered by Discuz! X3.4