discovery

package
v0.0.0-...-e5dbda4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

type Discovery struct {
	APs     []AP.AP     `json:"aps"`
	Clients []AP.Client `json:"clients"`
	Running bool        `json:"running"`
	Started string      `json:"started at"`
	Stopped string      `json:"stopped at"`
	// contains filtered or unexported fields
}

JSON exportable structs Full discovery

func StartDiscovery

func StartDiscovery(iface string) (Discovery, error)

Start a new discovery thanks to airodump-ng iface MUST be the name of valid monitor mode iface it will create a temp file named "discovery-01.csv", if it exist, it will be deleted! Return a Discovery object

func (*Discovery) Parse

func (d *Discovery) Parse() error

THE most important function: parse /tmp/discovery-01.csv and fill the structs Might be nice to run as a goroutine... IDEA: parallelise the parsing with 2 goroutines

func (*Discovery) Stop

func (d *Discovery) Stop() error

Stop the discovery...

Jump to

Keyboard shortcuts

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