AbstractClass / RedTeamInfra

GNU General Public License v3.0
4 stars 3 forks source link

Compile .Net binary on Linux container #1

Open 0xAJStrike opened 7 months ago

0xAJStrike commented 7 months ago

Will it be possible to compile .Net binaries on a Linux container on a Linux host using .Net Core and Powershell Core ? If yes, will such a binary run on windows machine ?

AbstractClass commented 7 months ago

I am not 100% sure as I've never tried it but I am fairly sure that will not work, I don't believe that tools like Rubeus can be compiled for .NET Core.

I would recommend using HyperV to get a nested virtualization setup so you can have a Windows10+ VM with WSL2 and follow the steps that way.

I will leave this thread open for a bit in case you find that .NET Core is a valid solution, it might help others facing the same issue.