Documentation ¶
Index ¶
- Constants
- Variables
- func CrackPorts(pspec string) ([]int, error)
- func SSHGenerateRSAKey(bits int) ([]byte, error)
- func SpawnDNS(c *ConfDNS) error
- func SpawnHTTP(c *ConfHTTP) error
- func SpawnLDAP(c *ConfLDAP) error
- func SpawnSNMP(c *ConfSNMP) error
- func SpawnSSH(c *ConfSSH) error
- func ValidPort(pnum int) bool
- type ConfDNS
- type ConfHTTP
- type ConfLDAP
- type ConfSNMP
- type ConfSSH
- type OutputCleaner
- type OutputWriter
- type RecordWriter
Constants ¶
const NTLMChallenge = "TlRMTVNTUAACAAAABgAGADgAAAAFAomiESIzRFVmd4gAAAAAAAAAAIAAgAA+AAAABQL" +
"ODgAAAA9TAE0AQgACAAYARgBUAFAAAQAWAEYAVABQAC0AVABPAE8ATABCAE8AWAAEABIAZgB0AHAA" +
"LgBsAG8AYwBhAGwAAwAoAHMAZQByAHYAZQByADIAMAAxADYALgBmAHQAYgAuAGwAbwBjAGEAbAAFA" +
"BIAZgB0AHAALgBsAG8AYwBhAGwAAAAAAA=="
NTLMChallenge is the challenge blob that Responder sends, using 1122334455667788 for easier offline cracking
Variables ¶
var OutputCleanerNoOp = func() {
return
}
OutputCleanerNoOp is a do-nothing output cleaner
var OutputWriterNoOp = func(rec map[string]string) error { return nil }
OutputWriterNoOp is a do-nothing output writer
Functions ¶
func CrackPorts ¶
CrackPorts turns a comma-delimited port list into an array
func SSHGenerateRSAKey ¶
SSHGenerateRSAKey generates a new SSH host key
Types ¶
type ConfDNS ¶ added in v0.0.7
type ConfDNS struct { BindPort uint16 BindHost string // Network only supports UDP for now. Network string ResolveToIP string RecordWriter *RecordWriter // contains filtered or unexported fields }
ConfDNS describes the configuration of the dns service
func NewConfDNS ¶ added in v0.0.7
func NewConfDNS() *ConfDNS
NewConfDNS creates a default configuration for the DNS capture server.
func (*ConfDNS) IsShutdown ¶ added in v0.0.7
IsShutdown checks to see if the service is shutting down.
type ConfHTTP ¶
type ConfHTTP struct { BindPort uint16 BindHost string BasicRealm string AuthMode string RecordWriter *RecordWriter TLS bool TLSName string TLSCert string TLSKey string // contains filtered or unexported fields }
ConfHTTP describes the options for a HTTP service
func NewConfHTTP ¶
func NewConfHTTP() *ConfHTTP
NewConfHTTP creates a default configuration for the HTTP capture server
func (*ConfHTTP) IsShutdown ¶
IsShutdown checks to see if the service is shutting down
type ConfLDAP ¶
type ConfLDAP struct { BindPort uint16 BindHost string RecordWriter *RecordWriter TLS bool TLSName string TLSCert string TLSKey string // contains filtered or unexported fields }
ConfLDAP describes the options for a LDAP service
func NewConfLDAP ¶
func NewConfLDAP() *ConfLDAP
NewConfLDAP creates a default configuration for the LDAP capture server
func (*ConfLDAP) IsShutdown ¶
IsShutdown checks to see if the service is shutting down
type ConfSNMP ¶
type ConfSNMP struct { BindPort uint16 BindHost string RecordWriter *RecordWriter // contains filtered or unexported fields }
ConfSNMP describes the options for a snmp service
func NewConfSNMP ¶
func NewConfSNMP() *ConfSNMP
NewConfSNMP creates a default configuration for the SNMP capture server
func (*ConfSNMP) IsShutdown ¶
IsShutdown checks to see if the service is shutting down
type ConfSSH ¶
type ConfSSH struct { PrivateKey string BindPort uint16 BindHost string RecordWriter *RecordWriter ServerConfig *ssh.ServerConfig // contains filtered or unexported fields }
ConfSSH describes the options for a ssh service
func NewConfSSH ¶
func NewConfSSH() *ConfSSH
NewConfSSH creates a default configuration for the SSH capture server
func (*ConfSSH) IsShutdown ¶
IsShutdown checks to see if the service is shutting down
type OutputCleaner ¶
type OutputCleaner func()
OutputCleaner defines a cleanup function for a writer
type OutputWriter ¶
OutputWriter defines a function for writing results
type RecordWriter ¶
type RecordWriter struct { OutputWriters []OutputWriter OutputCleaners []OutputCleaner // contains filtered or unexported fields }
RecordWriter is used to store acquired credentials
func NewRecordWriter ¶
func NewRecordWriter() *RecordWriter
NewRecordWriter initializes a new record writer