Skip to content

najibraihan/agent_ip2geo

 
 

Repository files navigation

Agent Ip2Geo

Ip2Geo agent is part of the auto-discovery agents, responsible for detecting the geolocation details of an IP address.

agent-ip2geo

This repository is an implementation of Ostorlab Agent.

Getting Started

The Ip2Geo Agent works collectively with other agents. Its job; Find all geolocation details of an IP address and emit back these findings.

To use the agent in a scan, simply run the following command:

ostorlab scan run --install --agent agent/ostorlab/ip2geo \
			    --agent agent/ostorlab/subfinder \
			    --agent agent/ostorlab/autodiscovery_persist_graph \
			    ip 8.8.8.8

This command will download and install the agents :ip2geo, subfinder and autodiscovery_persist_graph and target the IP address 8.8.8.8.

For more information, please refer to the Ostorlab Documentation

Usage

Agent Ip2Geo can be installed directly from the ostorlab agent store or built from this repository.

Install directly from ostorlab agent store

ostorlab agent install agent/ostorlab/ip2geo

Build directly from the repository

  1. To build the Ip2Geo agent you need to have ostorlab installed in your machine. If you have already installed ostorlab, you can skip this step.
pip3 install ostorlab
  1. Clone this repository.
git clone https://github.com/Ostorlab/agent_ip2geo.git && cd agent_ip2geo
  1. Build the agent image using ostorlab cli.
ostortlab agent build --file=ostorlab.yaml

You can pass the optional flag --organization to specify your organisation. The organization is empty by default.

  1. Run the agent using one of the following commands:
    • If you did not specify an organization when building the image:
    ostorlab scan run --agent agent//ip2geo --agent agent//autodiscovery_persist_graph ip 8.8.8.8
    • If you specified an organization when building the image:
    ostorlab scan run --agent agent/[ORGANIZATION]/ip2geo --agent agent/[ORGANIZATION]/autodiscovery_persist_graph ip 8.8.8.8
    
    

License

Apache

About

Ostorlab agent geolocating IP addresses.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.8%
  • Dockerfile 2.2%