| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
NetOrigin is a small Rust project for retrieving network ownership data and IP ranges.
It can be used as:
It supports:
cargo checkcargo testcargo run -- --google
cargo run -- --company telegram
cargo run -- --company telegram --asnums
cargo run -- --asn AS15169
cargo run -- --ip 8.8.8.8You can also pass the ASN without the AS prefix:
cargo run -- --asn 15169For IPinfo lookups, export a token first:
export IPINFO_TOKEN=your_token_here
cargo run -- --ip 8.8.8.8
IPinfo lookup for '8.8.8.8':
ASN: AS15169
Name: Google LLC
Domain: google.comNetOrigin also exposes IP range functionality through a library module.
use netorigin::ipranges;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let as_numbers = ipranges::get_as_numbers_of("telegram")?;
println!("Found {} AS numbers", as_numbers.len());
let ip_ranges = ipranges::get_ip_ranges_for_asn("AS15169")?;
println!("Found {} IP ranges", ip_ranges.len());
Ok(())
}Available library entry points include:
This project is licensed under the MIT License. See LICENSE.
| Back | FazBrowse Home | New Git URL |