{"id":18563516,"url":"https://github.com/mrvcoder/getasn","last_synced_at":"2025-04-10T03:32:50.651Z","repository":{"id":65671418,"uuid":"596714087","full_name":"mrvcoder/GetASN","owner":"mrvcoder","description":"🌐 Get Some Useful Info From Domain/IP/ASN 🔥","archived":false,"fork":false,"pushed_at":"2023-08-09T20:41:45.000Z","size":74,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-08-09T21:55:24.612Z","etag":null,"topics":["asn-lookup","bgpview","bugbounty","cdn","cdn-check","cidr","cli","domain","information-gathering","osint","recon","reconnaissance"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/mrvcoder.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}},"created_at":"2023-02-02T19:26:28.000Z","updated_at":"2023-08-09T21:55:24.613Z","dependencies_parsed_at":"2023-02-18T06:01:03.914Z","dependency_job_id":null,"html_url":"https://github.com/mrvcoder/GetASN","commit_stats":null,"previous_names":[],"tags_count":4,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrvcoder%2FGetASN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrvcoder%2FGetASN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrvcoder%2FGetASN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrvcoder%2FGetASN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrvcoder","download_url":"https://codeload.github.com/mrvcoder/GetASN/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223424439,"owners_count":17142744,"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","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":["asn-lookup","bgpview","bugbounty","cdn","cdn-check","cidr","cli","domain","information-gathering","osint","recon","reconnaissance"],"created_at":"2024-11-06T22:12:50.076Z","updated_at":"2024-11-06T22:12:50.145Z","avatar_url":"https://github.com/mrvcoder.png","language":"Shell","readme":"## Tools/Commands need to be installed in your machine\n**Install these tools before running script !**\n| tool | README |\n| ------ | ------ |\n| cut-cdn | [https://github.com/ImAyrix/cut-cdn] |\n| dnsx | [https://github.com/projectdiscovery/dnsx] |\n\n## what does this script do?\nthis script will give you these infoes :\n- **ASN**: asn number of domain\n- **IP**:  IPs of domain (supports ipv4 and ipv6)\n- **is_cdn**: is domain/IP behind cdn or not (true or false) \n- **CIDR**: All prefex of ip (cidr)\n\n**Please note that Script Data Source is [bgpview](https://bgpview.io/) !**\n\n## what input types can you pass ?\n- single/list of IPs\n- single/list of Domains\n- single/list of ASNs\n\nAnd at the end you will get these outputs :\n- The ORGINAL output :  `getasn_output.json`\n- The output which ASNs are equal and is_cdn is false: `getasn_output_SameASN_NotCDN.json`\n- The output which is_cdn is false: `getasn_output_NotCDN.json`\n- Also you can create custom output name with `-o` option :)\n\n## usage\n```\nusage: ./getasn.sh [options] \n\noptions: \n        -r                  set resolvers file address [ default: ./resolvers.txt ]\n        -s   -silent        silent output\n        -o                  set output (only .json is ok)\n        -domainlist         set domain list txt file (only .txt is ok)\n        -domain             check single domain\n        -iplist             set ip list txt file (only .txt is ok)\n        -ip                 check single ip\n        -asn                check single asn\n        -asnlist            set asn list txt file (only .txt is ok)\n```\n\n\n## How to use this script as alias in bash !\nAdd this code to your `~/.bashrc`\n```\nalias getasn=\"{{getasn.sh full path}}\"\n```\n1. replace `{{getasn.sh full path}}` with path of where is getasn.sh script is\nsave it and the run this code :\n```\nsource ~/.bashrc\n```\n\nNow you can call getasn script anywhere in bash by only calling `getasn` !\nAnd Only need to pass `[options]` \n\n\n## How to use with [notify](https://github.com/projectdiscovery/notify)\n```\n./getasn.sh -s -domainlist ListOfDomains.txt | notify -mf \"done\" -id discord\n```\nGood luck :)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrvcoder%2Fgetasn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrvcoder%2Fgetasn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrvcoder%2Fgetasn/lists"}