Tinkering with CryptoMining

If you are in SecOps, you probably have seen the threat of CryptoMiners running on compromised hosts. This article may not be for you, but if you would like to dive deeper inside of the working of crypto-mining you will find a few resources here to get you started.

For the example I use the Moonlander 2 ASIC USB stick as you can pick one up form Amazon for as little as $50 as of March 2020, and it has all the features needed to work with a Raspberry PI. It allows to mine LTC (Litecoin.org).

sudo apt-get install -y build-essential git autoconf automake libtool pkg-config libcurl4-openssl-dev libudev-dev libusb-1.0-0-dev libncurses5-dev raspberrypi-kernel-headers
mkdir miners
cd miners
sudo unzip Linux_3.x.x_4.x.x_VCP_Driver_Source.zip
cd Linux_3.x.x_4.x.x_VCP_Driver_Source
sudo cp -a cp210x.ko /lib/modules/`uname -r`/kernel/drivers/usb/serial

Another example is the GekkoScience Bitcoin SHA256 Stick Miner, which lets you test how to mine BTC (bitcoin.org). 

I use the Raspberry PI, as it is a very low cost environment you can build with your children at a very young age. You can do a lot more with it then just teaching about Bitcoin, Blockchain, and mining.

The resources below have all the documentation necessary to get started.

The Moonlander device tends to lock up after a successful run with bfgminerand the miner isn’t detected on successive runs with the status message: 

NO DEVICES FOUND: Press 'M' and '+' to add

The solution is to remove the driver (cp120x) and unplug / plug back in the USB stick:

  1. sudo rmmod cp120x
  2. unplug USB stick
  3. wait 10 seconds
  4. plug USB stick back in
  5. check if the driver is re-registered by running lsmod | grep usb the output should look like
    usbserial XXXXX X cp210x


Raspberry Pi 4 on Amazon


Moonlander 2 USB Stick ASIC on Amazon

Moonlander 2 USB Stick getting started instructions

Moonlander  ASIC setup on linux

VCP kernel drivers

GekkoScience Bitcoin Miner Setup on Linux / Raspberry Pi

GekkoScience Termius R606 Miner Setup

Raspberry PI dependencies for building kernel modules

ASIC Miner Valuation estimations

US made ASIC miner

Best GPUs for mining ETH


Ten Rules for Success

Here are ten rules for success from Investors Business Daily by way of my friend Mike Linett, President of Zerowait:

  1. How You Think is Everything. Always be positive. Think Success, not Failure. Beware of a negative environment.
  2. Decide upon Your True Dreams and Goals:   Write down your specific goals and develop a plan to reach them.
  3. Take Action.   Goals are nothing without action .
  4. Never Stop Learning:   Go back to school or read books. Get training & acquire skills.
  5. Be Persistent and Work Hard:   Success is a marathon, not a sprint. Never give up.
  6. Learn to Analyze Details: Get all the facts, all the input. Learn from your mistakes.
  7. Focus Your Time And Money:   Don’t let other people or things distract you.
  8. Don’t Be Afraid To Innovate:   Be different. Following the herd is a sure way to mediocrity.
  9. Deal And Communicate With People Effectively:   No person is an island. Learn to understand and motivate others.
  10. Be Honest and Dependable: Take Responsibility, otherwise 1-9 don’t matter.