GoToolSharing / htb-cli

Interact with Hackthebox using your terminal - Be faster and more competitive !
https://github.com/GoToolSharing/htb-cli
GNU General Public License v3.0
87 stars 6 forks source link

Improving info command #21

Closed QU35T-code closed 1 year ago

QU35T-code commented 1 year ago

Add a flag to list user/challenge information

htb-cli info -c Phonebook htb-cli info -m SteamCloud htb-cli info -u qu35t

The options can also be combined :

htb-cli info -c Phonebook -c Survival htb-cli info -m Sau -m pilgrimage

QU35T-code commented 1 year ago

Challenges search added. Missing user informations

QU35T-code commented 1 year ago
❯ htb-cli info -u qu35t3190 -u Cvxfous -m Sau -c wide  
? Do you want to check for active machine? No
? The following machine was found : Sau Yes
Name   |OS      |Retired   |Difficulty   |Stars   |IP          |Status        |Last Reset       |Release
Sau    |Linux   |No        |Easy         |4.6     |Undefined   |User & Root   |1 month before   |2023-07-08
? The following challenge was found : WIDE Yes
Name   |Category    |Retired   |Difficulty   |Stars   |Solves   |Status     |Release
WIDE   |Reversing   |Yes       |Very Easy    |5       |394      |No flags   |2022-05-27
? The following username was found : QU35T3190 Yes
Name        |User Owns   |System Owns   |User Bloods   |System Bloods   |Team        |University           |Rank         |Global Rank   |Points
QU35T3190   |190         |178           |0             |0               |SimianSec   |Epitech Technology   |Pro Hacker   |487           |266
? The following username was found : CvxFous Yes
Name      |User Owns   |System Owns   |User Bloods   |System Bloods   |Team        |University           |Rank           |Global Rank   |Points
CvxFous   |131         |130           |0             |0               |SimianSec   |Epitech Technology   |Elite Hacker   |121           |1085