Crates.io | fire-scope |
lib.rs | fire-scope |
version | |
source | src |
created_at | 2025-04-03 18:15:16.297374+00 |
updated_at | 2025-04-15 07:31:25.671468+00 |
description | This tool is a CLI application and library that collects and aggregates corresponding IP addresses by specifying country codes and AS numbers, and outputs them to a file in TXT or nftables format.It supports RIR file download and whois AS number query, and also has a function to extract overlapping parts of country codes and AS numbers in CIDR units. |
homepage | |
repository | https://github.com/Neuron-Grid/fire-scope |
max_upload_size | |
id | 1618801 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
This CLI application is used to retrieve the latest address allocation files provided by each Regional Internet Registry (RIR) and output the IPv4/v6 address blocks corresponding to the specified country code to a text file. It can also retrieve the specified AS number and also output it to a text file.
When specifying the -c
option, data is retrieved from the following
When specifying the -a
option, data is retrieved from the following
whois.radb.net
$ cargo install fire-scope
-c
or -a
must be specified.$ fire-scope -c jp us
$ fire-scope -a 0000 1234
$ fire-scope -c jp us -a 0000 1234 -o
-c
: Specify one or more country codes.-a
: Specify one or more AS numbers.-h
: Display help.-v
: Display version.-m
: Select the file output mode, either append
or overwrite
. \nIf not specified, overwrite
is used by default.
append
: Append modeoverwrite
: Overwrite mode-o
: Output the overlapping IP addresses among the IPv4/v6 addresses of the specified country code(s) and AS number(s).
-c
and -a
must be specified.