Documentation ¶
Index ¶
- Constants
- Variables
- type AccountChangePasswordRequestDTO
- type AdminAgentCreateRequestDTO
- type AdminAgentCreateResponseDTO
- type AdminAgentSetMaintanceRequestDTO
- type AdminConfigRequestDTO
- type AdminConfigResponseDTO
- type AdminGetAllUsersResponseDTO
- type AdminServiceAccountCreateRequestDTO
- type AdminServiceAccountCreateResponseDTO
- type AdminUserCreateRequestDTO
- type AdminUserCreateResponseDTO
- type AgentConfigDTO
- type AgentDTO
- type AgentFileDTO
- type AgentGetAllResponseDTO
- type AgentInfoDTO
- type AttackCreateRequestDTO
- type AttackDTO
- type AttackIDTreeDTO
- type AttackIDTreeMultipleDTO
- type AttackMultipleDTO
- type AttackStartResponseDTO
- type AttackWithJobsDTO
- type AttackWithJobsMultipleDTO
- type AuthChangePasswordRequestDTO
- type AuthConfigDTO
- type AuthCurrentUserDTO
- type AuthLoginRequestDTO
- type AuthLoginResponseDTO
- type AuthOIDCConfigDTO
- type AuthRefreshResponseDTO
- type AuthWebAuthnStartChallengeResponseDTO
- type AuthWebAuthnStartEnrollmentResponseDTO
- type AuthWhoamiResponseDTO
- type DetectHashTypeRequestDTO
- type DetectHashTypeResponseDTO
- type GeneralAuthConfigDTO
- type GeneralConfigDTO
- type GetAllRuleFilesDTO
- type GetAllWordlistsDTO
- type HashTypesDTO
- type HashlistCreateRequestDTO
- type HashlistCreateResponseDTO
- type HashlistDTO
- type HashlistHashDTO
- type HashlistResponseMultipleDTO
- type JobCrackedHashDTO
- type JobCreateRequestDTO
- type JobCreateResponseDTO
- type JobDTO
- type JobMultipleDTO
- type JobRuntimeDataDTO
- type JobRuntimeOutputLineDTO
- type JobRuntimeSummaryDTO
- type JobSimpleDTO
- type JobStartResponseDTO
- type ListfileDTO
- type ListfileUploadResponseDTO
- type NormalizeHashesRequestDTO
- type NormalizeHashesResponseDTO
- type PotfileSearchRequestDTO
- type PotfileSearchResponseDTO
- type PotfileSearchResultDTO
- type ProjectAddShareRequestDTO
- type ProjectCreateRequestDTO
- type ProjectCreateResponseDTO
- type ProjectDTO
- type ProjectResponseMultipleDTO
- type ProjectSharesDTO
- type PublicAuthConfigDTO
- type PublicConfigDTO
- type PublicGeneralConfigDTO
- type PublicOIDCConfigDTO
- type RunningJobForUserDTO
- type RunningJobsForUserResponseDTO
- type UserDTO
- type UserMinimalDTO
- type UsersGetAllResponseDTO
- type VerifyHashesRequestDTO
- type VerifyHashesResponseDTO
Constants ¶
View Source
const UserRoleAdmin = "admin"
View Source
const UserRoleServiceAccount = "service_account"
View Source
const UserRoleStandard = "standard"
Variables ¶
View Source
var UserSignupRoles = []string{UserRoleStandard, UserRoleAdmin}
Functions ¶
This section is empty.
Types ¶
type AdminAgentCreateRequestDTO ¶
type AdminAgentCreateRequestDTO struct {
Name string `json:"name" validate:"required,min=4,max=64,username"`
}
type AdminAgentSetMaintanceRequestDTO ¶
type AdminAgentSetMaintanceRequestDTO struct {
IsMaintenanceMode bool `json:"is_maintenance_mode"`
}
type AdminConfigRequestDTO ¶
type AdminConfigRequestDTO struct { Auth *AuthConfigDTO `json:"auth"` Agent *AgentConfigDTO `json:"agent"` General *GeneralConfigDTO `json:"general"` }
type AdminConfigResponseDTO ¶
type AdminConfigResponseDTO struct { Auth AuthConfigDTO `json:"auth"` Agent AgentConfigDTO `json:"agent"` General GeneralConfigDTO `json:"general"` }
type AdminGetAllUsersResponseDTO ¶
type AdminGetAllUsersResponseDTO struct {
Users []UserDTO `json:"users"`
}
type AgentConfigDTO ¶
type AgentDTO ¶
type AgentDTO struct { ID string `json:"id"` Name string `json:"name"` IsMaintenanceMode bool `json:"is_maintenance_mode"` AgentInfo AgentInfoDTO `json:"agent_info"` AgentDevices []hashcattypes.HashcatStatusDevice `json:"agent_devices"` }
type AgentFileDTO ¶
type AgentGetAllResponseDTO ¶
type AgentGetAllResponseDTO struct {
Agents []AgentDTO `json:"agents"`
}
type AgentInfoDTO ¶
type AgentInfoDTO struct { Status string `json:"status"` Version string `json:"version"` LastCheckInTime int64 `json:"last_checkin,omitempty"` AvailableListfiles []AgentFileDTO `json:"available_listfiles,omitempty"` ActiveJobIDs []string `json:"active_job_ids,omitempty"` }
type AttackCreateRequestDTO ¶
type AttackCreateRequestDTO struct { HashlistID string `json:"hashlist_id" validate:"required,uuid"` HashcatParams hashcattypes.HashcatParams `json:"hashcat_params" validate:"required"` IsDistributed bool `json:"is_distributed"` }
type AttackDTO ¶
type AttackDTO struct { ID string `json:"id"` HashlistID string `json:"hashlist_id"` HashcatParams hashcattypes.HashcatParams `json:"hashcat_params"` IsDistributed bool `json:"is_distributed"` ProgressString string `json:"progress_string"` }
type AttackIDTreeDTO ¶
type AttackIDTreeMultipleDTO ¶
type AttackIDTreeMultipleDTO struct {
Attacks []AttackIDTreeDTO `json:"attacks"`
}
type AttackMultipleDTO ¶
type AttackMultipleDTO struct {
Attacks []AttackDTO `json:"attacks"`
}
type AttackStartResponseDTO ¶
type AttackWithJobsDTO ¶
type AttackWithJobsMultipleDTO ¶
type AttackWithJobsMultipleDTO struct {
Attacks []AttackWithJobsDTO `json:"attacks"`
}
type AuthConfigDTO ¶
type AuthConfigDTO struct { General *GeneralAuthConfigDTO `json:"general"` OIDC *AuthOIDCConfigDTO `json:"oidc"` }
type AuthCurrentUserDTO ¶
type AuthLoginRequestDTO ¶
type AuthLoginResponseDTO ¶
type AuthLoginResponseDTO struct { User AuthCurrentUserDTO `json:"user"` IsAwaitingMFA bool `json:"is_awaiting_mfa"` RequiresPasswordChange bool `json:"requires_password_change"` RequiresMFAEnrollment bool `json:"requires_mfa_enrollment"` }
type AuthOIDCConfigDTO ¶
type AuthOIDCConfigDTO struct { ClientID string `json:"client_id"` ClientSecret string `json:"client_secret"` IssuerURL string `json:"issuer_url"` RedirectURL string `json:"redirect_url"` Prompt string `json:"prompt"` AutomaticUserCreation bool `json:"automatic_user_creation"` UsernameClaim string `json:"username_claim"` RolesClaim string `json:"role_field"` RequiredRole string `json:"required_role"` AdditionalScopes []string `json:"scopes"` }
type AuthRefreshResponseDTO ¶
type AuthRefreshResponseDTO struct { User AuthCurrentUserDTO `json:"user"` IsAwaitingMFA bool `json:"is_awaiting_mfa"` RequiresPasswordChange bool `json:"requires_password_change"` RequiresMFAEnrollment bool `json:"requires_mfa_enrollment"` }
type AuthWebAuthnStartChallengeResponseDTO ¶
type AuthWebAuthnStartChallengeResponseDTO struct {
protocol.CredentialAssertion
}
type AuthWebAuthnStartEnrollmentResponseDTO ¶
type AuthWebAuthnStartEnrollmentResponseDTO struct {
protocol.CredentialCreation
}
type AuthWhoamiResponseDTO ¶
type AuthWhoamiResponseDTO struct { User AuthCurrentUserDTO `json:"user"` IsAwaitingMFA bool `json:"is_awaiting_mfa"` RequiresPasswordChange bool `json:"requires_password_change"` RequiresMFAEnrollment bool `json:"requires_mfa_enrollment"` }
type DetectHashTypeResponseDTO ¶
type DetectHashTypeResponseDTO struct {
PossibleTypes []int `json:"possible_types"`
}
type GeneralAuthConfigDTO ¶
type GeneralConfigDTO ¶
type GetAllRuleFilesDTO ¶
type GetAllRuleFilesDTO struct {
RuleFiles []ListfileDTO `json:"rulefiles"`
}
type GetAllWordlistsDTO ¶
type GetAllWordlistsDTO struct {
Wordlists []ListfileDTO `json:"wordlists"`
}
type HashTypesDTO ¶
type HashTypesDTO struct {
HashTypes hashcattypes.HashTypeMap `json:"hashtypes"`
}
type HashlistCreateRequestDTO ¶
type HashlistCreateRequestDTO struct { ProjectID string `json:"project_id" validate:"required,uuid"` Name string `json:"name" validate:"required,standardname,min=5,max=30"` HashType int `json:"hash_type" validate:"hashtype"` InputHashes []string `json:"input_hashes" validate:"required,min=1,dive,required,min=4"` HasUsernames bool `json:"has_usernames"` }
type HashlistDTO ¶
type HashlistHashDTO ¶
type HashlistResponseMultipleDTO ¶
type HashlistResponseMultipleDTO struct {
Hashlists []HashlistDTO `json:"hashlists"`
}
type JobCrackedHashDTO ¶
type JobCreateRequestDTO ¶
type JobCreateRequestDTO struct { HashcatParams hashcattypes.HashcatParams `json:"hashcat_params" validate:"required"` Hashes []string `json:"hashes" validate:"required,min=1,dive,min=4,required"` StartImmediately bool `json:"start_immediately"` Name string `json:"name" validate:"required,standardname,min=5,max=30"` Description string `json:"description" validate:"printascii,max=1000"` }
type JobCreateResponseDTO ¶
type JobCreateResponseDTO struct {
ID string `json:"id"`
}
type JobDTO ¶
type JobDTO struct { ID string `json:"id"` HashlistVersion uint `json:"hashlist_version"` AttackID string `json:"attack_id"` HashcatParams hashcattypes.HashcatParams `json:"hashcat_params"` TargetHashes []string `json:"target_hashes"` HashType int `json:"hash_type"` RuntimeData JobRuntimeDataDTO `json:"runtime_data"` RuntimeSummary JobRuntimeSummaryDTO `json:"runtime_summary"` AssignedAgentID string `json:"assigned_agent_id"` }
type JobMultipleDTO ¶
type JobMultipleDTO struct {
Jobs []JobSimpleDTO `json:"jobs"`
}
type JobRuntimeDataDTO ¶
type JobRuntimeDataDTO struct { StartRequestTime time.Time `json:"start_request_time"` StartedTime time.Time `json:"started_time"` StoppedTime time.Time `json:"stopped_time"` Status string `json:"status"` StopReason string `json:"stop_reason"` ErrorString string `json:"error_string"` CmdLine string `json:"cmd_line"` OutputLines []JobRuntimeOutputLineDTO `json:"output_lines"` StatusUpdates []hashcattypes.HashcatStatus `json:"status_updates"` CrackedHashes []JobCrackedHashDTO `json:"cracked_hashes"` }
type JobRuntimeOutputLineDTO ¶
type JobRuntimeSummaryDTO ¶
type JobSimpleDTO ¶
type JobStartResponseDTO ¶
type JobStartResponseDTO struct {
AgentID string `json:"agent_id"`
}
type ListfileDTO ¶
type ListfileDTO struct { ID string `json:"id"` FileType string `json:"file_type"` Name string `json:"name"` SizeInBytes uint64 `json:"size_in_bytes"` Lines uint64 `json:"lines"` AvailableForUse bool `json:"available_for_use"` PendingDelete bool `json:"pending_delete"` CreatedByUserID string `json:"created_by_user_id"` }
type ListfileUploadResponseDTO ¶
type ListfileUploadResponseDTO struct {
Listfile ListfileDTO `json:"listfile"`
}
type NormalizeHashesRequestDTO ¶
type NormalizeHashesRequestDTO = VerifyHashesRequestDTO
type PotfileSearchRequestDTO ¶
type PotfileSearchRequestDTO struct {
Hashes []string `json:"hashes"`
}
type PotfileSearchResponseDTO ¶
type PotfileSearchResponseDTO struct {
Results []PotfileSearchResultDTO `json:"results"`
}
type PotfileSearchResultDTO ¶
type ProjectAddShareRequestDTO ¶
type ProjectAddShareRequestDTO struct {
}type ProjectCreateRequestDTO ¶
type ProjectCreateResponseDTO ¶
type ProjectCreateResponseDTO = ProjectDTO
type ProjectDTO ¶
type ProjectResponseMultipleDTO ¶
type ProjectResponseMultipleDTO struct {
Projects []ProjectDTO `json:"projects"`
}
type ProjectSharesDTO ¶
type ProjectSharesDTO struct {
}type PublicAuthConfigDTO ¶
type PublicAuthConfigDTO struct { EnabledMethods []string `json:"enabled_methods"` OIDC PublicOIDCConfigDTO `json:"oidc"` }
type PublicConfigDTO ¶
type PublicConfigDTO struct { Auth PublicAuthConfigDTO `json:"auth"` General PublicGeneralConfigDTO `json:"general"` }
type PublicGeneralConfigDTO ¶
type PublicOIDCConfigDTO ¶
type PublicOIDCConfigDTO struct {
Prompt string `json:"prompt"`
}
type RunningJobForUserDTO ¶
type RunningJobsForUserResponseDTO ¶
type RunningJobsForUserResponseDTO struct {
Jobs []RunningJobForUserDTO `json:"jobs"`
}
type UserMinimalDTO ¶
type UsersGetAllResponseDTO ¶
type UsersGetAllResponseDTO struct {
Users []UserMinimalDTO `json:"users"`
}
type VerifyHashesRequestDTO ¶
type VerifyHashesResponseDTO ¶
type VerifyHashesResponseDTO struct {
Valid bool `json:"valid"`
}
Click to show internal directories.
Click to hide internal directories.