Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidAddress ¶
IsValidAddress return error when invalid address is provided
func IsValidBytecode ¶
IsValidBytecode return error when invalid bytecode sequence is provided
Types ¶
type Options ¶
type Options struct { // name of the docker image to execute DockerImage string // name of the tool being used ToolName string // number of containers to deploy // this is required for parallel analysis execution using // different workers (containers) MaxContainers uint // flag to indicate if bytecode 0x prefix needs to be removed or not Remove0xPrefix bool // flag to indicate if we need to skip CSV header row SkipHeaderRow bool // function used to parse the results of the analysis Parser func(out []byte) ([][]byte, error) // function used to build the command that triggers the analysis BuildCommand func(containerName string, address string, code string) string // function that returns a pre-defined failed return result in a structured format OnFailedReturn func() ([][]byte, error) // debug flag to enable a more verbose output Debug bool }
Options is a wrapper struct that contains all configurable parameters for specific analysis
func (Options) ValidToolName ¶
ValidToolName returns true when tool name has a valid value Use this check to avoid directory traversing bugs
Click to show internal directories.
Click to hide internal directories.