x25 / coinhive-stratum-mining-proxy

Browser mining on any pool using CoinHive.js library
MIT License
264 stars 110 forks source link

Some antivirus are blocking "var miner = new CoinHive.Anonymous" #45

Open kixgkqir opened 6 years ago

kixgkqir commented 6 years ago

Hello,

Please, is it possible to change like this? var miner = new Something.Anonymous(....

Best!

juazki commented 6 years ago

Change all the occurrences of "CoinHive" from the file "miner.min.js" to something less suspicious. I would also recommend renaming the file "miner.min.js".

kixgkqir commented 6 years ago

Hello @juazki , thank you for replying.

I had tried to do this, but it didn't work. I didn't find any declared class "CoinHive" in "miner.min.js". I think that this class is declared in a compiled javascript "cryptonight.wasm".

Do you have any idea?

Best!

juazki commented 6 years ago

Using a text processor of your choice (or via command line in Linux) you have to change all the occurrences of "CoinHive" (case sensitive) in "miner.min.js", methods such as "window.CoinHive.x" (x being for example the "Anonymous" method) can also be renamed. There is no need to modify the WebAssembly document (it is not really possible to do so easily because it is already compiled).