Documentation ¶
Index ¶
- Constants
- Variables
- type AccountChangePasswordRequestDTO
- type AdminAgentCreateRequestDTO
- type AdminAgentCreateResponseDTO
- type AdminAgentRegistrationKeyCreateRequestDTO
- type AdminAgentRegistrationKeyCreateResponseDTO
- type AdminAgentSetMaintanceRequestDTO
- type AdminConfigRequestDTO
- type AdminConfigResponseDTO
- type AdminGetAgentRegistrationKeyDTO
- type AdminGetAllAgentRegistrationKeysResponseDTO
- type AdminGetAllUsersResponseDTO
- type AdminGetUserDTO
- type AdminServiceAccountCreateRequestDTO
- type AdminServiceAccountCreateResponseDTO
- type AdminUserCreateRequestDTO
- type AdminUserCreateResponseDTO
- type AdminUserUpdatePasswordRequestDTO
- type AdminUserUpdatePasswordResponseDTO
- type AdminUserUpdateRequestDTO
- type AgentConfigDTO
- type AgentDTO
- type AgentFileDTO
- type AgentGetAllResponseDTO
- type AgentInfoDTO
- type AgentRegisterRequestDTO
- type AgentRegisterResponseDTO
- type AttackCreateRequestDTO
- type AttackDTO
- type AttackIDTreeDTO
- type AttackIDTreeMultipleDTO
- type AttackMultipleDTO
- type AttackStartResponseDTO
- type AttackTemplateCreateRequestDTO
- type AttackTemplateCreateSetRequestDTO
- type AttackTemplateDTO
- type AttackTemplateGetAllResponseDTO
- type AttackTemplateUpdateRequestDTO
- 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 GetAllListfilesDTO
- type GetAllRuleFilesDTO
- type GetAllWordlistsDTO
- type HashTypesDTO
- type HashlistAppendRequestDTO
- type HashlistAppendResponseDTO
- type HashlistCreateRequestDTO
- type HashlistCreateResponseDTO
- type HashlistDTO
- type HashlistHashDTO
- type HashlistResponseMultipleDTO
- 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 RunningJobCountForUserDTO
- type RunningJobCountPerUsersDTO
- type RunningJobForUserDTO
- type RunningJobsForUserResponseDTO
- type UserDTO
- type UserMinimalDTO
- type UsersGetAllResponseDTO
- type VerifyHashesRequestDTO
- type VerifyHashesResponseDTO
Constants ¶
View Source
const AttackTemplateSetType = "attack-template-set"
View Source
const AttackTemplateType = "attack-template"
View Source
const UserRoleAdmin = "admin"
View Source
const UserRoleMFAExempt = "mfa_exempt"
View Source
const UserRoleRequiresPasswordChange = "requires_password_change"
View Source
const UserRoleServiceAccount = "service_account"
View Source
const UserRoleStandard = "standard"
Variables ¶
View Source
var UserAssignableRoles = []string{UserRoleStandard, UserRoleAdmin, UserRoleServiceAccount, UserRoleMFAExempt, UserRoleRequiresPasswordChange}
Functions ¶
This section is empty.
Types ¶
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 AdminGetAllAgentRegistrationKeysResponseDTO ¶
type AdminGetAllAgentRegistrationKeysResponseDTO struct {
AgentRegistrationKeys []AdminGetAgentRegistrationKeyDTO `json:"agent_registration_keys"`
}
type AdminGetAllUsersResponseDTO ¶
type AdminGetAllUsersResponseDTO struct {
Users []AdminGetUserDTO `json:"users"`
}
type AdminGetUserDTO ¶
type AdminUserCreateRequestDTO ¶
type AdminUserCreateRequestDTO struct { Username string `json:"username" validate:"required,min=4,max=64,username"` Password string `json:"password" validate:"max=128"` GenPassword bool `json:"gen_password"` LockPassword bool `json:"lock_password"` Roles []string `json:"roles" validate:"required,userroles"` }
type AdminUserUpdatePasswordRequestDTO ¶
type AdminUserUpdatePasswordRequestDTO struct {
Action string `json:"action"`
}
type AdminUserUpdatePasswordResponseDTO ¶
type AdminUserUpdatePasswordResponseDTO struct {
GeneratedPassword string `json:"generated_password"`
}
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 AgentRegisterRequestDTO ¶
type AgentRegisterRequestDTO struct {
Name string `json:"name" validate:"max=64"`
}
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 AttackTemplateCreateRequestDTO ¶
type AttackTemplateCreateRequestDTO struct { Name string `json:"name" validate:"required,standardname,min=3,max=64"` HashcatParams hashcattypes.HashcatParams `json:"hashcat_params" validate:"required"` }
type AttackTemplateDTO ¶
type AttackTemplateDTO struct { ID string `json:"id"` Type string `json:"type"` Name string `json:"name"` HashcatParams *hashcattypes.HashcatParams `json:"hashcat_params,omitempty"` CreatedByUserID string `json:"created_by_user_id"` AttackTemplateIDs []string `json:"attack_template_ids,omitempty"` }
type AttackTemplateGetAllResponseDTO ¶
type AttackTemplateGetAllResponseDTO struct {
AttackTemplates []AttackTemplateDTO `json:"attack_templates"`
}
type AttackTemplateUpdateRequestDTO ¶
type AttackTemplateUpdateRequestDTO struct { Type string `json:"type"` Name string `json:"name"` HashcatParams *hashcattypes.HashcatParams `json:"hashcat_params,omitempty"` AttackTemplateIDs []string `json:"attack_template_ids,omitempty"` }
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 GetAllListfilesDTO ¶
type GetAllListfilesDTO struct {
Listfiles []ListfileDTO `json:"listfiles"`
}
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 HashlistAppendRequestDTO ¶
type HashlistAppendRequestDTO struct {
Hashes []string `json:"input_hashes" validate:"required,min=1,dive,required,min=4"`
}
type HashlistCreateRequestDTO ¶
type HashlistCreateRequestDTO struct { ProjectID string `json:"project_id" validate:"required,uuid"` Name string `json:"name" validate:"required,standardname,min=3,max=64"` 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 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"` }
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"` AttachedProjectID string `json:"associated_project_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 RunningJobCountPerUsersDTO ¶
type RunningJobCountPerUsersDTO struct {
Result []RunningJobCountForUserDTO `json:"result"`
}
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.