package common

var Userdict = map[string][]string{
	"ftp":        {"www", "admin", "root", "db", "wwwroot", "data", "web", "ftp"},
	"mysql":      {"root"},
	"mssql":      {"root", "sa"},
	"smb":        {"administrator", "guest"},
	"postgresql": {"postgres", "admin"},
	"ssh":        {"root", "admin"},
	"mongodb":    {"root", "admin"},
}

var Passwords = []string{"admin123A", "admin123", "123456", "admin", "root", "password", "123123", "654321", "123", "1", "admin@123", "Admin@123", "{user}", "{user}123", "", "P@ssw0rd!", "qwa123", "12345678", "test", "123qwe!@#", "123456789", "123321", "666666", "fuckyou", "000000", "1234567890", "8888888", "qwerty", "1qaz2wsx", "abc123", "abc123456", "1qaz@WSX", "Aa123456", "sysadmin", "system", "huawei"}

var PORTList = map[string]int{
	"ftp":         21,
	"ssh":         22,
	"mem":         11211,
	"mgo":         27017,
	"mssql":       1433,
	"psql":        5432,
	"redis":       6379,
	"mysql":       3306,
	"smb":         445,
	"ms17010":     1000001,
	"cve20200796": 1000002,
	"webtitle":    1000003,
	"elastic":     9200,
	"findnet":     135,
	"all":         0,
	"portscan":    0,
	"icmp":        0,
}

var PortlistBack = map[string]int{
	"ftp":         21,
	"ssh":         22,
	"mem":         11211,
	"mgo":         27017,
	"mssql":       1433,
	"psql":        5432,
	"redis":       6379,
	"mysql":       3306,
	"smb":         445,
	"ms17010":     1000001,
	"cve20200796": 1000002,
	"webtitle":    1000003,
	"elastic":     9200,
	"findnet":     135,
	"all":         0,
	"portscan":    0,
	"icmp":        0,
}

var Outputfile = getpath() + "result.txt"
var IsSave = true

var DefaultPorts = "21,22,80,81,135,443,445,1433,3306,5432,6379,7001,8000,8080,8089,9200,11211,27017"

type HostInfo struct {
	Host       string
	Ports      string
	Domain     string
	Url        string
	Timeout    int64
	WebTimeout int64
	Scantype   string
	Command    string
	Username   string
	Password   string
	Usernames  []string
	Passwords  []string
}

type PocInfo struct {
	Num        int
	Rate       int
	Timeout    int64
	Proxy      string
	PocName    string
	PocDir     string
	Target     string
	TargetFile string
	RawFile    string
	Cookie     string
	ForceSSL   bool
	ApiKey     string
	CeyeDomain string
}

var TmpOutputfile string
var TmpSave bool
var IsPing bool
var Ping bool
var Pocinfo PocInfo
var IsWebCan bool
var RedisFile string
var RedisShell string
var Userfile string
var Passfile string
var HostFile string
var Threads int
