Documentation ¶
Overview ¶
Package storage implements a encrypted storage mechanism for interactsh external interaction data.
Index ¶
- type CorrelationData
- type Storage
- func (s *Storage) AddInteraction(correlationID string, data []byte) error
- func (s *Storage) GetInteractions(correlationID, secret string) ([]string, string, error)
- func (s *Storage) RemoveID(correlationID string) error
- func (s *Storage) SetIDPublicKey(correlationID, secretKey string, publicKey string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CorrelationData ¶
type CorrelationData struct { // data contains data for a correlation-id in AES encrypted json format. Data []string `json:"data"` // AESKey is the AES encryption key in encrypted format. AESKey string `json:"aes-key"` // contains filtered or unexported fields }
CorrelationData is the data for a correlation-id.
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is an storage for interactsh interaction data as well as correlation-id -> rsa-public-key data.
func (*Storage) AddInteraction ¶
AddInteraction adds an interaction data to the correlation ID after encrypting it with Public Key for the provided correlation ID.
func (*Storage) GetInteractions ¶
GetInteractions returns the interactions for a correlationID and removes it from the storage. It also returns AES Encrypted Key for the IDs.
Click to show internal directories.
Click to hide internal directories.