-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override 对 21H2 (Windows 11) 不生效 #2
Comments
尝试使用 Sysinternals Suite 中的 dbgview.exe 查看是否有调试信息输出,注意选中 Capture Global Win32。 |
同样的情况 |
我实测发现Windows 11新版本中使用netprofmsvc.dll提供NlaSvc的实现。我简单修改了一下LoadTargetLibrary函数的实现
然鹅似乎并没有用,也没有能在dbgview.exe中看到我添加的输出,还请楼主赐教。 |
检查发现 NCSI 相关 event log 是从 netprofm 服务进程中发出,可以尝试注入此服务。 |
嘤嘤嘤,我主要是做Linux内核开发,对Windows的服务模型不太了解,我的理解的话,NCSI判定网络连接的NcsiPerformReprobe函数是在ncsi.dll中实现的,大佬的工作主要是为了hook这个函数的返回值。其实我不明白要去hook nlasvc.dll的原理,现在改成了netprofmsvc.dll后就更不知道怎么改了,大佬可以给写提示吗?
…________________________________
发件人: dantmnf ***@***.***>
发送时间: 2022年12月21日 21:23
收件人: dantmnf/NCSIOverride ***@***.***>
抄送: V3GWR36YG ***@***.***>; Comment ***@***.***>
主题: Re: [dantmnf/NCSIOverride] Override 对 21H2 (Windows 11) 不生效 (#2)
我实测发现Windows 11新版本中使用netprofmsvc.dll提供NlaSvc的实现。
检查发现 NCSI 相关 event log 是从 netprofm 服务进程中发出,可以尝试注入此服务。
―
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGCG6H7UCOIPIFX7EFV56BLWOPQWNANCNFSM5FUUXQ6Q>.
You are receiving this because you commented.Message ID: ***@***.***>
|
实际 hook 的函数是 注入方式是 DLL 劫持,即目标进程载入 DLL 时安装 hook,同时转发原 DLL 中的功能。修改注册表中的服务入口 DLL 是一种侵入性比较低的劫持方式,同时也不会被小更新重置。 NCSI 运行期间会输出 event log (事件查看器中 Applications and Services Logs\Microsoft\Windows\NCSI\Operational),其中有记录来源进程的 PID,可以通过 PID 反查 NCSI 在哪个服务中运行,从而劫持此服务注入 hook。 |
另外正如 README 所说,我卸载 npcap 之后就没有遇到 NCSI 不灵的问题了,所以这个东西我自己也没在用了( |
感谢大佬的迅速回复!我这就去研究一下。
…________________________________
发件人: dantmnf ***@***.***>
发送时间: 2022年12月21日 23:48
收件人: dantmnf/NCSIOverride ***@***.***>
抄送: V3GWR36YG ***@***.***>; Comment ***@***.***>
主题: Re: [dantmnf/NCSIOverride] Override 对 21H2 (Windows 11) 不生效 (#2)
另外正如 README 所说,我卸载 npcap 之后就没有遇到 NCSI 不灵的问题了,所以这个东西我自己也没在用了(
―
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGCG6H5ESIDWJA35H7D5Q4TWOQBVVANCNFSM5FUUXQ6Q>.
You are receiving this because you commented.Message ID: ***@***.***>
|
打扰下,我的系统是 Win11 22H2,
|
是的,可以看一下我们前面的讨论,目前是由netprofmsvc服务加载这个。 |
重写了一下这个项目,在https://github.com/shezik/NCSIOverride。 |
offsets 已按照
README.md
中提示获取了,但是仍无法修改网络状态The text was updated successfully, but these errors were encountered: