new: modules enabled by default can now be controlled with the -autostart argument

This commit is contained in:
evilsocket 2018-03-13 14:59:27 +01:00
commit 5727fa3c56
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
3 changed files with 17 additions and 5 deletions

View file

@ -5,6 +5,7 @@ import "flag"
type Options struct {
InterfaceName *string
Caplet *string
AutoStart *string
Debug *bool
Silent *bool
NoColors *bool
@ -18,6 +19,7 @@ type Options struct {
func ParseOptions() (Options, error) {
o := Options{
InterfaceName: flag.String("iface", "", "Network interface to bind to, if empty the default interface will be auto selected."),
AutoStart: flag.String("autostart", "events.stream, net.recon", "Comma separated list of modules to auto start."),
Caplet: flag.String("caplet", "", "Read commands from this file and execute them in the interactive session."),
Debug: flag.Bool("debug", false, "Print debug messages."),
Silent: flag.Bool("silent", false, "Suppress all logs which are not errors."),