plugins

package
v0.0.0-...-3ab8517 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NegotiateSMBv1Mesg1 = []byte{}/* 137 elements not displayed */

	NegotiateSMBv1Mesg2 = []byte{}/* 270 elements not displayed */

	NetBIOS_ITEM_TYPE = map[string]string{
		"\x01\x00": "NetBiosComputerName",
		"\x02\x00": "NetBiosDomainName",
		"\x03\x00": "ComputerName",
		"\x04\x00": "DomainName",
		"\x05\x00": "DNS tree name",
		"\x07\x00": "Time stamp",
	}
)

Functions

func AddIPCheck

func AddIPCheck(ips *[]string, thread *int)

func AddPortCheck

func AddPortCheck(ips *[]string, thread *int) []string

func AllFunc

func AllFunc(ipd, ports *string, noPing, noWeb, noBrute *bool, thread *int)

func BasicAuth

func BasicAuth(url1, user, pass string) (result bool, err error)

func BasicAuthBrute

func BasicAuthBrute(Target string)

func BruteService

func BruteService(user, pass string, ipd *string, service *string, p1 string, thread *int)

func ConvertToString

func ConvertToString(src string, srcCode string, tagCode string) string

func DecodeData

func DecodeData(s string) ([]byte, error)

func DecodePattern

func DecodePattern(s string) ([]byte, error)

func DetectFunc

func DetectFunc(ipd *string, noPing, NoWebDetect *bool, port *string, thread *int)

func GetProbes

func GetProbes(aliveHosts *[]string, thread *int) []string

func SubAliveFunc

func SubAliveFunc(ips *[]string, thread *int, res *[]string)

Types

type Directive

type Directive struct {
	DirectiveName string
	Flag          string
	Delimiter     string
	DirectiveStr  string
}

type Extras

type Extras struct {
	VendorProduct   string
	Version         string
	Info            string
	Hostname        string
	OperatingSystem string
	DeviceType      string
	CPE             string
	Sign            string
	StatusCode      int
	ServiceURL      string
}

type HostPort

type HostPort struct {
	Host string
	Port string
}

type HttpInfo

type HttpInfo struct {
	ServiceURL   string
	StatusCode   int
	ServerBanner string
	ServerSign   string
}

type Match

type Match struct {
	IsSoft bool

	Service     string
	Pattern     string
	VersionInfo string

	PatternCompiled *regexp.Regexp
}

func (*Match) MatchPattern

func (m *Match) MatchPattern(response []byte) (matched bool)

func (*Match) ParseVersionInfo

func (m *Match) ParseVersionInfo(response []byte) Extras

type Probe

type Probe struct {
	Name     string
	Data     string
	Protocol string

	Ports    string
	SSLPorts string

	TotalWaitMS  int
	TCPWrappedMS int
	Rarity       int
	Fallback     string

	Matchs *[]Match
}

func (*Probe) ContainsPort

func (p *Probe) ContainsPort(testPort int) bool

type ProbesRarity

type ProbesRarity []Probe

func (ProbesRarity) Len

func (ps ProbesRarity) Len() int

func (ProbesRarity) Less

func (ps ProbesRarity) Less(i, j int) bool

func (ProbesRarity) Swap

func (ps ProbesRarity) Swap(i, j int)

type Result

type Result struct {
	Target
	Service

	Error string
}

type ServResult

type ServResult struct {
	FTP []string
	SSH []string
}

type Service

type Service struct {
	Name   string
	Banner string

	Extras
}

type T1

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

type Target

type Target struct {
	IP       string
	Port     int
	Protocol string
}

func (*Target) GetAddress

func (t *Target) GetAddress() string

type Task

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

type VScan

type VScan struct {
	Exclude string

	Probes []Probe

	ProbesMapKName map[string]Probe
}

func (*VScan) Explore

func (v *VScan) Explore(addr string) (Result, error)

func (*VScan) Init

func (v *VScan) Init()

func (*VScan) Tagetsacn

func (v *VScan) Tagetsacn(addr []string, thread int) []string

Jump to

Keyboard shortcuts

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