From 1cc4a593490baf0f8405a5cbf978a1df4e264888 Mon Sep 17 00:00:00 2001 From: HarmJ0y Date: Wed, 6 Feb 2019 16:17:35 -0800 Subject: [PATCH] Added Rubeus library build instructions to the README.md --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 690b00b..763d69f 100755 --- a/README.md +++ b/README.md @@ -910,4 +910,19 @@ Further, you can pass the /registry flag to save the tickets into the registry f We are not planning on releasing binaries for Rubeus, so you will have to compile yourself :) -Rubeus has been built against .NET 3.5 and is compatible with [Visual Studio 2015 Community Edition](https://go.microsoft.com/fwlink/?LinkId=532606&clcid=0x409). Simply open up the project .sln, choose "release", and build. \ No newline at end of file +Rubeus has been built against .NET 3.5 and is compatible with [Visual Studio 2015 Community Edition](https://go.microsoft.com/fwlink/?LinkId=532606&clcid=0x409). Simply open up the project .sln, choose "release", and build. + + +### Sidenote: Building Rubeus as a Library + +To build Rubeus as a library, under **Project** -> **Rubeus Properties** -> change **Output type** to **Class Library**. Compile, and add the Rubeus.dll as a reference to whatever project you want. Rubeus functionality can then be invoked as in a number of ways: + + + // pass the Main method the arguments you want + Rubeus.Program.Main("dump /luid:3050142".Split()); + + // or invoke specific functionality manually + Rubeus.LSA.ListKerberosTicketDataAllUsers(new Rubeus.Interop.LUID()); + + +You can then use [ILMerge](https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=17630) to merge the Rubeus.dll into your resulting project assembly for a single, self-contained file.