parser

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const VERSION = "0.2.3"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProjectsPath string `yaml:"projects_path"`
	ServicesFile string `yaml:"services_file,omitempty"`
	HostMapping  string `yaml:"host_mapping,omitempty"`
}

type Host

type Host struct {
	IP              string   `json:"ip"`
	Name            string   `json:"hostname"`
	Ports           []Port   `json:"ports"`
	AssociatedNames []string `json:"associatedNames"`
}

type NmapParser

type NmapParser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(options *Options) (*NmapParser, error)

func (*NmapParser) Parse

func (p *NmapParser) Parse() error

type Options

type Options struct {
	SettingsFile string
	Project      string
	ServiceJSON  bool
	HTTPDomains  bool
	All          bool
	BaseFolder   string
	Silent       bool
	Version      bool
	NoColor      bool
	Verbose      bool
}

func ParseOptions

func ParseOptions() *Options

ParseOptions parses the command line flags provided by a user

type Port

type Port struct {
	Number   string `json:"port"`
	Protocol string `json:"protocol"`
}

type Project

type Project struct {
	Name string `yaml:"name"`
}

type Service

type Service struct {
	IP       string `json:"ip"`
	Port     string `json:"port"`
	Protocol string `json:"protocol"`
	Service  string `json:"service"`
}

Jump to

Keyboard shortcuts

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