Async library to scan a LAN and detect common Bitcoin miner.
It probes a subnet and tries to classify devices as:
BitaxeAntminerWhatsminerAvalonCGMiner-compatible
The current implementation checks:
- HTTP endpoints on port
80 - CGMiner-style API on port
4028
use futures_util::StreamExt;
use miner_scanner::{ScanOptions, scan_network};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let cidr = "192.168.1.0/24".parse()?;
let mut miners = scan_network(cidr, ScanOptions::default());
while let Some(miner) = miners.next().await {
println!(
"{} | {:?} | confidence={}",
miner.addr, miner.family, miner.confidence
);
}
Ok(())
}This project is distributed under the MIT software license – see the LICENSE file for details