User
CybORG.Simulator.User.User
Bases: Entity
User entity
Attributes:
Name | Type | Description |
---|---|---|
username |
str
|
|
password |
str
|
|
password_hash |
str
|
|
bruteforceable |
bool
|
|
password_hash_type |
str
|
|
groups |
List[LocalGroup]
|
|
logged_in |
bool
|
|
uid |
int
|
|
disabled |
bool
|
|
Functions
__init__
__init__(username: str, uid: int, password: str = None, password_hash: str = None, password_hash_type: str = None, groups: list = None, logged_in: bool = None, bruteforceable: bool = False)
Instantiate the User object
add_group
Add a group to the user's list of groups.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
group |
LocalGroup
|
group to add |
required |
CybORG.Simulator.LocalGroup.LocalGroup
Bases: Entity