Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kixgkqir opened this issue Feb 28, 2018 · 3 comments
Open

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

kixgkqir opened this issue Feb 28, 2018 · 3 comments

Comments

@kixgkqir
Copy link

Hello,

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

Best!

@juazki
Copy link

juazki commented Feb 28, 2018

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
Copy link
Author

kixgkqir commented Mar 1, 2018

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
Copy link

juazki commented Mar 3, 2018

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants