cmd

package
v0.0.0-...-3a6820e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2019 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//DefaultConfigPath represent the default config file. It may be replaced by the user
	// TOFIX : We should check multiple path with a fixed priority (./netm4ul.conf, /etc/netm4ul/netm4ul.conf, ~/.config/netm4ul/netm4ul.conf for example)
	DefaultConfigPath = "netm4ul.conf"
)

Variables

View Source
var (
	//Modes represents the different levels of informations netm4ul will attempts
	// - passive doens'nt do any action on the server
	// - stealth do some information gathering directly on the host and slow down the rate
	// - aggressive perform all the scans and uses an high requests rate
	Modes = []string{"passive", "stealth", "aggressive"}

	// DefaultMode pick mode in case of missing config informations
	DefaultMode = Modes[1] // uses first non-passive mode.

)

Functions

func Execute

func Execute()

Execute is the entrypoint

func GeneratePassword

func GeneratePassword(n int) (string, error)

GeneratePassword returns a new password of len n (1st arg)

Types

type PromptRes

type PromptRes struct {
	Message      string
	DefaultValue string
}

PromptRes represents a question for the user. The message is the question. It may uses a default value for the user to accept (by just pressing enter)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL