Skip to content

Commit

Permalink
Merge pull request #24 from Ostorlab/fix/update_references_to_docs
Browse files Browse the repository at this point in the history
Update references to OXO
  • Loading branch information
3asm authored Mar 18, 2024
2 parents 4043d67 + 4b75cbb commit e653fed
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,37 @@ _Metasploit is a powerful penetration testing framework._

---

This repository is an implementation of [Ostorlab Agent](https://pypi.org/project/ostorlab/) for the [Metasploit Framework](https://github.com/rapid7/metasploit-framework) by Rapid7.
This repository is an implementation of [OXO Agent](https://pypi.org/project/ostorlab/) for the [Metasploit Framework](https://github.com/rapid7/metasploit-framework) by Rapid7.

## Getting Started
To perform your first scan, simply run the following command:
```shell
ostorlab scan run --install --agent agent/ostorlab/metasploit ip 8.8.8.8
oxo scan run --install --agent agent/ostorlab/metasploit ip 8.8.8.8
```

This command will download and install `agent/ostorlab/metasploit` and target the ip `8.8.8.8`.
For more information, please refer to the [Ostorlab Documentation](https://github.com/Ostorlab/ostorlab/blob/main/README.md)
For more information, please refer to the [OXO Documentation](https://oxo.ostorlab.co/docs)


## Usage

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

### Install directly from ostorlab agent store
### Install directly from oxo agent store

```shell
ostorlab agent install agent/ostorlab/metasploit
oxo agent install agent/ostorlab/metasploit
```

You can then run the agent with the following command:
```shell
ostorlab scan run --agent agent/ostorlab/metasploit ip 8.8.8.8
oxo scan run --agent agent/ostorlab/metasploit ip 8.8.8.8
```


### Build directly from the repository

1. To build the metasploit agent you need to have [ostorlab](https://pypi.org/project/ostorlab/) installed in your machine. if you have already installed ostorlab, you can skip this step.
1. To build the metasploit 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
Expand All @@ -51,22 +51,22 @@ pip3 install ostorlab
git clone https://github.com/Ostorlab/agent_metasploit.git && cd agent_metasploit
```

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

```shell
ostorlab agent build --file=ostorlab.yaml
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 on of the following commands:
* If you did not specify an organization when building the image:
```shell
ostorlab scan run --agent agent//metasploit ip 8.8.8.8
oxo scan run --agent agent//metasploit ip 8.8.8.8
```
* If you specified an organization when building the image:
```shell
ostorlab scan run --agent agent/[ORGANIZATION]/metasploit ip 8.8.8.8
oxo scan run --agent agent/[ORGANIZATION]/metasploit ip 8.8.8.8
```

### Run agent metasploit with module options
Expand Down Expand Up @@ -96,7 +96,7 @@ agents:
value: "www.ostorlab.co"
```
`ostorlab scan run -g agent_group.yaml domain-name www.ostorlab.co`
`oxo scan run -g agent_group.yaml domain-name www.ostorlab.co`

## License
[Apache](./LICENSE)
26 changes: 13 additions & 13 deletions ostorlab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,52 @@ kind: Agent
name: metasploit
version: 0.0.10
description: |
This repository is an implementation of [Ostorlab Agent](https://pypi.org/project/ostorlab/) for the [Metasploit Framework](https://github.com/rapid7/metasploit-framework) by Rapid7.
This repository is an implementation of [OXO Agent](https://pypi.org/project/ostorlab/) for the [Metasploit Framework](https://github.com/rapid7/metasploit-framework) by Rapid7.
## Getting Started
To perform your first scan, simply run the following command:
```shell
ostorlab scan run --install --agent agent/ostorlab/metasploit ip 8.8.8.8
oxo scan run --install --agent agent/ostorlab/metasploit ip 8.8.8.8
```
This command will download and install `agent/ostorlab/metasploit` and target the ip `8.8.8.8`.
For more information, please refer to the [Ostorlab Documentation](https://github.com/Ostorlab/ostorlab/blob/main/README.md)
For more information, please refer to the [OXO Documentation](https://oxo.ostorlab.co/docs)
## Usage
Agent Metasploit can be installed directly from the ostorlab agent store or built from this repository.
Agent Metasploit can be installed directly from the oxo agent store or built from this repository.
Supported agent flags:
* `config`: Array of metasploit modules with their respective options.
### Install directly from ostorlab agent store
### Install directly from oxo agent store
```shell
ostorlab agent install agent/ostorlab/metasploit
oxo agent install agent/ostorlab/metasploit
```
You can then run the agent with the following command:
```shell
ostorlab scan run --agent agent/ostorlab/metasploit ip 8.8.8.8
oxo scan run --agent agent/ostorlab/metasploit ip 8.8.8.8
```
### Build directly from the repository
1. To build the metasploit agent you need to have [ostorlab](https://pypi.org/project/ostorlab/) installed in your machine. if you have already installed ostorlab, you can skip this step.
1. To build the metasploit 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_metasploit.git && cd agent_metasploit
```
3. Build the agent image using ostorlab cli.
3. Build the agent image using oxo cli.
```shell
ostorlab agent build --file=ostorlab.yaml
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 on of the following commands:
* If you did not specify an organization when building the image:
```shell
ostorlab scan run --agent agent//metasploit ip 8.8.8.8
oxo scan run --agent agent//metasploit ip 8.8.8.8
```
* If you specified an organization when building the image:
```shell
ostorlab scan run --agent agent/[ORGANIZATION]/metasploit ip 8.8.8.8
oxo scan run --agent agent/[ORGANIZATION]/metasploit ip 8.8.8.8
```
## Example run
Expand Down Expand Up @@ -76,7 +76,7 @@ description: |
value: "www.ostorlab.co"
```
`ostorlab scan run -g agent_group.yaml domain-name www.ostorlab.co`
`oxo scan run -g agent_group.yaml domain-name www.ostorlab.co`
## License
[Apache-2.0](./LICENSE)
Expand Down
2 changes: 1 addition & 1 deletion requirement.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ostorlab[agent]
rich
tenacity
tenacity

0 comments on commit e653fed

Please sign in to comment.