plugins

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config config.Config
	Logger logger.ILogger
)

Functions

func Init

func Init() (config.Config, error)

Types

type PortScan

type PortScan struct {
	Name             string   // Name of the Portscan
	Description      string   // Description of the Portscan
	Type             string   // Type (e.g. TCP or UPD)
	Tags             []string // ['default', 'default-portscan']
	Arguments        []string // Command Arguments to add
	Command          string   // Executeable Command
	TargetAppend     bool     // Append Target String to the end of the Command
	OutputFormat     string
	ArgumentsInPlace bool
}

func LoadPortScanners added in v0.0.3

func LoadPortScanners() []PortScan

func NmapTcpAll

func NmapTcpAll() PortScan

func NmapTcpTop

func NmapTcpTop() PortScan

func NmapUdpTop

func NmapUdpTop() PortScan

func (PortScan) ReplaceInArguments

func (p PortScan) ReplaceInArguments(token, value string) []string

func (PortScan) Run

func (p PortScan) Run(target string) []Service

func (PortScan) TokenizeArguments

func (p PortScan) TokenizeArguments(target string) []string

func (PortScan) TokenizeOutput

func (p PortScan) TokenizeOutput(target string) string

type Service

type Service struct {
	Target   string // Target IP Address or Hostname
	Protocol string // TCP, UDP etc.
	Port     int    // Port Number where the service was found
	Name     string // Name of the service (e.g. http, ssh, ftp, etc.)
	Secure   bool   // Is using secure transportation
	Version  string // The version found (like nginx 1.2.3)
	Scheme   string // The Scheme (http, https, ftp, etc.)
}

type ServiceScan

type ServiceScan struct {
	Name             string   // Name of the ServiceScan
	Description      string   // Description of the ServiceScan
	Type             string   // Type (e.g. TCP or UPD)
	Tags             []string // ['default', 'default-portscan']
	Arguments        []string // Command Arguments to add
	Command          string   // Executeable Command
	TargetAppend     bool     // Append Target String to the end of the Command
	TargetInplace    bool
	TargetFormat     string
	MatchPattern     string
	OutputFormat     string
	OutFile          bool // If the command doesn't offer a default output parameter, we have to write it ourself
	ArgumentsInPlace bool
}

func Dirbuster

func Dirbuster() ServiceScan

func Enum4Linux

func Enum4Linux() ServiceScan

func LoadServiceScanners added in v0.0.3

func LoadServiceScanners() []ServiceScan

func Nikto

func Nikto() ServiceScan

func NmapFtp

func NmapFtp() ServiceScan

func NmapSmb

func NmapSmb() ServiceScan

func Whatweb

func Whatweb() ServiceScan

func (ServiceScan) EnsurePath

func (s ServiceScan) EnsurePath(service Service) (bool, error)

func (ServiceScan) MatchCondition

func (s ServiceScan) MatchCondition(service Service) bool

func (ServiceScan) ReplaceInArguments

func (s ServiceScan) ReplaceInArguments(token, value string) []string

func (ServiceScan) Run

func (s ServiceScan) Run(service Service) (bool, error)

func (ServiceScan) TokenizeArguments

func (s ServiceScan) TokenizeArguments(service Service) []string

func (ServiceScan) TokenizeOutput

func (s ServiceScan) TokenizeOutput(service Service) string

Jump to

Keyboard shortcuts

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