Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 2.56 KB

File metadata and controls

61 lines (44 loc) · 2.56 KB

Crackers

(Crackers)

Overview

Crackers API

Available Operations

CheckForCrackerUpdate

Check for a cracker update, based on the operating system and version.

Example Usage

package main

import(
	cipherswarmagentsdkgo "github.com/unclesp1d3r/cipherswarm-agent-sdk-go"
	"context"
	"log"
)

func main() {
    s := cipherswarmagentsdkgo.New(
        cipherswarmagentsdkgo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
    )

    ctx := context.Background()
    res, err := s.Crackers.CheckForCrackerUpdate(ctx, nil, nil)
    if err != nil {
        log.Fatal(err)
    }
    if res.CrackerUpdate != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
operatingSystem *string operating_system
version *string version
opts []operations.Option The options for this request.

Response

*operations.CheckForCrackerUpdateResponse, error

Errors

Error Type Status Code Content Type
sdkerrors.ErrorObject 400 application/json
sdkerrors.SDKError 4XX, 5XX */*