A PowerShell module for defining in-memory enums, structs, and Win32 functions without compiling C#.
PSReflect is a PowerShell module that allows developers to define enums, structs, and Win32 API functions entirely in memory without compiling C# code. It solves the problem of interacting with low-level Windows APIs dynamically and stealthily, making it easier to perform system-level operations directly from PowerShell scripts. This is especially useful for security testing, system administration, and automation tasks that require native API access.
Security researchers, red teamers, system administrators, and PowerShell developers who need to interact with Windows APIs dynamically without leaving compiled artifacts on disk.
Developers choose PSReflect because it eliminates the need for C# compilation, reduces external dependencies, and enables stealthy in-memory execution of Win32 API calls, all within the familiar PowerShell environment.
Easily define in-memory enums, structs, and Win32 functions in PowerShell
Enables defining enums, structs, and Win32 functions without compiling to disk, reducing forensic traces and enabling stealth operations as highlighted in the README.
Works entirely within PowerShell, avoiding the need for C# compilation or additional tools, maintaining script portability and simplicity.
Facilitates on-the-fly calling of native Windows APIs, useful for security testing and system administration without pre-compiled code.
Tied strictly to Windows and Win32 APIs, making it unsuitable for Linux, macOS, or any cross-platform development efforts.
Uses .NET reflection dynamically at runtime, which can be slower and less efficient than pre-compiled C# code for frequent or high-performance API calls.
Requires deep knowledge of Win32 APIs and advanced PowerShell features, not ideal for casual scripters or those new to low-level system programming.
PowerSploit - A PowerShell Post-Exploitation Framework
Six Degrees of Domain Admin
Nishang - Offensive PowerShell for red team, penetration testing and offensive security.
Empire is a PowerShell and Python post-exploitation agent.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.