Giter VIP home page Giter VIP logo

yaron4u / xmrig-service-injection-in-powershell-crypto-hijacking Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 2.0 5 KB

XMRig Service Installer: An automation tool to swiftly set up the xmrig mining software as a background service on Windows. Designed for educational and research purposes, it streamlines the miner's installation and offers an easy way to run xmrig on-demand.

License: MIT License

PowerShell 100.00%
crypto hijacking injection maldev nssm powershell xmrig

xmrig-service-injection-in-powershell-crypto-hijacking's Introduction

XMRig Service Injection in PowerShell - Crypto Hijacking

XMRig Service Installer

This script sets up the xmrig mining software to run as a service on a Windows machine. The primary function is to ease the installation process of the miner and configure it to run in the background as a service, which can be beneficial for system administrators or researchers working with the xmrig software.

Disclaimer

This script is developed for educational and research purposes only. It is intended to demonstrate how to run an application (in this case, the xmrig mining software) as a service on a Windows machine.

By using this code, you agree to the following:

  1. You will not use this code, in whole or in part, for malicious intent, including but not limited to unauthorized mining on third-party systems.
  2. You will seek explicit permission from any and all system owners before running or deploying this code.
  3. You understand the implications of running mining software on hardware, including the potential for increased wear and power consumption.
  4. The creator of this script cannot and will not be held responsible for any damages, repercussions, or any negative outcomes that result from using this script.

If you do not agree to these terms, please do not use or distribute this code.

Prerequisites

  • Powershell with Administrator rights
  • Internet connection (to download required files)

Requirements

How the Script Works

  1. Administrator Check: The script begins by ensuring that it is run with Administrator rights.
  2. Cleanup: If there are previous installations of xmrig or related files in the specified paths, they are removed.
  3. Download: Files essential for the miner to function, like xmrig.exe, config.json, and nssm.exe, are downloaded from the specified FTP server.
  4. Setup: The downloaded files are moved to their appropriate directories.
  5. Service Creation: Using nssm, the script sets up xmrig as a service that runs in the background and starts automatically on system startup.
  6. Logging: The script configures the service to write its logs to a specified file.
  7. Cleanup: Finally, the script file itself is deleted as a cleanup step.

Usage

  1. Modify the FTP server URLs in the script to point to your actual server containing the xmrig, config.json, and nssm.exe files.
  2. Run the script with Administrator rights.

Uploaded Photos

FTP server:

Pasted image 20231015212444

After running the script:

Pasted image 20231015212333

xmrig-service-injection-in-powershell-crypto-hijacking's People

Contributors

yaron4u avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.