Skip to content

Instantly share code, notes, and snippets.

@hungryduck
hungryduck / onion_bitcoin
Created October 7, 2016 18:00
List active .onion bitcoin nodes (Bash)
#!/bin/bash
# Command to get a list of active bitcoin .onion addresses from bitnodes.21.co
curl -s https://bitnodes.21.co/api/v1/snapshots/latest/ | egrep -o '[a-z0-9]{16}\.onion:?[0-9]*' | sort -ru