sharedlib

package
v1.0.1-0...-849c398 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: CC0-1.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FWrulesByPort = make(map[string][]FWrules)
View Source
var InterfaceNames = []string{}
View Source
var InterfacesByName = make(map[string]InterfaceData)
View Source
var ListenersByPort = make(map[string][]Listener)
View Source
var ListenersByRow = make([]Listener, 0)
View Source
var NmapResults = make([]NmapFile, 0)
View Source
var RouteTable = make([]RouteEntry, 0)

Functions

func GetFQDN

func GetFQDN() (string, error)

func GetInterfaces

func GetInterfaces(filewrite bool) map[string]InterfaceData

func JsonDump

func JsonDump(i interface{}, fn string)

func ProcessListeners

func ProcessListeners(ssdata []string)

func ProcessNMAP

func ProcessNMAP(nmapdata []string, filename string)

func ProcessRoutes

func ProcessRoutes(RouteData []string)

func ProcessUFW

func ProcessUFW(ufwdata []string)

func ReadFile

func ReadFile(filePath string) (result []string)

func ReadListenerFile

func ReadListenerFile(filePath string) []string

func ReadListenerProc

func ReadListenerProc() []string

func ReadNMAPFile

func ReadNMAPFile(filePath string) []string

func ReadPipe

func ReadPipe(args ...string) (result []string)

func ReadRoutesProc

func ReadRoutesProc() []string

func ReadUFWFile

func ReadUFWFile(filePath string) []string

func ReadUFWProc

func ReadUFWProc() []string

func SuggestNmapLocations

func SuggestNmapLocations()

Types

type FWrules

type FWrules struct {
	IPversion    string
	Port         string
	Proto        string
	Intfaces     []string
	IP_to        string
	IP_from      string
	Ruletype     string
	Comment      string
	OriginalText string
}

type InterfaceData

type InterfaceData struct {
	Name        string
	V4addresses []string
	V6addresses []string
}

type Listener

type Listener struct {
	IPversion       string
	Proto           string
	IP              string
	Port            string
	Bound2interface string
	OriginalText    string
}

type Nmap

type Nmap struct {
	Proto  string
	Port   string
	Status string
}

type NmapFile

type NmapFile struct {
	Filename  string
	IPversion string
	IPScanned string
	IPFrom    string
	Nmap
}

type RouteEntry

type RouteEntry struct {
	Dest      string
	Gateway   string
	Interface string
}

Jump to

Keyboard shortcuts

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