{"id":31701991,"url":"https://github.com/getlantern/direct-ip-scanner","last_synced_at":"2025-10-08T21:10:52.430Z","repository":{"id":144926383,"uuid":"101323503","full_name":"getlantern/direct-ip-scanner","owner":"getlantern","description":"Direct IP Scanner","archived":false,"fork":false,"pushed_at":"2019-07-02T08:11:37.000Z","size":8088,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-04-15T03:25:40.697Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getlantern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-24T18:00:03.000Z","updated_at":"2024-06-19T10:26:39.577Z","dependencies_parsed_at":"2024-06-19T10:26:38.155Z","dependency_job_id":"64934129-d1ad-4bcc-b0cc-5d932afd2664","html_url":"https://github.com/getlantern/direct-ip-scanner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/getlantern/direct-ip-scanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fdirect-ip-scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fdirect-ip-scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fdirect-ip-scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fdirect-ip-scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getlantern","download_url":"https://codeload.github.com/getlantern/direct-ip-scanner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getlantern%2Fdirect-ip-scanner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000716,"owners_count":26082837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-08T21:10:50.755Z","updated_at":"2025-10-08T21:10:52.425Z","avatar_url":"https://github.com/getlantern.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Direct IP Scanner\n\nDiscover IPs of popular domains based on IP ranges\n\n\n## Finding IPs for a domain\n\nYou first need to find their autonomous system number. It's in the whois record for any of their IP addresses. These examples use GNU jwhois.\nNote: use all known domains, since they might be in different ASN even.\n\n```\n$ host www.facebook.com\nwww.facebook.com is an alias for star.c10r.facebook.com.\nstar.c10r.facebook.com has address 173.252.120.6\nstar.c10r.facebook.com has IPv6 address 2a03:2880:2130:cf05:face:b00c:0:1\nstar.c10r.facebook.com mail is handled by 10 msgin.t.facebook.com.\n```\n\n```\n$ whois -h whois.radb.net 173.252.120.6 | grep origin\norigin:     AS32934\norigin:     AS38621\n```\n\nMake sure it actually belongs to Facebook. If the domain is of a small website it won't have it's onw AS.\n\n```\n$ whois -h whois.radb.net AS32934\n$ whois -h whois.radb.net AS38621\n```\n\nNow we know which is Facebook's ASN; let's get their IPv4 address ranges.\n\n```\n$ whois -h whois.radb.net -- -i origin -T route AS32934 | grep route: \n```\n\nAnd finally their IPv6 address ranges.\n\n```\n$ whois -h whois.radb.net -- -i origin -T route6 AS32934 | grep route6:\n```\n\nRepeat for all their ASNs, if they actually have more than one.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetlantern%2Fdirect-ip-scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetlantern%2Fdirect-ip-scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetlantern%2Fdirect-ip-scanner/lists"}