scan

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "scan",
	Short: "Perform scanning functions",
	Long:  scanLongDesc,
	PersistentPreRun: func(cmd *cobra.Command, args []string) {

		bandwidth := viper.GetString("PingScanBandwidth")

		if err := validation.ValidateScanBandwidth(bandwidth); err != nil {
			logging.ErrorF(err)
		}

		targetNetwork := viper.GetString("ScanTargetNetwork")

		if err := validation.ValidateIPv6NetworkString(targetNetwork); err != nil {
			logging.ErrorF(err)
		}

		_, err := config.GetTargetNetwork()
		if err != nil {
			logging.ErrorF(err)
		}

		if runtime.GOOS != "linux" {
			logging.ErrorStringFf("%s is not a supported platform - ipv666's scanning tools only work on Linux systems", runtime.GOOS)
		}

	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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