SilentCryptoMiner icon indicating copy to clipboard operation
SilentCryptoMiner copied to clipboard

In what part of the source is possible to add Download & Execute command?

Open sn00rlax opened this issue 11 months ago • 5 comments

Hi mate,

I'm trying to add a simple download & execute code into the miner's source somewhere, so when its built gets executed, after exclusions are added , it would download a file silently from a direct url to user' AppData folder then execute it.

I want to mimic a binder here so that legitimate file is shown to users. Because normal binder is not working for me.

So far i have tried adding this code into Codedom.cs but the problem is that the file gets downloaded & executed during a miner compiling process, then it corrupts compiling and gives error.

After that I have tried adding a C++ code for this into miner.cpp file, but then again it cannot compile it and nothing worked.

I'm not asking you to do everything for me, maybe just tell me in which file exactly should i add this? Then i will try everything possible to make it work. Because currently I'm feeling lost because there are many different parts of the source.

Maybe into Builder.cs ?

Thanks & God bless :)

sn00rlax avatar Mar 18 '24 18:03 sn00rlax

you need to create a new script for that i have various downloader and executers who alredy make that writen in rust bro undetected of course first add exceptions and then executes

gabjohn3 avatar Mar 18 '24 19:03 gabjohn3

I'm currently working on this issue the http request code is in the miners

I'm trying to write similar logic in miners

However, this is difficult for me

anbu-squad avatar Mar 18 '24 20:03 anbu-squad

It would be inside the miner.cpp file, you should probably add a powershell command that downloads and runs your file.

UnamSanctam avatar Mar 18 '24 22:03 UnamSanctam

it turns out then you need to run the miner on behalf of the user? if you add code miner.cpp

anbu-squad avatar Mar 18 '24 23:03 anbu-squad

Then it will be executed when the miner program is started, just like the options "Add Defender Exclusions", "Disable Windows Update", "Disable Sleep" and so on before the miner(s) are injected. Which is what @sn00rlax is asking for. For what he wants to do it would also be good to only run the code before the miner is installed (there's already a check in the miner for this) so that the program only gets downloaded and executed when the miner is first started.

UnamSanctam avatar Mar 18 '24 23:03 UnamSanctam