One Day Sec

How do I integrate a third-party open-source library like SharpWMI into SharpGen?

Copy the library's source code (e.g., SharpWMI) into `SharpGen/Source`, modify the `.csproj` file to add any missing assembly references (e.g., `System.Management`), and adjust the library’s static methods to `public`. Then recompile SharpGen with `dotnet build --configuration Release`. After that, you can call the library’s methods in your SharpGen source files, such as `SharpWMI.Program.LocalWMIQuery(...)`. This technique is similar to how Covenant integrates SharpSploit – see Covenant Utilization Analysis for related concepts.
SharpGenlibrary integrationSharpWMIC# templateassembly references

Browse all Q&A →