Documentation

Overview

Package core contains basic utility functions.

Index

Constants

View Source
const (
	Name    = "bettercap"
	Version = "2.25"
	Author  = "Simone 'evilsocket' Margaritelli"
	Website = "https://bettercap.org/"
)

Variables

This section is empty.

Functions

func Exec

func Exec(executable string, args []string) (string, error)

func HasBinary

func HasBinary(executable string) bool

func Shell

func Shell(cmd string) (string, error)

func UniqueInts

func UniqueInts(a []int, sorted bool) []int

Types

type Options

type Options struct {
	InterfaceName *string
	Gateway       *string
	Caplet        *string
	AutoStart     *string
	Debug         *bool
	Silent        *bool
	NoColors      *bool
	NoHistory     *bool
	PrintVersion  *bool
	EnvFile       *string
	Commands      *string
	CpuProfile    *string
	MemProfile    *string
}

func ParseOptions

func ParseOptions() (Options, error)