Tag Archives: CSharp

Impersonation with C#

.Net offers multiple ways to manage impersonation and its level. The important point to understand is what is being impersonated: the thread or the process also is the impersonation happening on the process or is it happening only on the network. Below classes will show you how to impersonate in all this cases. First class:… Read More »

WMI and CSharp (C#): Enumerate all Namespaces from Root

I like to understand WMI (Windows Management Instrumentation) as a database, main concepts are: Namespaces: Databases Classes: Tables Properties: Columns Instances: Lines Values: Fields With this in mind, we can start enumerating all the namespaces we can access locally. Running this program will display: Next step is to enumerate all classes from a Namespace. This… Read More »