Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractDCookie ¶
ExtractDCookie extracts and decrypts the 'd' cookie from Slack's cookie database
func FindCookieDBPath ¶
FindCookieDBPath returns the first existing cookie database path
func FindLevelDBPath ¶
FindLevelDBPath returns the first existing LevelDB path
func GetSlackEncryptionKey ¶
GetSlackEncryptionKey retrieves the Slack Safe Storage key from macOS Keychain
Types ¶
type Credentials ¶
type Credentials struct {
Workspaces []WorkspaceToken `json:"workspaces"`
Cookie string `json:"cookie"` // The 'd' cookie, same for all workspaces
}
Credentials holds all extracted Slack credentials
func ExtractCredentials ¶
func ExtractCredentials() (*Credentials, error)
ExtractCredentials extracts all Slack credentials from the local app
type WorkspaceToken ¶
type WorkspaceToken struct {
URL string `json:"url"`
Name string `json:"name"`
Token string `json:"token"`
ID string `json:"id"`
}
WorkspaceToken represents a Slack workspace and its token
func ExtractTokensFromLevelDB ¶
func ExtractTokensFromLevelDB(dbPath string) ([]WorkspaceToken, error)
ExtractTokensFromLevelDB extracts workspace tokens from Slack's LevelDB
Click to show internal directories.
Click to hide internal directories.