cmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Probes = []string{

	"\n",
	"QUIT\r\n",
	"\x1b",

	"HEAD / HTTP/1.0\r\n\r\n",
	"GET / HTTP/1.1\r\nHost: example.com\r\n\r\n",
	"OPTIONS / HTTP/1.0\r\n\r\n",
	"TRACE / HTTP/1.0\r\n\r\n",
	"GET /server-status HTTP/1.1\r\nHost: example.com\r\n\r\n",
	"GET /manager/html HTTP/1.1\r\nHost: example.com\r\n\r\n",

	"EHLO example.com\r\n",
	"HELO example.com\r\n",
	"VRFY root\r\n",
	"EXPN root\r\n",

	"USER anonymous\r\nPASS anonymous\r\n",
	"HELP\r\n",

	"\x53\x53\x48\x2D",

	"\x80\x00\x02\x03",
	"\xfeSMB\r\n",
	"\x00\x83\x01\x00\x00\x00\x00\x00",

	"\x03\x00\x00\x13\x0e\x00\x00\x00",

	"\x03\x00\x00\x00",
	"\x04\x01\x00\x00",
	"Z",
	"\x04\x02\x00\x00",
	"{ping:1}",
	"\x00\x00\x00\x12\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
	"\x40\x00\x00\x00",
	"INFO\r\n",

	"GET /varz HTTP/1.1\r\nHost: example.com\r\n\r\n",
	"GET /metrics HTTP/1.1\r\nHost: example.com\r\n\r\n",
	"GET / HTTP/1.1\r\nHost: etcd.example.com\r\n\r\n",
	"GET /health HTTP/1.1\r\nHost: example.com\r\n\r\n",
	"GET /api/v1/status HTTP/1.1\r\nHost: example.com\r\n\r\n",
	"GET /dashboard HTTP/1.1\r\nHost: example.com\r\n\r\n",

	"GET /ui HTTP/1.1\r\nHost: example.com\r\n\r\n",
	"GET /teamserver HTTP/1.1\r\nHost: example.com\r\n\r\n",
	"GET /status HTTP/1.1\r\nHost: example.com\r\n\r\n",
	"GET /admin HTTP/1.1\r\nHost: example.com\r\n\r\n",

	"GET / HTTP/1.1\r\nHost: zookeeper.example.com\r\n\r\n",
	"GET / HTTP/1.1\r\nHost: consul.example.com\r\n\r\n",
	"\x00\x00\x00\x00\x00\x01\x00\x00stats\r\n",
	"OPTIONS sip:example.com SIP/2.0\r\n\r\n",
}

Probes is a list of payloads used for banner grabbing different services

View Source
var ServiceSignatures = map[string]string{
	"openssh":       "ssh",
	"ssh-":          "ssh",
	"ftp":           "ftp",
	"smtp":          "smtp",
	"postfix":       "smtp",
	"exim":          "smtp",
	"sendmail":      "smtp",
	"pop3":          "pop3",
	"imap":          "imap",
	"mysql":         "mysql",
	"mariadb":       "mysql",
	"redis":         "redis",
	"mongodb":       "mongodb",
	"postgresql":    "postgresql",
	"mssql":         "mssql",
	"oracle":        "oracle",
	"elasticsearch": "elasticsearch",
	"memcached":     "memcached",
	"httpd":         "http",
	"HTTP":          "http",
	"apache":        "http",
	"nginx":         "http",
	"iis":           "http",
	"gunicorn":      "http",
	"tomcat":        "http",
	"jetty":         "http",
	"caddy":         "http",
	"node.js":       "http",
	"cloudflare":    "http",
	"haproxy":       "http",
	"lighttpd":      "http",
	"gws":           "http",
	"php":           "http",
	"waf":           "firewall",
	"ngrok":         "reverse_proxy",
	"cobaltstrike":  "c2",
	"metasploit":    "exploit",
	"vnc":           "vnc",
	"rdp":           "rdp",
	"smb":           "smb",
	"samba":         "smb",
	"winrm":         "winrm",
	"telnet":        "telnet",
	"kerberos":      "kerberos",
	"snmp":          "snmp",
	"cassandra":     "cassandra",
	"docker":        "docker",
	"kubernetes":    "kubernetes",
	"grafana":       "grafana",
	"prometheus":    "prometheus",
	"couchdb":       "couchdb",
	"rabbitmq":      "rabbitmq",
	"zookeeper":     "zookeeper",
	"ldap":          "ldap",
	"ntp":           "ntp",
	"jenkins":       "jenkins",
	"gitlab":        "gitlab",
	"git":           "git",
	"ncat":          "ncat",
	"elite":         "elite",
}

Functions

func Execute

func Execute()

func StoreOutput

func StoreOutput(filename string, content string)

Types

type ScanResult

type ScanResult struct {
	Port    int
	Service string
	Version string
}

ScanResult struct to store scan result details

Jump to

Keyboard shortcuts

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