Documentation ¶
Index ¶
- Constants
- Variables
- func AddToIntSlice(base, v int, inp []int) ([]int, int)
- func BigIntToBytes(alph Alphabet, bigInt *big.Int, l int) ([]byte, bool)
- func BytesToBigInt(alph Alphabet, inp []byte) *big.Int
- func BytesToIntSlice(alph Alphabet, inp []byte) []int
- func EmptyChan(c chan int)
- func IntSliceToBytes(alph Alphabet, inp []int) []byte
- func Min(a, b int) int
- func ReverseArray(arr []byte) []byte
- func TestEqBytes(a, b []byte) bool
- func TestEqInts(a, b []int) bool
- type Algorithm
- type Alphabet
- type Heartbeat
- type Job
- type Status
- type Task
- type TaskStatus
Constants ¶
View Source
const ( Protocol = "http://" BodyType = "application/json" TasksCreatePath = "/tasks/create" JobsKillPath = "/jobs/kill" JobsCreatePath = "/jobs/create" HeartbeatPath = "/heartbeat" StatusPath = "/cong" SlaveARN = "arn:aws:iam::415077340068:instance-profile/SlaveTheRipper" SlaveRole = "SlaveTheRipper" SlaveImage = "ami-dd713aae" // ami-7abd0209: CentOS 7 (x86_64) - with Updates HVM for EU (Ireland) SlaveType = "t2.micro" MasterARN = "arn:aws:iam::415077340068:instance-profile/MasterTheRipper" MasterRole = "MasterTheRipper" AWSRegion = "eu-west-1" // TODO consider removing this constraint so that our system can be used in heterogeneous clusters MaxSlotsPerInstance = 2 RequestTimeout = 5 * time.Second HeartbeatInterval = 5 * time.Second )
Global configuration
Variables ¶
View Source
var Alphabets [][]byte
Alphabets contains the set of all candidate characters for every alphabet
Functions ¶
func AddToIntSlice ¶
AddToIntSlice is DEPRECATED
func BigIntToBytes ¶
note that the input is consumed
func BytesToIntSlice ¶
BytesToIntSlice is DEPRECATED
func IntSliceToBytes ¶
IntSliceToBytes is DEPRECATED
func ReverseArray ¶
func TestEqBytes ¶
func TestEqInts ¶
TestEqInts tests the equality between two int slices
Types ¶
type Alphabet ¶
type Alphabet int
Alphabet
func (Alphabet) FinalCandidate ¶
func (Alphabet) InitialCandidate ¶
type Heartbeat ¶
type Heartbeat struct {
TaskStatus []TaskStatus
}
type Job ¶
type Job struct { Salt []byte Digest []byte KeyLen int Iter int Alphabet Alphabet Algorithm Algorithm }
Job is the customer facing resource representing a single password cracking job we focus on PBKDF2 first with SHA256 first
Click to show internal directories.
Click to hide internal directories.