You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You must add a Hackthebox **App token** in the **HTB_TOKEN** environment variable (zshrc maybe).
22
+
API Token can be find here : https://app.hackthebox.com/profile/settings => `Create App Token`
23
+
24
+
```
25
+
export HTB_TOKEN=eyJ...
26
+
```
27
+
28
+
## Helper
29
+
1
30
```
2
31
This software, engineered using the Go programming language, serves to streamline and automate various tasks for the HackTheBox platform, enhancing user efficiency and productivity.
3
32
@@ -6,12 +35,13 @@ Usage:
6
35
7
36
Available Commands:
8
37
active Catalogue of active machines
9
-
submit Submit credentials (User and Root Flags)
10
38
help Help about any command
11
39
info Showcase detailed machine information
12
-
reset Reset a machine - [WIP]
40
+
reset Reset a machine
13
41
start Start a machine
42
+
status Displays the status of HackTheBox servers
14
43
stop Stop the current machine
44
+
submit Submit credentials (User and Root Flags)
15
45
16
46
Flags:
17
47
-h, --help help for htb-cli
@@ -21,58 +51,68 @@ Flags:
21
51
Use "htb-cli [command] --help" for more information about a command.
You must add a Hackthebox **App token** in the **HTB_TOKEN** environment variable (zshrc maybe).
31
-
API Token can be find here : https://app.hackthebox.com/profile/settings => Create App Token
32
-
33
-
```
34
-
export HTB_TOKEN=eyJ...
35
-
```
36
-
37
54
## Start
38
55
39
56
```
40
-
> htb-cli start -m Flight
57
+
❯ htb-cli start -m Blue
58
+
? The following machine was found : Blue Yes
41
59
Machine deployed to lab.
42
60
```
43
61
44
62
## Stop
45
63
46
64
```
47
-
> htb-cli stop
65
+
❯ htb-cli stop
48
66
Machine terminated.
49
67
```
50
68
51
69
## Reset
52
70
53
71
```
54
-
> htb-cli reset -m Flight
55
-
Machine terminated.
72
+
❯ htb-cli reset
73
+
CozyHosting will be reset in 1 minute.
56
74
```
57
75
58
76
## Submit
59
77
60
78
This command allows to submit the user flag and the root flag of active and retired machines. The first argument is the flag and the second the difficulty /10.
0 commit comments