hackthebox.fortress — HTB Fortresses

Fortresses

class hackthebox.fortress.Fortress(data: dict, client: hackthebox.htb.HTBClient, summary=False)[source]

The class representing Hack The Box fortresses

id

The ID of the Fortress

Type

int

name

The name of the Fortress

Type

str

image

The relative URL of the Fortress’ image

Type

str

num_flags

The number of available flags

Type

int

reset_votes

The number of votes to reset the Fortress

Type

int

progress

The active user’s progress through the Fortress, out of 100

Type

int

flags

The list of flags available

Type

List

company

The Fortress’ associated Company

Type

hackthebox.fortress.Company

ip

IP address the Fortress can be contacted on

Type

str

submit(flag: str)[source]

Submits a flag for an Fortress

Parameters

flag – The flag for the Fortress