Skip to content

Krainium/Ip.info-Enumeration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

EnuIP — IP Enumeration & ASN Intelligence Tool

Node.js CLI tool for full IP lookups, ASN intelligence, country-level ASN browsing, IPv4 CIDR ranges, reverse DNS, IP mapping, and coordinate-based reverse geocoding. Pulls geo, network, privacy, and abuse data from live APIs. Single standalone file, zero npm dependencies.


What It Does

One tool for IP intelligence and network reconnaissance. Instead of jumping between whois lookups, online IP checkers, ASN databases, and map services, EnuIP consolidates everything into one interactive menu. Built for network engineers tracing infrastructure, security researchers mapping attack surfaces, pentesters scoping target ranges, and OSINT analysts geolocating IPs.

Every lookup pulls live data directly from IPinfo.io — no stale databases, no rate-limited free tiers, no authentication required. The coordinates lookup extends this further by reverse-geocoding any lat/lon pair through OpenStreetMap and BigDataCloud to resolve a full street address.


Features

  • 13 tools — 6 core IP/ASN lookup modes, 6 utility tools, My IP check
  • Full IP intelligence — geo, network, privacy flags, abuse contact, tags
  • ASN deep-dive — summary info and all announced IPv4 CIDR ranges for any ASN
  • Country ASN browser — 240+ countries, all ASNs per country with ranges
  • Bulk lookups — batch process IP lists with structured output per IP
  • Reverse DNS — bulk rDNS lookups via IPinfo.io tool API
  • CIDR tools — range lookup with optional IP expansion, CIDR-to-IP range converter
  • IP summarization — submit 10+ IPs, get ASN/company/country/city/privacy breakdown
  • IP geo mapping — plot IPs with coordinates and country/city breakdown
  • Coordinates lookup — reverse geocode any lat/lon to a full street address
  • Flexible coordinate input — decimal, DMS, direction letters (N/S/E/W)
  • Pingable IP finder — find responsive IPs near any given IP
  • My IP detection — check your public IP with full details
  • 240+ country code table — maps codes to full names and continent
  • CIDR-to-IP expansion — streaming generator, handles 20M+ IPs without memory issues
  • Auto-save — every lookup saves results to organized output folders
  • Zero dependencies — single .js file using only Node.js built-ins
  • Windows, macOS, Linux

Menu

  ---- Main Menu ----
    0) My IP (check your own IP)
    1) IP Lookup
    2) Bulk IP Lookup
    3) ASN Lookup (IP ranges + summary)
    4) Country ASNs (browse & fetch by country)
    5) Search (ASN by name or number)
    6) CIDR Range Lookup
    ── Tools ──
    7) Reverse DNS (rDNS) Lookup
    8) CIDR to IP Range Converter
    9) Summarize IPs (10+ IPs)
   10) IP Map (geo plot)
   11) Pingable IP Finder
   12) Coordinates Lookup (reverse geo)
   13) Quit
Option Description
0 Detects and displays your public IP with full details
1 Full lookup for any IP — geo, ASN, privacy, abuse, tags
2 Batch process a list of IPs (comma-separated or file)
3 Enter an ASN — get summary and all IPv4 CIDR ranges
4 Browse countries, fetch all ASNs and their ranges
5 Search for ASNs by name or number
6 Look up a CIDR block — range info and optional IP expansion
7 Bulk rDNS lookups — single IP, comma list, or file
8 Convert CIDR to start/end IP, size, subnet mask
9 Submit 10+ IPs — breakdown by ASN, country, city, privacy
10 Geo-plot IPs with lat/lon coordinates and country/city stats
11 Find pingable/responsive IPs near any given IP
12 Reverse geocode lat/lon to full street address

Requirements

  • Node.js v16+
  • No npm install needed — runs directly

Usage

node enu-ip.js

IP Lookup (Option 1)

Enter any IP and get three sections of data scraped from IPinfo.io:

Geo — city, region, country, continent, postal code, coordinates, timezone

Network — ASN, ASN name, IP range, company, type, domain, hosted domains, abuse contact

Privacy — VPN, proxy, relay, Tor, hosting, mobile, anycast, satellite, anonymous flags

  ── Geo ──
    City           San Francisco
    Region         California
    Country        United States (US)
    Continent      North America (NA)
    Postal         94107
    Coordinates    37.7749, -122.4194
    Timezone       America/Los_Angeles

  ── Network ──
    ASN            AS13335 - Cloudflare, Inc.
    Range          172.64.0.0 - 172.71.255.255
    Company        Cloudflare, Inc.
    Type           hosting
    Domain         cloudflare.com
    Hosted Domains 13,576,905
    Abuse          abuse@cloudflare.com

  ── Privacy ──
    VPN: False | Proxy: False | Tor: False | Hosting: True
    Anycast: True | Relay: False | Mobile: False

Coordinates Lookup (Option 12)

Enter any coordinates and get the full street address from two independent sources.

Supported input formats:

Format Example
Decimal 37.7749, -122.4194
Decimal + direction 6.5965 N, 3.342 E
Negative decimal -33.8688, 151.2093
Direction prefix N 6.5965, E 3.342
DMS with symbols 40°44'54.3"N 73°59'08.6"W
DMS with spaces 48 51 24.0 N, 2 21 7.0 E

