Skip to content

spiders the bitcoin network and returns ip:port ipv4/ipv6

Notifications You must be signed in to change notification settings

visualbasic6/bithop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

bithop beta v2

this spiders the bitcoin network for the purpose of retrieving every machine running bitcoind across ipv4/ipv6. these are appended to nodes.txt in the same directory as the script. let it run for awhile until you've databased the entire network, which should be > 18k nodes. it automatically removes duplicates from nodes.txt once every 1,000 ip:port discoveries. you may need to let the program max out/stall and run it a handful of times to db the whole network. unstable beta.

peers are discovered by exponentionally merging into them as spoofed nodes, following protocol specifications, and sending the getaddr protocol message which returns a node's peers in ip:port format. this technique is how bitnodes.io populates itself with node data - and to the best of my knowledge this is only other p2p mainnet node gatherer.

how to use

snap install go --classic
git clone https://github.com/visualbasic6/bithop.git
cd bithop
go run bithop.go

asciinema

heh

conclusion

bithop is another excercise in familiarizing myself with lower level code and golang. it could be reworked and expanded to be a sophisticated bitcoin block explorer - but i haven't the time nor desire.

follow me at https://x.com/123456 for updates - assuming there ever are any.

About

spiders the bitcoin network and returns ip:port ipv4/ipv6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages