Skip to content

Commit

Permalink
Merge pull request #30 from Ostorlab/fix/replace_html_with_markdown
Browse files Browse the repository at this point in the history
Replace HTML with markdown in the `README.md` and `ostorlab.yaml`.
  • Loading branch information
mohsinenar authored Mar 28, 2024
2 parents 27086a8 + 3d09c7a commit 758a67d
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 47 deletions.
38 changes: 17 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<h1 align="center">Agent Ip2Geo</h1>
# Agent Ip2Geo

<p align="center">
<img src="https://img.shields.io/badge/License-Apache_2.0-brightgreen.svg">
<img src="https://img.shields.io/github/languages/top/ostorlab/agent_ip2geo">
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg">
</p>
![image](https://img.shields.io/badge/License-Apache_2.0-brightgreen.svg)
![image](https://img.shields.io/github/languages/top/ostorlab/agent_ip2geo)
![image](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)

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

<p align="center">
<img src="https://github.com/Ostorlab/agent_ip2geo/blob/main/images/logo.png" alt="agent-ip2geo" />
</p>
![image](https://raw.githubusercontent.com/Ostorlab/agent_ip2geo/main/images/logo.png)

This repository is an implementation of [OXO Agent](https://pypi.org/project/ostorlab/).

Expand Down Expand Up @@ -55,22 +51,22 @@ pip3 install ostorlab
git clone https://github.com/Ostorlab/agent_ip2geo.git && cd agent_ip2geo
```

3. Build the agent image using oxo cli.
3. Build the agent image using oxo cli.

```shell
oxo agent build --file=ostorlab.yaml
```
You can pass the optional flag `--organization` to specify your organisation. The organization is empty by default.

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

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

4. Run the agent using on of the following commands:
* If you did not specify an organization when building the image:
```shell
oxo scan run --agent agent//ip2geo --agent agent//autodiscovery_persist_graph ip 8.8.8.8
```
* If you specified an organization when building the image:
```shell
oxo scan run --agent agent/[ORGANIZATION]/ip2geo --agent agent/[ORGANIZATION]/autodiscovery_persist_graph ip 8.8.8.8
```

## License
[Apache](./LICENSE)
Expand Down
72 changes: 46 additions & 26 deletions ostorlab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,76 @@ name: ip2geo
version: 0.2.10
image: images/logo.png
description: |
<h1 align="center">Agent Ip2Geo</h1>
<p align="center">
<img src="https://img.shields.io/badge/License-Apache_2.0-brightgreen.svg">
<img src="https://img.shields.io/github/languages/top/ostorlab/agent_tsunami">
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg">
</p>
# Agent Ip2Geo
![image](https://img.shields.io/badge/License-Apache_2.0-brightgreen.svg)
![image](https://img.shields.io/github/languages/top/ostorlab/agent_ip2geo)
![image](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)
_Ip2Geo agent is part of the auto-discovery agents, responsible for detecting the geolocation details of an IP address._
<p align="center">
<img src="https://github.com/Ostorlab/agent_ip2geo/blob/main/images/logo.png" alt="agent-ip2geo" />
</p>
This repository is an implementation of [Ostorlab Agent](https://pypi.org/project/ostorlab/).
![image](https://raw.githubusercontent.com/Ostorlab/agent_ip2geo/main/images/logo.png)
This repository is an implementation of [OXO Agent](https://pypi.org/project/ostorlab/).
## Getting Started
The Ip2Geo Agent works collectively with other agents. Its job; Finds all geolocation details of an IP address and emits back these findings.
To perform your first scan, simply run the following command:
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:
```shell
oxo scan run --install --agent agent/ostorlab/ip2geo \
--agent agent/ostorlab/subfinder \
--agent agent/ostorlab/autodiscovery_persist_graph \
ip 8.8.8.8
--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](https://oxo.ostorlab.co/docs)
For more information, please refer to the [OXO Documentation](https://oxo.ostorlab.co/docs)
## Usage
Agent Ip2Geo can be installed directly from the oxo agent store or built from this repository.
### Install directly from oxo agent store
```shell
oxo agent install agent/ostorlab/ip2geo
```
### Build directly from the repository
1. To build the Ip2Geo agent you need to have [oxo](https://pypi.org/project/ostorlab/) installed in your machine. If you have already installed oxo, you can skip this step.
```shell
pip3 install ostorlab
```
2. Clone this repository.
```shell
git clone https://github.com/Ostorlab/agent_ip2geo.git && cd agent_ip2geo
```
3. Build the agent image using oxo cli.
3. Build the agent image using oxo cli.
```shell
oxo agent build --file=ostorlab.yaml
```
You can pass the optional flag `--organization` to specify your organisation. The organization is empty by default.
4. Run the agent using one of the following commands:
* If you did not specify an organization when building the image:
```shell
oxo scan run --agent agent//ip2geo --agent agent//autodiscovery_persist_graph ip 8.8.8.8
```
* If you specified an organization when building the image:
```shell
oxo scan run --agent agent/[ORGANIZATION]/ip2geo --agent agent/[ORGANIZATION]/autodiscovery_persist_graph ip 8.8.8.8
You can pass the optional flag `--organization` to specify your organization. The organization is empty by default.
4. Run the agent using on of the following commands:
* If you did not specify an organization when building the image:
```shell
oxo scan run --agent agent//ip2geo --agent agent//autodiscovery_persist_graph ip 8.8.8.8
```
* If you specified an organization when building the image:
```shell
oxo scan run --agent agent/[ORGANIZATION]/ip2geo --agent agent/[ORGANIZATION]/autodiscovery_persist_graph ip 8.8.8.8
```
## License
[Apache](./LICENSE)
license: Apache-2.0
Expand Down

0 comments on commit 758a67d

Please sign in to comment.