| 1 | package corescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/ |
| 2 | |
| 3 | import ( |
| 4 | "flagscip-go gomod github.com/golang/go/src go1.16 flag/" |
| 5 | ) |
| 6 | |
| 7 | type Optionsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options# struct { |
| 8 | InterfaceNamescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#InterfaceName. *string |
| 9 | Gatewayscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#Gateway. *string |
| 10 | Capletscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#Caplet. *string |
| 11 | AutoStartscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#AutoStart. *string |
| 12 | Debugscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#Debug. *bool |
| 13 | Silentscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#Silent. *bool |
| 14 | NoColorsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#NoColors. *bool |
| 15 | NoHistoryscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#NoHistory. *bool |
| 16 | PrintVersionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#PrintVersion. *bool |
| 17 | EnvFilescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#EnvFile. *string |
| 18 | Commandsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#Commands. *string |
| 19 | CpuProfilescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#CpuProfile. *string |
| 20 | MemProfilescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#MemProfile. *string |
| 21 | CapletsPathscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#CapletsPath. *string |
| 22 | Scriptscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#Script. *string |
| 23 | PcapBufSizescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#PcapBufSize. *int |
| 24 | } |
| 25 | |
| 26 | func ParseOptionsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/ParseOptions().() (Optionsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#, error) { |
| 27 | o := Optionsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#{ |
| 28 | InterfaceNamescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#InterfaceName.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Stringscip-go gomod github.com/golang/go/src go1.16 flag/String().("iface", "", "Network interface to bind to, if empty the default interface will be auto selected."), |
| 29 | Gatewayscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#Gateway.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Stringscip-go gomod github.com/golang/go/src go1.16 flag/String().("gateway-override", "", "Use the provided IP address instead of the default gateway. If not specified or invalid, the default gateway will be used."), |
| 30 | AutoStartscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#AutoStart.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Stringscip-go gomod github.com/golang/go/src go1.16 flag/String().("autostart", "events.stream", "Comma separated list of modules to auto start."), |
| 31 | Capletscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#Caplet.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Stringscip-go gomod github.com/golang/go/src go1.16 flag/String().("caplet", "", "Read commands from this file and execute them in the interactive session."), |
| 32 | Debugscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#Debug.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Boolscip-go gomod github.com/golang/go/src go1.16 flag/Bool().("debug", false, "Print debug messages."), |
| 33 | PrintVersionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#PrintVersion.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Boolscip-go gomod github.com/golang/go/src go1.16 flag/Bool().("version", false, "Print the version and exit."), |
| 34 | Silentscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#Silent.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Boolscip-go gomod github.com/golang/go/src go1.16 flag/Bool().("silent", false, "Suppress all logs which are not errors."), |
| 35 | NoColorsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#NoColors.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Boolscip-go gomod github.com/golang/go/src go1.16 flag/Bool().("no-colors", false, "Disable output color effects."), |
| 36 | NoHistoryscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#NoHistory.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Boolscip-go gomod github.com/golang/go/src go1.16 flag/Bool().("no-history", false, "Disable interactive session history file."), |
| 37 | EnvFilescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#EnvFile.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Stringscip-go gomod github.com/golang/go/src go1.16 flag/String().("env-file", "", "Load environment variables from this file if found, set to empty to disable environment persistence."), |
| 38 | Commandsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#Commands.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Stringscip-go gomod github.com/golang/go/src go1.16 flag/String().("eval", "", "Run one or more commands separated by ; in the interactive session, used to set variables via command line."), |
| 39 | CpuProfilescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#CpuProfile.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Stringscip-go gomod github.com/golang/go/src go1.16 flag/String().("cpu-profile", "", "Write cpu profile `file`."), |
| 40 | MemProfilescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#MemProfile.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Stringscip-go gomod github.com/golang/go/src go1.16 flag/String().("mem-profile", "", "Write memory profile to `file`."), |
| 41 | CapletsPathscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#CapletsPath.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Stringscip-go gomod github.com/golang/go/src go1.16 flag/String().("caplets-path", "", "Specify an alternative base path for caplets."), |
| 42 | Scriptscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#Script.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Stringscip-go gomod github.com/golang/go/src go1.16 flag/String().("script", "", "Load a session script."), |
| 43 | PcapBufSizescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Options#PcapBufSize.: flagscip-go gomod github.com/golang/go/src go1.16 flag/.Intscip-go gomod github.com/golang/go/src go1.16 flag/Int().("pcap-buf-size", -1, "PCAP buffer size, leave to 0 for the default value."), |
| 44 | } |
| 45 | |
| 46 | flagscip-go gomod github.com/golang/go/src go1.16 flag/.Parsescip-go gomod github.com/golang/go/src go1.16 flag/Parse().() |
| 47 | |
| 48 | return o, nil |
| 49 | } |