Closed stormyordos closed 4 years ago
If you can send the C# payload in a gist, we'd be happy to take a closer look. But from what you mentioned, here's what I'd try:
Going to close this for now. Please re-open if you're still having an issue after following the comment above. Thank you!
Hi, Using EXCELntDonut on Kali with a standard distro installed, I generated a CSharp payload from PowerShell Empire and tried using this project to compile and embed it into an XLS. However, the compilation gives me this error:
The type or namespace name
Automation' does not exist in the namespaceSystem.Management'. Are you missing an assembly reference?
My command is as follows: `` EXCELntDonut -f test.cs -r System.Windows.Forms.dll,System.Management --sandbox --obfuscate
The test program contains the following uses:
using System; using System.Text; using System.Management.Automation; using System.Management.Automation.Runspaces;
Adding "System.Management.Automation" to references doesn't work as the assembly doesn't seem to exist in the mono installation, and adding the assembly manually creates further problems with runspaces. Is there something simple I'm missing?