MCPcopy Create free account
hub / github.com/Xenov-X/csbot / executeTokenStoreList

Method executeTokenStoreList

workflow/executor_credentials.go:232–246  ·  view source on GitHub ↗

executeTokenStoreList lists all tokens in the token store

(ctx context.Context, client *csclient.Client, beaconID string)

Source from the content-addressed store, hash-verified

230
231// executeTokenStoreList lists all tokens in the token store
232func (e *Executor) executeTokenStoreList(ctx context.Context, client *csclient.Client, beaconID string) (string, error) {
233 resp, err := client.TokenStoreList(ctx, beaconID)
234 if err != nil {
235 return "", err
236 }
237
238 // Format the token list as a string for output
239 output := fmt.Sprintf("Token Store (%d tokens):\n", len(resp.Tokens))
240 for _, token := range resp.Tokens {
241 output += fmt.Sprintf(" ID: %d, PID: %d, User: %s, Time: %s\n",
242 token.ID, token.PID, token.User, token.Timestamp)
243 }
244
245 return output, nil
246}
247
248// executeHashdump dumps password hashes
249func (e *Executor) executeHashdump(ctx context.Context, client *csclient.Client, beaconID string) (string, error) {

Callers 1

executeActionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected