百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

ipv666

> 编程语言
开源

Golang IPv6 地址枚举

356 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Golang IPv6 地址枚举

ipv666

NOTE - This software was previously licensed under GPLv3 and has since been updated to BSD.

ipv666 is a set of tools that enables the discovery of IPv6 addresses both in the global IPv6 address space and in more narrow IPv6 network ranges. These tools are designed to work out of the box with minimal knowledge of their workings.

As of v0.4 we have provided functionality into the tool set wherein you can choose to share any addresses you discover with us. All results uploaded by all parties can be queried on our website. The web site is bare bones right now but we have lots of plans for improvements!

The tools included in this codebase are as follows:

  • scan discover - Locates live hosts over IPv6 using statistical modeling and ICMP ping scans
  • scan alias - Tests a single IPv6 network range to see if the network range is aliased
  • generate addresses - Generate IPv6 addresses based on the content of a probabilistic clustering model
  • generate model - Generate a probabilistic clustering model based off an input set of IPv6 addresses
  • generate blacklist - Adds the contents of a file containing IPv6 network ranges to the aliased network blacklist
  • clean - Cleans the contents of a file containing IPv6 addresses based on an aliased network blacklist
  • convert - Converts the contents of a file containing IPv6 addresses to another IP address representation

Unless you're doing more complicated IPv6 research it is likely that the scan discover tool is what you're looking for.

To get started check out the Installation section first and then head to whichever section details the tool you're looking to use.

This software is brought to you free of charge by @_lavalamp and @marcnewlin, and we hope that you find it useful. If you do find it useful and you'd like to support our continued contributions to the codebase, please consider donating via any of the following:

  • PayPal - paypal.me/thelavalamp
  • BTC - 371FzLrE7dzd3cZNjDytSyV5hDhDpLj1Mr
  • ETH - 0x2A35C6987a7E2515EEdB8fB43a7FA86a9Ea917f4
  • LTC - MGkiBazpfs17ek7DuVJKwzwcFjVcmwrXur

Installation

As of v0.2 ipv666 should be much easier to install!

First you'll need to have the Golang environment installed. As ipv666 makes use of Go modules we recommend using Golang v1.11 and above to ensure a working installation.

Once you have Golang v1.11 or above installed, do the following:

go get github.com/lavalamp-/ipv666/ipv666

Once this command completes you should have the ipv666 binary on your path. If you don't, double check to make sure that $GOPATH/bin is in your PATH.

NOTE - This software is only intended to be run on Linux-based operating systems. Support for other operating systems is not presently planned.

NOTE - As of v0.4 we have built in the ability for users of ipv666 to upload the addresses they discover to our central service. You will be prompted on first use as to whether or not you would like to provide data to us. The addresses that are uploaded in this manner are made queryable on our IPv666 web site. If you choose not to upload your discovered addresses, no worries! We will ask for your approval again once every seven days, just in case you change your mind.

scan discover

The scan discover tool is the main workhorse of this toolset. It uses some fairly complicated statistical modeling, analysis, and blacklisting to predict legitimate IPv6 addresses and scan for their presence. More details on how exactly this tool works can be found in this blog post.

Please note that any networks that you scan with this tool will receive a considerable amount of traffic for a significant variety of IPv6 addresses. In some cases the networking infrastructure that is carrying your traffic will be unhappy and may either fall over and/or block you. We recommend exercising caution when using this tool (especially for targeted network scans) and choosing a bandwidth value with care (default is currently 20 Mbps).

Usage

…

Examples

Scan the global address space for live hosts over IPv6 with a maximum speed of 20 Mbps and write the results to a file entitled discovered_addrs.txt:

ipv666 scan discover

Scan the network 2600:6000::/32 for live hosts over IPv6 with a maximum speed of 10 Mbps and write the results to a file entitled addresses.txt:

ipv666 scan discover -b 10M -o addresses.txt -n 2600:6000::/32

scan alias

The scan alias tool will test a target network to see if it exhibits traits of being an aliased network (ie: all addresses in the range respond to ICMP pings). If the target network is aliased it will perform a binary search to find the exact network length for how large the aliased network is.

Usage

…

Examples

Test the network range 2600:9000:2173:6d50:5dca:2d48::/96 to see if it's aliased with a maximum speed of 20 Mbps:

ipv666 scan alias -n 2600:9000:2173:6d50:5dca:2d48::/96

Test the network range 2600:9000:2173:6d50:5dca:2d48::/96 to see ifit's aliased with maximum speed of 10 Mbps and show debug logging:

ipv666 scan alias -n 2600:9000:2173:6d50:5dca:2d48::/96 -b 10M -l debug

generate addresses

