Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rtfmkiesel/geopipe
A pipeline tool to filter domains by server location
https://github.com/rtfmkiesel/geopipe
bugbounty golang maxmind
Last synced: 19 days ago
JSON representation
A pipeline tool to filter domains by server location
- Host: GitHub
- URL: https://github.com/rtfmkiesel/geopipe
- Owner: rtfmkiesel
- Created: 2023-04-23T20:42:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-26T21:04:42.000Z (almost 2 years ago)
- Last Synced: 2024-11-27T15:41:46.332Z (3 months ago)
- Topics: bugbounty, golang, maxmind
- Language: Go
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# geopipe
A tool to take domains from `stdin` and output them to `stdout` if have they at least one IP address inside the specified country.## Requirements
You will need a `GeoLite2` database file. This database is free and can be downloaded [here](https://dev.maxmind.com/geoip/geolite2-free-geolocation-data). License agreements of [MaxMind](https://maxmind.com) apply. Parse the path to this file via the `-f` option or with the environment variable `MMDB`.## Usage
```
Usage: cat domains.txt | geopipe [OPTIONS]Options:
-c Two letter country code of the country to pipe thru (default: US)
-f Path to the 'GeoLite2-Country.mmdb' file (default: ./GeoLite2-Country.mmdb)
-r Comma-separated list of DNS resolvers to use (default: 9.9.9.9,1.1.1.1,8.8.8.8)
-t Number of threads to spawn (default: 1)
-s Do not print errors
-h Prints this text
```## Installation
```bash
go install github.com/rtfmkiesel/geopipe/cli/geopipe@latest
```## Build from source
```bash
git clone https://github.com/rtfmkiesel/geopipe
cd geopipe
# to build binary in the current directory
go build -ldflags="-s -w" "cli/geopipe"
# to build & install binary into GOPATH/bin
go install "cli/geopipe"
```## Kudos
- [cydave](https://github.com/cydave) for contributing
- [oschwald](https://github.com/oschwald) for the [maxminddb-golang](https://github.com/oschwald/maxminddb-golang) module