modules

package
v0.0.0-...-947d7b5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NAME_MAP = map[string]string{
	"ms-sql-s":       "mssql",
	"microsoft-ds":   "smbnt",
	"cifs":           "smbnt",
	"postgresql":     "postgres",
	"smtps":          "smtp",
	"submission":     "smtp",
	"imaps":          "imap",
	"pop3s":          "pop3",
	"iss-realsecure": "vmauthd",
	"snmptrap":       "snmp",
	"mysql":          "mysql",
	"vnc":            "vnc",
	"mongod":         "mongodb",
	"textui":         "teamspeak",
	"xmpp-client":    "xmpp",
	"ms-wbt-server":  "rdp",
}

Functions

func CalcCombinations

func CalcCombinations(userCh []string, passCh []string) int

func CalcCombinationsCombo

func CalcCombinationsCombo(userCh []string, passCh []string) int

func CalcCombinationsPass

func CalcCombinationsPass(passCh []string) int

func Contains

func Contains(s []string, e string) bool

func GetPasswordsFromDefaultWordlist

func GetPasswordsFromDefaultWordlist(version string, serviceType string) []string

func GetUsersAndPasswords

func GetUsersAndPasswords(h *Host, user string, password string, version string) ([]string, []string)

func GetUsersAndPasswordsCombo

func GetUsersAndPasswordsCombo(h *Host, combo string, version string) ([]string, []string)

func GetUsersFromDefaultWordlist

func GetUsersFromDefaultWordlist(version string, serviceType string) []string

func IsFile

func IsFile(fileName string) bool

func MapService

func MapService(service string) string

func ParseFile

func ParseFile(filename string) (map[Host]int, error)

func ParseGNMAP

func ParseGNMAP(filename string) (map[Host]int, error)

func ParseJSON

func ParseJSON(filename string) (map[Host]int, error)

func ParseList

func ParseList(filename string) (map[Host]int, error)

func ParseNessus

func ParseNessus(filename string) (map[Host]int, error)

func ParseNexpose

func ParseNexpose(filename string) (map[Host]int, error)

func ParseXML

func ParseXML(filename string) (map[Host]int, error)

func PrintResult

func PrintResult(service string, host string, port int, user string, pass string, result bool, con_result bool, progressCh chan<- int, retrying bool, output string, delayTime time.Duration)

func PrintWarningBeta

func PrintWarningBeta(service string)

func ReadPasswordsFromFile

func ReadPasswordsFromFile(filename string) ([]string, error)

func ReadUsersFromFile

func ReadUsersFromFile(filename string) ([]string, error)

func WriteToFile

func WriteToFile(service string, content string, port int, output string) error

Types

type Host

type Host struct {
	Service string
	Host    string
	Port    int
}

func (*Host) Parse

func (h *Host) Parse(host string) ([]Host, error)

type NessusHost

type NessusHost struct {
	Name  string       `xml:"name,attr"`
	Items []NessusItem `xml:"ReportItem"`
}

type NessusItem

type NessusItem struct {
	Port    string `xml:"port,attr"`
	SvcName string `xml:"svc_name,attr"`
}

type NessusReport

type NessusReport struct {
	Hosts []NessusHost `xml:"Report>ReportHost"`
}

type NexposeEndpoint

type NexposeEndpoint struct {
	Port     string         `xml:"port,attr"`
	Status   string         `xml:"status,attr"`
	Protocol string         `xml:"protocol,attr"`
	Service  NexposeService `xml:"services>service"`
}

type NexposeNode

type NexposeNode struct {
	Address   string            `xml:"address,attr"`
	Endpoints []NexposeEndpoint `xml:"endpoints>endpoint"`
}

type NexposeService

type NexposeService struct {
	Name string `xml:"name,attr"`
}

type NmapAddress

type NmapAddress struct {
	Addr     string `xml:"addr,attr"`
	AddrType string `xml:"addrtype,attr"`
}

type NmapHost

type NmapHost struct {
	Addresses []NmapAddress `xml:"address"`
	Ports     []NmapPort    `xml:"ports>port"`
}

type NmapPort

type NmapPort struct {
	PortId    string      `xml:"portid,attr"`
	Protocol  string      `xml:"protocol,attr"`
	PortState NmapState   `xml:"state"`
	Service   NmapService `xml:"service"`
}

type NmapRun

type NmapRun struct {
	Hosts []NmapHost `xml:"host"`
}

type NmapService

type NmapService struct {
	Name string `xml:"name,attr"`
}

type NmapState

type NmapState struct {
	State string `xml:"state,attr"`
}

Jump to

Keyboard shortcuts

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