You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One may not want to install a Windows VM + install Visual Studio just to build a tool. So I tried to build SharpSploit DLL with Mono, MSBuild, .NET SDk, and NuGet on Linux.
$ git clone https://github.com/cobbr/SharpSploit
$ cd SharpSploit
$ nuget restore
$ msbuild SharpSploit.sln
Microsoft (R) Build Engine version 16.10.1 for Mono
Copyright (C) Microsoft Corporation. All rights reserved.
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
Build started 12/22/2021 5:45:09 PM.
Project "/tmp/SharpSploit/SharpSploit.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Debug|Any CPU".
Project "/tmp/SharpSploit/SharpSploit.sln" (1) is building "/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (2) on node 1 (default targets).
Project "/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (2) is building "/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (2:2) on node 1 (Build target(s)).
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreGenerateAssemblyInfo:
Skipping target "CoreGenerateAssemblyInfo" because all output files are up-to-date with respect to the input files.
CoreCompile:
/usr/lib/mono/msbuild/Current/bin/Roslyn/csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,1591,1701,1702 /fullpaths /nostdlib+ /platform:AnyCPU /errorreport:prompt /warn:4 /doc:./SharpSploit.xml /define:TRACE;DEBUG;NETFRAMEWORK;NET40 /highentropyva- /reference:/tmp/SharpSploit/SharpSploit/References/net40/mscorlib.dll /reference:/usr/lib/mono/4.0-api/System.Core.dll /reference:/usr/lib/mono/4.0-api/System.Data.dll /reference:/tmp/SharpSploit/SharpSploit/References/net35/System.DirectoryServices.dll /reference:/usr/lib/mono/4.0-api/System.DirectoryServices.Protocols.dll /reference:/usr/lib/mono/4.0-api/System.dll /reference:/usr/lib/mono/4.0-api/System.Drawing.dll /reference:/tmp/SharpSploit/SharpSploit/References/net35/System.IdentityModel.dll /reference:/tmp/SharpSploit/SharpSploit/References/net35/System.Management.Automation.dll /reference:/tmp/SharpSploit/SharpSploit/References/net35/System.Management.dll /reference:/usr/lib/mono/4.0-api/System.Numerics.dll /reference:/usr/lib/mono/4.0-api/System.Runtime.Serialization.dll /reference:/usr/lib/mono/4.0-api/System.ServiceProcess.dll /reference:/usr/lib/mono/4.0-api/System.Windows.Forms.dll /reference:/usr/lib/mono/4.0-api/System.Xml.dll /reference:/usr/lib/mono/4.0-api/System.Xml.Linq.dll /debug+ /debug:portable /filealign:512 /optimize- /out:obj/Debug/net40/SharpSploit.dll /resource:Resources/powerkatz_x86.dll,SharpSploit.Resources.powerkatz_x86.dll /resource:Resources/powerkatz_x64.dll,SharpSploit.Resources.powerkatz_x64.dll /target:library /warnaserror- /utf8output /deterministic+ /langversion:7.3 Credentials/Mimikatz.cs Credentials/Tokens.cs Enumeration/Clipboard.cs Enumeration/Domain.cs Enumeration/GPO.cs Enumeration/Host.cs Enumeration/Keylogger.cs Enumeration/Network.cs Enumeration/Registry.cs Evasion/Amsi.cs Evasion/ETW.cs Execution/Assembly.cs Execution/DynamicInvoke/Generic.cs Execution/DynamicInvoke/Native.cs Execution/DynamicInvoke/Win32.cs Execution/Injection/AllocationTechnique.cs Execution/Injection/ExecutionTechnique.cs Execution/Injection/Injector.cs Execution/Injection/PayloadType.cs Execution/Injection/SectionMapAllocationTechnique.cs Execution/Injection/VirtualAllocAllocationTechnique.cs Execution/ManualMap/Map.cs Execution/ManualMap/Overload.cs Execution/ManualMap/PE.cs Execution/Native.cs Execution/PlatformInvoke/Native.cs Execution/PlatformInvoke/Win32.cs Execution/Shell.cs Execution/ShellCode.cs Execution/Win32.cs Generic/Generic.cs LateralMovement/DCOM.cs LateralMovement/PowerShellRemoting.cs LateralMovement/SCM.cs LateralMovement/WMI.cs Misc/CountdownEvent.cs Misc/Utilities.cs Persistence/Autorun.cs Persistence/COM.cs Persistence/Startup.cs Persistence/WMI.cs Pivoting/ReversePortForwarding.cs PrivilegeEscalation/Exchange.cs "obj/Debug/net40/.NETFramework,Version=v4.0.AssemblyAttributes.cs" obj/Debug/net40/SharpSploit.AssemblyInfo.cs /warnaserror+:NU1605
Using shared compilation with compiler from directory: /usr/lib/mono/msbuild/Current/bin/Roslyn
/tmp/SharpSploit/SharpSploit/Evasion/ETW.cs(21,36): warning CS1570: XML comment has badly formed XML -- 'Whitespace is not allowed at this location.' [/tmp/SharpSploit/SharpSploit/SharpSploit.csproj]
/tmp/SharpSploit/SharpSploit/Execution/Shell.cs(52,68): error CS0234: The type or namespace name 'Eventing' does not exist in the namespace 'System.Diagnostics' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit/SharpSploit.csproj]
/tmp/SharpSploit/SharpSploit/Execution/DynamicInvoke/Generic.cs(191,18): warning CS0219: The variable 'Is32Bit' is assigned but its value is never used [/tmp/SharpSploit/SharpSploit/SharpSploit.csproj]
CSC : warning CS1685: The predefined type 'ExtensionAttribute' is defined in multiple assemblies in the global alias; using definition from 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' [/tmp/SharpSploit/SharpSploit/SharpSploit.csproj]
Done Building Project "/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (Build target(s)) -- FAILED.
Project "/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (2) is building "/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (2:3) on node 1 (Build target(s)).
CoreGenerateAssemblyInfo:
Skipping target "CoreGenerateAssemblyInfo" because all output files are up-to-date with respect to the input files.
CoreCompile:
/usr/lib/mono/msbuild/Current/bin/Roslyn/csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,1701,1702 /fullpaths /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;DEBUG;NETFRAMEWORK;NET35 /highentropyva- /reference:/tmp/SharpSploit/SharpSploit/References/net35/mscorlib.dll /reference:/usr/lib/mono/2.0-api/System.Core.dll /reference:/usr/lib/mono/2.0-api/System.Data.dll /reference:/tmp/SharpSploit/SharpSploit/References/net35/System.DirectoryServices.dll /reference:/usr/lib/mono/2.0-api/System.DirectoryServices.Protocols.dll /reference:/usr/lib/mono/2.0-api/System.dll /reference:/usr/lib/mono/2.0-api/System.Drawing.dll /reference:/tmp/SharpSploit/SharpSploit/References/net35/System.IdentityModel.dll /reference:/tmp/SharpSploit/SharpSploit/References/net35/System.Management.Automation.dll /reference:/tmp/SharpSploit/SharpSploit/References/net35/System.Management.dll /reference:/usr/lib/mono/2.0-api/System.Runtime.Serialization.dll /reference:/usr/lib/mono/2.0-api/System.ServiceProcess.dll /reference:/usr/lib/mono/2.0-api/System.Windows.Forms.dll /reference:/usr/lib/mono/2.0-api/System.Xml.dll /reference:/usr/lib/mono/2.0-api/System.Xml.Linq.dll /debug+ /debug:portable /filealign:512 /optimize- /out:obj/Debug/net35/SharpSploit.dll /resource:Resources/powerkatz_x86.dll,SharpSploit.Resources.powerkatz_x86.dll /resource:Resources/powerkatz_x64.dll,SharpSploit.Resources.powerkatz_x64.dll /target:library /warnaserror- /utf8output /deterministic+ /langversion:7.3 Credentials/Mimikatz.cs Credentials/Tokens.cs Enumeration/Clipboard.cs Enumeration/Domain.cs Enumeration/GPO.cs Enumeration/Host.cs Enumeration/Keylogger.cs Enumeration/Network.cs Enumeration/Registry.cs Evasion/Amsi.cs Evasion/ETW.cs Execution/Assembly.cs Execution/DynamicInvoke/Generic.cs Execution/DynamicInvoke/Native.cs Execution/DynamicInvoke/Win32.cs Execution/Injection/AllocationTechnique.cs Execution/Injection/ExecutionTechnique.cs Execution/Injection/Injector.cs Execution/Injection/PayloadType.cs Execution/Injection/SectionMapAllocationTechnique.cs Execution/Injection/VirtualAllocAllocationTechnique.cs Execution/ManualMap/Map.cs Execution/ManualMap/Overload.cs Execution/ManualMap/PE.cs Execution/Native.cs Execution/PlatformInvoke/Native.cs Execution/PlatformInvoke/Win32.cs Execution/Shell.cs Execution/ShellCode.cs Execution/Win32.cs Generic/Generic.cs LateralMovement/DCOM.cs LateralMovement/PowerShellRemoting.cs LateralMovement/SCM.cs LateralMovement/WMI.cs Misc/CountdownEvent.cs Misc/Utilities.cs Persistence/Autorun.cs Persistence/COM.cs Persistence/Startup.cs Persistence/WMI.cs Pivoting/ReversePortForwarding.cs PrivilegeEscalation/Exchange.cs obj/Debug/net35/SharpSploit.AssemblyInfo.cs /warnaserror+:NU1605
Using shared compilation with compiler from directory: /usr/lib/mono/msbuild/Current/bin/Roslyn
/tmp/SharpSploit/SharpSploit/Execution/Shell.cs(52,68): error CS0234: The type or namespace name 'Eventing' does not exist in the namespace 'System.Diagnostics' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit/SharpSploit.csproj]
/tmp/SharpSploit/SharpSploit/Execution/DynamicInvoke/Generic.cs(191,18): warning CS0219: The variable 'Is32Bit' is assigned but its value is never used [/tmp/SharpSploit/SharpSploit/SharpSploit.csproj]
Done Building Project "/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (Build target(s)) -- FAILED.
Done Building Project "/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (default targets) -- FAILED.
Project "/tmp/SharpSploit/SharpSploit.sln" (1) is building "/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj" (3) on node 1 (default targets).
ResolveAssemblyReferences:
Primary reference "SharpSploit".
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "SharpSploit". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
For SearchPath "/Common Files/microsoft shared/VSTT/16.0/UITestExtensionPackages".
Considered "/Common Files/microsoft shared/VSTT/16.0/UITestExtensionPackages/SharpSploit.winmd", but it didn't exist.
Considered "/Common Files/microsoft shared/VSTT/16.0/UITestExtensionPackages/SharpSploit.dll", but it didn't exist.
Considered "/Common Files/microsoft shared/VSTT/16.0/UITestExtensionPackages/SharpSploit.exe", but it didn't exist.
For SearchPath "{HintPathFromItem}".
Considered "/tmp/SharpSploit/SharpSploit/bin/Debug/net40/SharpSploit.dll", but it didn't exist.
For SearchPath "{TargetFrameworkDirectory}".
Considered "/usr/lib/mono/xbuild-frameworks/.NETFramework/v4.5/SharpSploit.winmd", but it didn't exist.
Considered "/usr/lib/mono/xbuild-frameworks/.NETFramework/v4.5/SharpSploit.dll", but it didn't exist.
Considered "/usr/lib/mono/xbuild-frameworks/.NETFramework/v4.5/SharpSploit.exe", but it didn't exist.
Considered "/usr/lib/mono/4.5-api/SharpSploit.winmd", but it didn't exist.
Considered "/usr/lib/mono/4.5-api/SharpSploit.dll", but it didn't exist.
Considered "/usr/lib/mono/4.5-api/SharpSploit.exe", but it didn't exist.
Considered "/usr/lib/mono/4.5-api/Facades/SharpSploit.winmd", but it didn't exist.
Considered "/usr/lib/mono/4.5-api/Facades/SharpSploit.dll", but it didn't exist.
Considered "/usr/lib/mono/4.5-api/Facades/SharpSploit.exe", but it didn't exist.
Considered "/usr/lib/mono/4.5-api/Facades/SharpSploit.winmd", but it didn't exist.
Considered "/usr/lib/mono/4.5-api/Facades/SharpSploit.dll", but it didn't exist.
Considered "/usr/lib/mono/4.5-api/Facades/SharpSploit.exe", but it didn't exist.
For SearchPath "{GAC}".
Considered "SharpSploit", which was not found in the GAC.
For SearchPath "{RawFileName}".
Considered treating "SharpSploit, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" as a file name, but it didn't exist.
For SearchPath "bin/Debug/".
Considered "bin/Debug/SharpSploit.winmd", but it didn't exist.
Considered "bin/Debug/SharpSploit.dll", but it didn't exist.
Considered "bin/Debug/SharpSploit.exe", but it didn't exist.
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
/usr/lib/mono/msbuild/Current/bin/Roslyn/csc.exe /noconfig /nowarn:1701,1702 /fullpaths /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /highentropyva+ /reference:/tmp/SharpSploit/packages/MSTest.TestFramework.1.3.1/lib/net45/Microsoft.VisualStudio.TestPlatform.TestFramework.dll /reference:/tmp/SharpSploit/packages/MSTest.TestFramework.1.3.1/lib/net45/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll /reference:/usr/lib/mono/4.5-api/mscorlib.dll /reference:/usr/lib/mono/4.5-api/System.Core.dll /reference:/usr/lib/mono/4.5-api/System.DirectoryServices.dll /reference:/usr/lib/mono/4.5-api/System.dll /reference:/usr/lib/mono/4.5-api/System.ServiceProcess.dll /reference:/usr/lib/mono/4.5-api/System.Windows.Forms.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Collections.Concurrent.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Collections.dll /reference:/usr/lib/mono/4.5-api/Facades/System.ComponentModel.Annotations.dll /reference:/usr/lib/mono/4.5-api/Facades/System.ComponentModel.dll /reference:/usr/lib/mono/4.5-api/Facades/System.ComponentModel.EventBasedAsync.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Diagnostics.Contracts.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Diagnostics.Debug.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Diagnostics.Tools.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Diagnostics.Tracing.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Dynamic.Runtime.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Globalization.dll /reference:/usr/lib/mono/4.5-api/Facades/System.IO.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Linq.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Linq.Expressions.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Linq.Parallel.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Linq.Queryable.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Net.NetworkInformation.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Net.Primitives.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Net.Requests.dll /reference:/usr/lib/mono/4.5-api/Facades/System.ObjectModel.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Reflection.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Reflection.Emit.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Reflection.Emit.ILGeneration.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Reflection.Emit.Lightweight.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Reflection.Extensions.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Reflection.Primitives.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Resources.ResourceManager.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Runtime.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Runtime.Extensions.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Runtime.InteropServices.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Runtime.InteropServices.WindowsRuntime.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Runtime.Numerics.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Runtime.Serialization.Json.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Runtime.Serialization.Primitives.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Runtime.Serialization.Xml.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Security.Principal.dll /reference:/usr/lib/mono/4.5-api/Facades/System.ServiceModel.Duplex.dll /reference:/usr/lib/mono/4.5-api/Facades/System.ServiceModel.Http.dll /reference:/usr/lib/mono/4.5-api/Facades/System.ServiceModel.NetTcp.dll /reference:/usr/lib/mono/4.5-api/Facades/System.ServiceModel.Primitives.dll /reference:/usr/lib/mono/4.5-api/Facades/System.ServiceModel.Security.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Text.Encoding.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Text.Encoding.Extensions.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Text.RegularExpressions.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Threading.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Threading.Tasks.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Threading.Tasks.Parallel.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Xml.ReaderWriter.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Xml.XDocument.dll /reference:/usr/lib/mono/4.5-api/Facades/System.Xml.XmlSerializer.dll /debug+ /debug:full /filealign:512 /optimize- /out:obj/Debug/SharpSploit.Framework.Tests.dll /subsystemversion:6.00 /target:library /utf8output /langversion:7.3 Credentials/TokensTests.cs Enumeration/ClipboardTests.cs Enumeration/DomainTests.cs Enumeration/HostTests.cs Enumeration/NetworkTests.cs Enumeration/RegistryTests.cs Enumeration/KeyloggerTests.cs Evasion/AmsiTests.cs Evasion/ETWTests.cs Execution/Injection/InjectionTests.cs Execution/ManualMap/MapTests.cs Execution/ShellCodeTests.cs Execution/ShellTests.cs LateralMovement/DCOMTests.cs LateralMovement/PowerShellRemotingTests.cs LateralMovement/SCMTests.cs LateralMovement/WMITests.cs Persistence/AutorunTests.cs Pivoting/ReversePortForwardingTests.cs Persistence/StartupTests.cs Persistence/WMITests.cs Properties/AssemblyInfo.cs "obj/Debug/.NETFramework,Version=v4.5.AssemblyAttributes.cs"
Using shared compilation with compiler from directory: /usr/lib/mono/msbuild/Current/bin/Roslyn
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Credentials/TokensTests.cs(11,19): error CS0234: The type or namespace name 'Credentials' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/ClipboardTests.cs(9,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/DomainTests.cs(10,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/HostTests.cs(10,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/HostTests.cs(11,19): error CS0234: The type or namespace name 'Generic' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/NetworkTests.cs(10,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/NetworkTests.cs(11,19): error CS0234: The type or namespace name 'Generic' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/RegistryTests.cs(7,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/KeyloggerTests.cs(13,19): error CS0234: The type or namespace name 'Generic' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/KeyloggerTests.cs(14,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Evasion/AmsiTests.cs(7,19): error CS0234: The type or namespace name 'Evasion' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Evasion/ETWTests.cs(7,19): error CS0234: The type or namespace name 'Evasion' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Execution/Injection/InjectionTests.cs(6,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Execution/Injection/InjectionTests.cs(7,19): error CS0234: The type or namespace name 'Execution' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Execution/Injection/InjectionTests.cs(8,19): error CS0234: The type or namespace name 'Execution' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Execution/ManualMap/MapTests.cs(8,19): error CS0234: The type or namespace name 'Execution' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Execution/ShellCodeTests.cs(4,19): error CS0234: The type or namespace name 'Execution' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Execution/ShellTests.cs(11,29): error CS0234: The type or namespace name 'Execution' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Execution/ShellTests.cs(10,19): error CS0234: The type or namespace name 'Execution' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/LateralMovement/DCOMTests.cs(7,19): error CS0234: The type or namespace name 'LateralMovement' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/LateralMovement/PowerShellRemotingTests.cs(7,19): error CS0234: The type or namespace name 'LateralMovement' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/LateralMovement/SCMTests.cs(10,19): error CS0234: The type or namespace name 'LateralMovement' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/LateralMovement/WMITests.cs(7,19): error CS0234: The type or namespace name 'LateralMovement' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Persistence/AutorunTests.cs(9,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Persistence/AutorunTests.cs(10,19): error CS0234: The type or namespace name 'Persistence' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Pivoting/ReversePortForwardingTests.cs(10,19): error CS0234: The type or namespace name 'Pivoting' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Persistence/StartupTests.cs(9,19): error CS0234: The type or namespace name 'Persistence' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Persistence/WMITests.cs(10,19): error CS0234: The type or namespace name 'Persistence' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
Done Building Project "/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj" (default targets) -- FAILED.
Done Building Project "/tmp/SharpSploit/SharpSploit.sln" (default targets) -- FAILED.
Build FAILED.
"/tmp/SharpSploit/SharpSploit.sln" (default target) (1) ->
"/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (default target) (2) ->
"/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (Build target) (2:2) ->
(CoreCompile target) ->
/tmp/SharpSploit/SharpSploit/Evasion/ETW.cs(21,36): warning CS1570: XML comment has badly formed XML -- 'Whitespace is not allowed at this location.' [/tmp/SharpSploit/SharpSploit/SharpSploit.csproj]
/tmp/SharpSploit/SharpSploit/Execution/DynamicInvoke/Generic.cs(191,18): warning CS0219: The variable 'Is32Bit' is assigned but its value is never used [/tmp/SharpSploit/SharpSploit/SharpSploit.csproj]
CSC : warning CS1685: The predefined type 'ExtensionAttribute' is defined in multiple assemblies in the global alias; using definition from 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' [/tmp/SharpSploit/SharpSploit/SharpSploit.csproj]
"/tmp/SharpSploit/SharpSploit.sln" (default target) (1) ->
"/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (default target) (2) ->
"/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (Build target) (2:3) ->
/tmp/SharpSploit/SharpSploit/Execution/DynamicInvoke/Generic.cs(191,18): warning CS0219: The variable 'Is32Bit' is assigned but its value is never used [/tmp/SharpSploit/SharpSploit/SharpSploit.csproj]
"/tmp/SharpSploit/SharpSploit.sln" (default target) (1) ->
"/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj" (default target) (3) ->
(ResolveAssemblyReferences target) ->
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(2218,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "SharpSploit". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
"/tmp/SharpSploit/SharpSploit.sln" (default target) (1) ->
"/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (default target) (2) ->
"/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (Build target) (2:2) ->
(CoreCompile target) ->
/tmp/SharpSploit/SharpSploit/Execution/Shell.cs(52,68): error CS0234: The type or namespace name 'Eventing' does not exist in the namespace 'System.Diagnostics' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit/SharpSploit.csproj]
"/tmp/SharpSploit/SharpSploit.sln" (default target) (1) ->
"/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (default target) (2) ->
"/tmp/SharpSploit/SharpSploit/SharpSploit.csproj" (Build target) (2:3) ->
/tmp/SharpSploit/SharpSploit/Execution/Shell.cs(52,68): error CS0234: The type or namespace name 'Eventing' does not exist in the namespace 'System.Diagnostics' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit/SharpSploit.csproj]
"/tmp/SharpSploit/SharpSploit.sln" (default target) (1) ->
"/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj" (default target) (3) ->
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Credentials/TokensTests.cs(11,19): error CS0234: The type or namespace name 'Credentials' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/ClipboardTests.cs(9,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/DomainTests.cs(10,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/HostTests.cs(10,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/HostTests.cs(11,19): error CS0234: The type or namespace name 'Generic' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/NetworkTests.cs(10,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/NetworkTests.cs(11,19): error CS0234: The type or namespace name 'Generic' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/RegistryTests.cs(7,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/KeyloggerTests.cs(13,19): error CS0234: The type or namespace name 'Generic' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Enumeration/KeyloggerTests.cs(14,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Evasion/AmsiTests.cs(7,19): error CS0234: The type or namespace name 'Evasion' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Evasion/ETWTests.cs(7,19): error CS0234: The type or namespace name 'Evasion' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Execution/Injection/InjectionTests.cs(6,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Execution/Injection/InjectionTests.cs(7,19): error CS0234: The type or namespace name 'Execution' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Execution/Injection/InjectionTests.cs(8,19): error CS0234: The type or namespace name 'Execution' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Execution/ManualMap/MapTests.cs(8,19): error CS0234: The type or namespace name 'Execution' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Execution/ShellCodeTests.cs(4,19): error CS0234: The type or namespace name 'Execution' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Execution/ShellTests.cs(11,29): error CS0234: The type or namespace name 'Execution' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Execution/ShellTests.cs(10,19): error CS0234: The type or namespace name 'Execution' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/LateralMovement/DCOMTests.cs(7,19): error CS0234: The type or namespace name 'LateralMovement' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/LateralMovement/PowerShellRemotingTests.cs(7,19): error CS0234: The type or namespace name 'LateralMovement' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/LateralMovement/SCMTests.cs(10,19): error CS0234: The type or namespace name 'LateralMovement' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/LateralMovement/WMITests.cs(7,19): error CS0234: The type or namespace name 'LateralMovement' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Persistence/AutorunTests.cs(9,19): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Persistence/AutorunTests.cs(10,19): error CS0234: The type or namespace name 'Persistence' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Pivoting/ReversePortForwardingTests.cs(10,19): error CS0234: The type or namespace name 'Pivoting' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Persistence/StartupTests.cs(9,19): error CS0234: The type or namespace name 'Persistence' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/Persistence/WMITests.cs(10,19): error CS0234: The type or namespace name 'Persistence' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?) [/tmp/SharpSploit/SharpSploit.Tests/SharpSploit.Tests/SharpSploit.Tests.csproj]
5 Warning(s)
30 Error(s)
Time Elapsed 00:00:03.23
Question
How to build SharpSploit DLL from Linux?
The text was updated successfully, but these errors were encountered:
Some of the components of the mono-msbuild package version 16.10.10 appear to be out of synchronism (see https://bugs.archlinux.org/task/71007). The easiest way to fix this at present (Dec 2021) is to install mono-msbuild from the (Community) repo, then also install mono-git from the AUR (https://aur.archlinux.org/packages/mono-git/). Although the mono-git package says it is mono-git-6.12.0.158 , mono --version shows 6.13.0.
Context
One may not want to install a Windows VM + install Visual Studio just to build a tool. So I tried to build SharpSploit DLL with Mono, MSBuild, .NET SDk, and NuGet on Linux.
Prerequisites
On ArchLinux:
Version
Build steps
Question
How to build SharpSploit DLL from Linux?
The text was updated successfully, but these errors were encountered: