{"id":29603197,"url":"https://github.com/xprnvd/ipgr","last_synced_at":"2025-07-20T14:06:25.743Z","repository":{"id":169417201,"uuid":"638094525","full_name":"xprnvd/ipgr","owner":"xprnvd","description":"ipgr (short for \"IP grep\") is a command-line program that extracts IP addresses from stdin/file, with filters available for v4, v6, Public, Private IP address.","archived":false,"fork":false,"pushed_at":"2023-10-19T06:21:22.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-01-17T20:19:22.924Z","etag":null,"topics":["bugbounty","bugbounty-tool","cli-app","grep-like"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xprnvd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-05-09T04:25:37.000Z","updated_at":"2023-05-09T05:57:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"df1d77e4-fb8a-487f-899e-b17259e2907a","html_url":"https://github.com/xprnvd/ipgr","commit_stats":null,"previous_names":["raxpd/ipgr","xprnvd/ipgr"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/xprnvd/ipgr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xprnvd%2Fipgr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xprnvd%2Fipgr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xprnvd%2Fipgr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xprnvd%2Fipgr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xprnvd","download_url":"https://codeload.github.com/xprnvd/ipgr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xprnvd%2Fipgr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266135685,"owners_count":23881803,"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":["bugbounty","bugbounty-tool","cli-app","grep-like"],"created_at":"2025-07-20T14:06:24.366Z","updated_at":"2025-07-20T14:06:25.737Z","avatar_url":"https://github.com/xprnvd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ipgr\n\n`ipgr` (short for \"IP grep\") is a command-line program that extracts IP addresses from stdin/file, with filters available for v4, v6, Public, Private IP address.\n\nIt can be useful, where you need to quickly extract and classify IP addresses from various sources such as log files, network traffic captures, and DNS records. \n\nFor bug bounty. by using `ipgr` in combination with other command-line tools, you can easily filter, sort, and manipulate the extracted IP addresses to identify potential targets for further investigation.\n\n## Install with Cargo\n\n`cargo install --git=https://github.com/raxpd/ipgr`\n\n## Usage\n\nipgr [FLAGS]\n\n\n### Flags\n\n- `-4`: filter IPv4 addresses.\n- `-6`: filter IPv6 addresses.\n- `-pub`: filter public IP addresses.\n- `-priv`: filter private IP addresses.\n- `-s`: silent. only IP addresses.\n\n## Examples\n\n```\n➜  subfinder -silent -d hackerone.com | dnsx -silent -a -resp | ipgr -s -pub\n3.208.160.136\n18.66.63.51\n18.66.63.94\n18.66.63.96\n18.66.63.105\n34.232.145.146\n35.170.97.33\n52.70.181.109\n52.201.196.83\n104.16.99.52\n104.16.100.52\n162.159.0.31\n162.159.1.31\n185.199.108.153\n185.199.109.153\n185.199.110.153\n185.199.111.153\n```\n\n```\n➜  cat dummy.log\n2023-05-09 08:22:20 [INFO] Connection established from public IPv4: 93.184.216.34\n2023-05-09 08:22:21 [DEBUG] Assigned private IPv4: 192.168.1.2\n2023-05-09 08:22:22 [INFO] Connection established from public IPv6: 2606:2800:220:1:248:1893:25c8:1946\n2023-05-09 08:22:23 [DEBUG] Assigned private IPv6: fd12:3456:789a::1\n2023-05-09 08:22:24 [ERROR] Connection lost from public IPv4: 93.184.216.34\n2023-05-09 08:22:25 [INFO] Connection re-established from public IPv4: 93.184.216.34\n2023-05-09 08:22:26 [DEBUG] Assigned private IPv4: 192.168.1.3\n2023-05-09 08:22:27 [WARNING] High traffic detected from public IPv6: 2606:2800:220:1:248:1893:25c8:1946\n2023-05-09 08:22:28 [INFO] Traffic normalized from public IPv6: 2606:2800:220:1:248:1893:25c8:1946\n2023-05-09 08:22:29 [DEBUG] Connection closed from public IPv4:\u003cIPAddress\u003e\n```\n\nExtract all IP addresses from a file:\n\n```\n➜  cat dummy.log | ipgr -s\n93.184.216.34\n192.168.1.2\n192.168.1.3\n2606:2800:220:1:248:1893:25c8:1946\n````\n\nExtract only IPv4 addresses from a file:\n\n```\n➜  cat dummy.log | ipgr -4\nIPv4 addresses:\n93.184.216.34\n192.168.1.2\n192.168.1.3\n```\n\nExtract only public IP addresses from a file:\n\n```\n➜  ipgr -pub -f dummy.log\nIPv4 addresses:\n93.184.216.34\n\nIPv6 addresses:\n2606:2800:220:1:248:1893:25c8:1946\n```\n\n## License\n\nThis program is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxprnvd%2Fipgr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxprnvd%2Fipgr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxprnvd%2Fipgr/lists"}