Data sources: OpenStreetMap Nominatim (street address, road, suburb, city, state, country, postal code) and BigDataCloud (city, locality, state, country, continent, Google Plus Code).

  ── Address ──
    Full Address    Tonade Street, Ikeja, Lagos, 100282, Nigeria
    Street          Tonade Street
    Suburb/Area     Ikeja
    City            Ikeja
    State/Province  Lagos
    Country         Nigeria (NG)
    Postal Code     100282
    Continent       Africa
    Plus Code       6FU8VJ8R+59

  ── Map Links ──
    Google Maps     https://www.google.com/maps/search/6.5965,3.342
    Bing Maps       https://www.bing.com/maps?cp=6.5965~3.342&lvl=17
    OpenStreetMap   https://www.openstreetmap.org/?mlat=6.5965&mlon=3.342#map=17/6.5965/3.342

ASN Lookup (Option 3)

Enter an ASN and get the summary plus all announced IPv4 CIDR ranges with optional IP expansion.

  ── ASN Summary ──
    Name           Cloudflare, Inc.
    Country        United States (US)
    IPv4 Ranges    22
    Total IPs      1,573,888

  ── CIDR Ranges ──
    103.21.244.0/22      1,024 IPs
    103.22.200.0/22      1,024 IPs
    104.16.0.0/13      524,288 IPs
    ...

Country ASNs (Option 4)

Browse all 240+ countries. Select one to see all its ASNs with total IPs and ranges, then fetch CIDRs for individual ASNs or all at once.


Output Structure

enu-ip-results/
  asn/            # CIDR ranges and optional IP expansions per ASN
  country/        # Per-country folders with individual ASN files + combined.txt
  search/         # ASN search results
  ranges/         # CIDR range lookups
  rdns/           # Reverse DNS results
  cidr-convert/   # CIDR conversion output
  summarize/      # IP summarization reports
  map/            # IP map geo data
  pingable/       # Pingable IP results
  coordinates/    # Reverse geocode results

Every lookup auto-saves. Country scans create individual ASN files plus a combined.txt merging all CIDRs — useful as a single blocklist or allowlist for an entire country.


CIDR-to-IP Expansion

After any ASN or range lookup, expand CIDRs to individual IPs. The tool warns before large files:

  [!] This will create a 1,573,888-line file (~24.0 MB).
  Continue? [y/N]:

Uses a streaming generator with backpressure — writes in batches, handles 20M+ IPs without memory issues.


Data Sources

Data Source Method
IP geo/network/privacy IPinfo.io Scraping
ASN summary + ranges IPinfo.io Scraping
Country ASN lists IPinfo.io Scraping
Reverse DNS IPinfo.io Tool API (POST)
CIDR conversion IPinfo.io Tool API (GET)
IP summarization IPinfo.io Tool API (POST)
IP map IPinfo.io Direct geo lookups
Pingable IPs IPinfo.io Tool API (GET)
Coordinates → address OpenStreetMap Nominatim Reverse geocoding API
Coordinates → locality BigDataCloud Reverse geocoding API

Performance

Operation Time Notes
Single IP lookup 1–3 seconds HTML parsing
Bulk lookup (10 IPs) 15–30 seconds 300ms delay between lookups
ASN lookup 2–5 seconds Summary + CIDR extraction
Country scan (all ASNs) 10–60 seconds Depends on ASN count
Reverse DNS (100 IPs) 2–5 seconds Single API call
Summarize IPs 3–8 seconds POST + report fetch
IP Map (10 IPs) 5–15 seconds Individual geo lookups
Coordinates lookup 2–4 seconds Two API calls
CIDR-to-IP expansion ~1 min per 10M IPs Streaming writes

Troubleshooting

Issue Cause Fix
ENOTFOUND / ETIMEDOUT No internet or DNS issue Check connection
Partial IP data IPinfo.io HTML structure varies Some fields vary by IP
Nominatim returns nothing Rate limited (1 req/sec) Wait and retry
BigDataCloud returns nothing Unusual coordinates (ocean, etc.) Normal for remote locations
Empty ASN ranges ASN has no announced IPv4 routes Normal for IPv6-only or inactive ASNs
Coordinates parse error Unsupported format Use one of the 6 supported formats
Slow bulk lookups 300ms delay is intentional Prevents IPinfo.io rate limiting

Notes

  • All IP data comes from IPinfo.io via HTML scraping. No API key needed. Built-in delays keep requests within safe bounds.
  • The coordinates lookup is independent of IPinfo.io — uses OpenStreetMap Nominatim and BigDataCloud, both free and keyless.
  • Map links are generated locally — no API call needed. They open in Google Maps, Bing Maps, or OpenStreetMap at zoom level 17.
  • combined.txt in each country folder merges all ASN CIDRs into a single file.

About

Node.js CLI tool for full IP lookups, ASN intelligence, country-level ASN browsing, IPv4 CIDR ranges, reverse DNS, IP mapping, and coordinate-based reverse geocoding. Pulls geo, network, privacy, and abuse data from live APIs. Single standalone file, zero npm dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors