scanner

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunModule added in v1.0.4

func RunModule(domain string, module string, dnsServer string, output ScanOutput, results *models.Results)

Types

type ScanOutput added in v1.0.4

type ScanOutput interface {
	Println(a ...any)
	Printf(format string, a ...any)
}

type Scanner

type Scanner struct {
	Timeout       time.Duration
	MaxConcurrent int
}

Scanner handles port scanning and service detection

func NewScanner

func NewScanner() *Scanner

NewScanner creates a new scanner

func (*Scanner) GetFTPBanner

func (s *Scanner) GetFTPBanner(ip string) (string, error)

GetFTPBanner gets the FTP banner from a server

func (*Scanner) GetHTTPInfo

func (s *Scanner) GetHTTPInfo(ip string, port int, isHTTPS bool) (string, error)

GetHTTPInfo gets HTTP server information

func (*Scanner) GetSSHBanner

func (s *Scanner) GetSSHBanner(ip string) (string, error)

GetSSHBanner gets the SSH banner from a server

func (*Scanner) GetServiceDetails

func (s *Scanner) GetServiceDetails(ip string, port int) string

GetServiceDetails gets details about a service on a specific port

func (*Scanner) GetServiceName

func (s *Scanner) GetServiceName(port int) string

GetServiceName maps a port to a service name

func (*Scanner) PortScan

func (s *Scanner) PortScan(ip string, ports []int) []int

PortScan scans the specified ports on a given IP

type TextOutput added in v1.0.4

type TextOutput struct {
	View *tview.TextView
}

func (*TextOutput) Printf added in v1.0.4

func (t *TextOutput) Printf(format string, a ...any)

func (*TextOutput) Println added in v1.0.4

func (t *TextOutput) Println(a ...any)

Jump to

Keyboard shortcuts

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