common

package
v1.1.17 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TmpOutputfile string
	// TmpSave       bool
	// IsPing        bool
	// IsWmi         bool
	// Ping          bool
	// Pocinfo       PocInfo
	// IsWebCan      bool
	// IsBrute       bool
	// RedisFile     string
	// RedisShell    string
	// Userfile      string
	// Passfile      string
	// HostFile      string
	// PortFile      string
	// PocPath       string
	// Threads       int
	Url string
	// UrlFile       string
	// Urls          []string
	// NoPorts       string
	// NoHosts       string
	// SC            string
	// PortAdd       string
	// UserAdd       string
	// PassAdd       string
	// BruteThread   int
	// LiveTop       int
	ApiPrefix  string
	LogLevel   int
	Proxy      string
	ListFormat bool
	Depth      int
	Keywords   string
)
View Source
var DefaultPorts = "21,22,80,81,135,139,443,445,1433,1521,3306,5432,6379,7001,8000,8080,8089,9000,9200,11211,27017"
View Source
var DirList = []string{"..;/actuator/env", "..;/api-docs", "..;/env", "..;/swagger-ui.html", "..;/v2/api-docs", ".DS_Store", ".git/config", ".git/HEAD", ".git/index", ".svn", "/", "actuator", "actuator/env", "actuator;.js", "admin", "api", "api-docs", "api-docs/", "api-docs/index.html", "api/", "api/actuator", "api/index.html", "api/swagger-resources", "api/swagger-ui.html", "api/v2/api-docs", "apidocs/", "apidocs/index.html", "core/auth/login", "docs/", "docs/index.html", "env", "geoserver/index.html", "jeecg-boot", "mappings", "nacos", "nacos/#/", "service", "services", "site.tar.gz", "swagger-resources", "swagger-ui.html", "swagger/", "swagger/index.html", "v2/api-docs", "web.tar.gz", "www.tar.gz", "xxl-job-admin"}
View Source
var ImportantApi = []string{"/api/v1", "/api/user", "/api/blade-user", "/api/blade-log", "/api/diag", "/api/terminal", "/api/method", "/api/triggerSnapshot", "/api/sys", "/api/system", "/api/userrolelist", "/api/hyper", "/api/dataapp", "/api/clusters", "/api/node", "/api/resourceOperations", "/api/files", "/api/external", "/api/json", "/api/latest", "/api/rest", "/api/Software", "/api/ecode", "/api/group", "/api/project", "/api/interface", "/api/plugin", "/api/v2", "/api/client", "/api/jmeter", "/api/content", "/api/experimental", "/api/portal", "/api/switch-value", "/api/Console", "/api/dp", "/api/ec", "/api/repos", "/api/session", "/api/setup", "/api/v4", "/api/image", "/api/jsonws", "/api/attachment", "/api/empower", "/api/devices", "/api/search", "/api/portalTsLogin", "/api/swagger", "/api/hrm", "/api/virtual", "/api/admin", "/api/settings", "/api/open", "/api/directive", "/api/timelion", "/api/web"}
View Source
var IsSave = true
View Source
var KeywordTop = []string{
	"admin",
}
View Source
var MostSensitiveWebPort = "80,443,8080"
View Source
var NoFinger = "No finger!!"
View Source
var PORTList = map[string]int{
	"ftp":         21,
	"ssh":         22,
	"findnet":     135,
	"netbios":     139,
	"smb":         445,
	"mssql":       1433,
	"oracle":      1521,
	"mysql":       3306,
	"rdp":         3389,
	"psql":        5432,
	"redis":       6379,
	"fcgi":        9000,
	"mem":         11211,
	"mgo":         27017,
	"ms17010":     1000001,
	"cve20200796": 1000002,
	"web":         1000003,
	"webonly":     10000031,
	"all":         0,
	"portscan":    0,
	"icmp":        0,
	"main":        0,
}
View Source
var Passwords = []string{"!@#QWEASD", "!@#QWEASDZXC", "!QAZ2wsx", "0", "00000", "00001", "000000", "00000000", "1", "111111", "12", "123", "123123", "123321", "123456", "123!@#qwe", "123456!a", "1234567", "12345678", "123456789", "1234567890", "123456~a", "123654", "123qwe", "123qwe!@#", "1q2w#E$R", "1q2w3e", "1q2w3e4r", "1qaz!QAZ", "1qaz2wsx", "1qaz2wsx3edc", "1qaz@WSX", "1qaz@wsx#edc", "2wsx@WSX", "654123", "654321", "666666", "8888888", "88888888", "a11111", "a123123", "a12345", "a123456", "a123456.", "A123456s!", "Aa123123", "Aa1234", "Aa1234.", "Aa12345", "Aa12345.", "Aa123456", "Aa123456!", "Aa123456789", "abc123", "abc@123", "abc123456", "admin", "admin01", "admin123", "admin123!@#", "admin@123", "Admin@123", "Change_Me", "Charge123", "manager", "P@ssw0rd", "P@ssw0rd!", "pass123", "pass@123", "Passw0rd", "password", "qazwsxedc", "qwe123", "qwe123!@#", "root", "sa123456", "shell", "sysadmin", "system", "talent", "test", "test01", "test123", "toor", "admin0", "admin1", "admin2", "adminadmin"}
View Source
var Patterns = []string{"@", "_", "#", ""}
View Source
var PrefixTop = []string{
	"@",
	"!",
	"123",
	"_",
}
View Source
var SeparatorTop = []string{
	"!",
	"@",
	"#",
	"$",
	"%",
	"^",
	"&",
	"_",
	".",
	"+",
}
View Source
var SuffixTop = []string{
	"0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
	"00", "000", "0000", "00000", "000000", "01", "001", "02", "03",
	"11", "111", "1111", "11111", "111111",
	"22", "222", "2222", "22222", "222222",
	"66", "666", "6666", "66666", "666666",
	"77", "777", "7777", "77777", "777777",
	"88", "888", "8888", "88888", "888888",
	"99", "999", "9999", "99999", "999999",
	"123", "456", "789",
	"321", "654", "987",
	"147", "258", "369",
	"1234", "12345", "123456", "123654", "654321",
	"123123", "1234567", "12345678", "123456789", "1234567890",
	"98", "9876", "98765", "987654", "369", "147258",
	"admin", "adminn",
	"12345+",
	"12#$", "WSX", "QAZ", "EDC",
	"2wsx", "1qaz", "3edc", "1q2w3e4r", "qwert",
	"#@!", "!@#$", "!@#",
	"ABC", "abc", "qwer",
	"Aa", "aA",
	"Zz", "zZ",
	"Qq", "qQ",
}
View Source
var Userdict = map[string][]string{
	"ftp":        {"ftp", "admin", "www", "web", "root", "db", "wwwroot", "data", "test", "administrator", "anonymous"},
	"mysql":      {"root", "mysql"},
	"mssql":      {"sa", "sql"},
	"smb":        {"administrator", "admin", "guest", "test", "user", "manager", "webadmin", "guest"},
	"rdp":        {"administrator", "admin", "guest"},
	"postgresql": {"postgres", "admin", "test", "web"},
	"ssh":        {"root", "admin", "ubuntu", "kali", "centos"},
	"mongodb":    {"root", "admin", "mongodb", "test", "web"},
	"oracle":     {"sys", "system", "admin", "test", "web", "orcl", "oracle", "root"},
	"mem":        {"admin", "test", "root", "web", "memcached"},
	"vnc":        {"root"},
}
View Source
var Webport = "" /* 1021-byte string literal not displayed */

Functions

func Socks5Dailer

func Socks5Dailer(forward *net.Dialer) (proxy.Dialer, error)

func WrapperTCP

func WrapperTCP(network, address string, forward *net.Dialer) (net.Conn, error)

func WrapperTcpWithTimeout

func WrapperTcpWithTimeout(network, address string, timeout time.Duration) (net.Conn, error)

Types

type HostInfo

type HostInfo struct {
	Url       string
	Proxy     string
	Depth     int
	Keywords  string
	Suffix    string
	Prefix    string
	Separator string
	UrlFile   string
	IconUrl   string
	DirBrute  bool
	Show      bool
	Full      bool
	Variant   bool
}

type PocInfo

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
}

Jump to

Keyboard shortcuts

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