randomascii / blogstuff Goto Github PK
View Code? Open in Web Editor NEWSupport files related to blog posts on https://randomascii.wordpress.com/
License: Other
Support files related to blog posts on https://randomascii.wordpress.com/
License: Other
Hi,
I tried to clone the repo and run the prebuilt binaries for FindZombieHandles. The program works as expected although it warns that it can't find all the zombies due to being unable to get debug privileges. However, even when running as admin I still get the same warning:
I'm on Windows 10 Pro 1709, if that matters.
Thanks!
When PIDs grow over 2^16 - 1 (65535), zombies.Count
is almost always 0.
NtApiDotNet's SystemHandleTableInfoEntry
stores UniqueProcessId
as a ushort
. As a UInt16
, obviously it'll wrap on >= 2^16.
This is possibly more of a bug in NtApiDotNet, but I don't know the NT API well enough to be sure.
More specifically, it's on
blogstuff/FindZombieHandles/Program.cs
Line 51 in 0e55d94
NtSystemInfo.GetHandles
call filtering on NtProcess.Current.ProcessId
will never find any results if NtProcess.Current.ProcessId
is bigger than a UInt16
.
Funnily enough, this makes FindZombieHandles unusable on the worse leaks that force PIDs to grow very quickly.
The latest FindZombieHandles fails after running ProcessCreateTests from this branch/commit:
The error message printed is:
(0xC0000023) - {Buffer Too Small}
The buffer is too small to contain the entry. No information has been written to the buffer.
I have not seen the message trigger under other cases. I suspect the problem is caused by there being a very large number of processes that are holding zombie process handles, rather than it being a problem with a very large number of zombie process handles.
Hi everyone.
I've tested FindZombieHandles in two VM's running Windows Server 2012 R2, and it didn't find any zombies. It returns the above message:
I'm running it as Administrator on both VM's.
Regarding .NET version, I have:
and
Do you have any idea of what is the cause of this issue?
Thank you in advance,
Leandro
C:\data>FindZombieHandles.exe
This version of C:\data\FindZombieHandles.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
Microsoft Windows [Version 10.0.17133.1]
x64
Any suggestions? Running as admin, not sure what the deal is..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.