Used for HTB Visual machine practice.
- Add the PreBuild event in the ConsoleApp1.csproj file. Or use hoaxshell (https://github.com/t3l3machus/hoaxshell) to create a base64 encoded Windows reverse shell and copy it to the file.
- If you use dotnet in Linux to create a .Net project instead of Visual Studio. Please check the SLN file. It must contain similar content as the following: