Skip to content

Commit

Permalink
Add start,status,stop and submit pages
Browse files Browse the repository at this point in the history
  • Loading branch information
qu35t-code committed Jan 8, 2024
1 parent e69126f commit b80911b
Show file tree
Hide file tree
Showing 16 changed files with 102 additions and 0 deletions.
Binary file added docs/assets/commands/reset/reset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/commands/start/ra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/commands/start/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/commands/status/status.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/commands/status/web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/commands/stop/stop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/commands/submit/active.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/commands/submit/challenge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/commands/submit/machine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions docs/commands/reset.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Reset

The **reset** command is used to **request the reset** of an instance. **No arguments** are required. The reset request will be made for the **current active machine**.

```bash
htb-cli reset
```

![Reset](/assets/commands/reset/reset.png)
23 changes: 23 additions & 0 deletions docs/commands/start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Start

## Machine search

The **start** command starts an instance for a machine. The **machine name** must be specified using the `-m` or `--machine` argument. Once started, its **IP address** is displayed.

```bash
htb-cli start -m Visual
```

![Search](/assets/commands/start/search.png)

## Start the release arena machine

If **no flag** is submitted, htb-cli starts the machine in **release arena**.

```bash
htb-cli start
```

![Release Arena](/assets/commands/start/ra.png)

**Note:** The **release arena** machine can also be started by specifying its name with the `-m` flag.
12 changes: 12 additions & 0 deletions docs/commands/status.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Status

The **status** command displays the status of **hackthebox servers**.
A request is made to the following URL to retrieve the status: <a href="https://status.hackthebox.com/api/v2/status.json" target="_blank">https://status.hackthebox.com/api/v2/status.json</a>

![Web](/assets/commands/status/web.png)

```bash
htb-cli status
```

![Status](/assets/commands/status/status.png)
9 changes: 9 additions & 0 deletions docs/commands/stop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Stop

The **stop** command is used to **stop a machine instance**. **No arguments** are required. The **current active machine** will be stopped.

```bash
htb-cli stop
```

![Stop](/assets/commands/stop/stop.png)
41 changes: 41 additions & 0 deletions docs/commands/submit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Submit

The **submit** command is used to **submit a flag**. Currently, the following submissions are supported :

* VIP machines
* VIP+ machines
* Free machines
* Release Arena machines
* Challenges

The `-d` or `--difficulty` flag must be used to indicate the **difficulty** of obtaining the flag.

## Active machine

If there is no `--machine` or `--challenge` flag, submission will be made on the **current active machine**.

```bash
htb-cli submit -d 3
```

![Active](/assets/commands/submit/active.png)

## Find a machine

A **machine name** can be specified to submit the flag for a specific machine. The `-m` or `--machine` option can be used for this.

```bash
htb-cli submit -m Sau -d 3
```

![Machine](/assets/commands/submit/machine.png)

## Challenge

To **submit a challenge** flag, you can specify its name with the `-c` flag.

```bash
htb-cli submit -c OOPArtDB -d 10
```

![Challenge](/assets/commands/submit/challenge.png)
2 changes: 2 additions & 0 deletions docs/commands/vpn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# VPN

6 changes: 6 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,10 @@ nav:
- Sherlocks: commands/sherlocks.md
- Info: commands/info.md
- Machines: commands/machines.md
- Start: commands/start.md
- Stop: commands/stop.md
- Reset: commands/reset.md
- Status: commands/status.md
- Submit: commands/submit.md
- VPN: commands/vpn.md

0 comments on commit b80911b

Please sign in to comment.