The generate addresses tool uses a predictive clustering model to generate a set number of IPv6 addresses. The addresses are subsequently written to a specified file.

Usage

…

Examples

Generate 1,000,000 addresses in the global address space based on the default clustering model packaged with ipv666 and write the results to a file at /tmp/output:

ipv666 generate addresses -o /tmp/output

Generate 500,000 addresses in the network 2600::/4 based on the model contained in the file at /tmp/model and write the results to a file at /tmp/output:

ipv666 generate addresses -c 500000 -n 2600::/4 -m /tmp/model -o /tmp/output

generate model

The generate model tool creates a new predictive clustering model based on a list of known IPv6 addresses.

Usage

This utility will generate a predictive clustering model based on the contents of
an IPv6 address file.

Usage:
  ipv666 generate model [flags]

Flags:
  -h, --help           help for model
  -i, --input string   An input file containing IPv6 addresses to use for the model.
  -o, --out string     The file path to write the resulting model to.

Global Flags:
  -f, --force        Whether or not to force accept all prompts (useful for daemonized scanning).
  -l, --log string   The log level to emit logs at (one of debug, info, success, warn, error).

Examples

Generate a new clustering model based on the IP addresses in the file /tmp/addresses and write the resulting model to the file /tmp/model:

ipv666 generate model -i /tmp/addresses -o /tmp/model

generate blacklist

The generate blacklist tool processes the content of a file containing IPv6 CIDR ranges (new-line delimited) and adds all of the network ranges to either (1) a new blacklist or (2) your existing blacklist. These blacklists are automatically located and loaded from specific file paths during the operation of discover, alias, and clean.

You will be prompted after invocation asking whether you'd like to create a new blacklist or add these new networks to your existing blacklist.

Usage

…

Examples

Add the IPv6 CIDR ranges found in the file /tmp/addrranges to a blacklist:

ipv666 generate blacklist -i /tmp/addrranges

Add the IPv6 CIDR ranges found in the file /tmp/addrranges to a blacklist and force accept all prompts:

ipv666 generate blacklist -i /tmp/addrranges -f

clean

The clean tool processes the content of a file containing IPv6 addresses (new-line delimited), removes all the addresses that are found within blacklisted networks, and writes the results to an output file. This tool is an easy way to remove addresses in aliased network ranges from a set of IP addresses.

Usage

…

Examples

Process the IPv6 addresses in the file /tmp/addresses, remove all addresses found in the most up-to-date blacklist found in the default file path, and write the results to /tmp/cleanedaddrs):

ipv666 clean -i /tmp/addresses -o /tmp/cleanedaddrs

Process the IPv6 addresses in the file /tmp/addresses, remove all addresses found in the blacklist at /tmp/blacklist, and write the results to /tmp/cleanedaddrs):

ipv666 clean -i /tmp/addresses -o /tmp/cleanedaddrs -b /tmp/blacklist

convert

The convert tool is useful for converting a file containing IPv6 addresses to different file formats. It currently supports the three different output types of txt (standard ASCII hex IPv6 addresses), bin (the raw 16 bytes of all input addresses are written sequentially to a file) and hex (the full 32 character ASCII hex representation is written to a file delimited by new lines).

Usage

…

Examples

Convert the contents of the file at /tmp/addresses (in standard text format) to binary format and write the results to /tmp/out:

ipv666 convert -i /tmp/addresses -o /tmp/out -t bin

Convert the contents of the file at /tmp/addresses (in binary format) to fat hex format and write the results to /tmp/out:

ipv666 convert -i /tmp/addresses -o /tmp/out -t hex

References

We've given a few talks on ipv666 and a few folks have had kind words to say about it. Here's a running list:

  • The Daily Swig - IPv6 Scanning Tool Opens Up New Cybersphere for Researchers
  • Decipher - Mapping the Spectral Landscape of IPv6 Networks
  • IPv666 - Address of the Beast Blog Post
  • IPv666 - Address of the Beast @ ShmooCon 2019
  • IPv666 - Address of the Beast @ Hack in the Box Dubai 2018
  • IPv666 - Address of the Beast @ Troopers 2019
  • IPv666 Web Portal

License

This software is licensed via the GNU General Public License v3.0.

We invite people to contribute to the codebase, fork it, do whatever you'd like! The only requirement that we have with this license is that derivative work is similarly open sourced.

Thanks

Many thanks to the following people for their contributions, inspiration, and help.

  • Vasyl Pihur
  • Zakir Durumeric
  • David Adrian
  • Eric Wustrow
  • J. Alex Halderman
  • Paul Pearce
  • Ariana Mirian
  • HD Moore
  • Oliver Gasser
  • Quirin Scheitle
  • Tobias Fiebig
  • Matthew Bryant

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Go

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言