Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
KnownHostsPath string
)
Functions ¶
func GenerateCombination ¶
func GenerateCombination(ip string, user string, conf *MainConfig) (combinations chan []interface{})
GenerateCombination Generate objects for all port, user, and password combinations
func UpdateConfig ¶
func UpdateConfig(conf *MainConfig) (writeRes bool)
Types ¶
type MainConfig ¶
type MainConfig struct {
Main struct {
Ports []string `yaml:"ports,flow"`
Users []string `yaml:"users,flow"`
Passwords []string `yaml:"passwords,flow"`
Keys []string `yaml:"keys,flow"`
} `yaml:"main"`
ServerLists []ServerListConfig `yaml:"serverList"`
}
MainConfig Main config
func LoadConfig ¶
func LoadConfig() (c *MainConfig)
type ServerListConfig ¶
type ServerListConfig struct {
Ip string `yaml:"ip"`
Port string `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
Key string `yaml:"key"`
Alias string `yaml:"alias"`
}
ServerListConfig Server information cache list
func SelectServerCache ¶
func SelectServerCache(user string, ip string, conf *MainConfig) (*ServerListConfig, int, bool)
SelectServerCache Search cache from server list
Click to show internal directories.
Click to hide internal directories.