flamingo

package
v0.0.0-...-e3ae19d Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: BSD-2-Clause Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const NTLMChallenge = "TlRMTVNTUAACAAAABgAGADgAAAAFAomiESIzRFVmd4gAAAAAAAAAAIAAgAA+AAAABQL" +
	"ODgAAAA9TAE0AQgACAAYARgBUAFAAAQAWAEYAVABQAC0AVABPAE8ATABCAE8AWAAEABIAZgB0AHAA" +
	"LgBsAG8AYwBhAGwAAwAoAHMAZQByAHYAZQByADIAMAAxADYALgBmAHQAYgAuAGwAbwBjAGEAbAAFA" +
	"BIAZgB0AHAALgBsAG8AYwBhAGwAAAAAAA=="

NTLMChallenge is the challenge blob that Responder sends, using 1122334455667788 for easier offline cracking

Variables

View Source
var OutputCleanerNoOp = func() {
	return
}

OutputCleanerNoOp is a do-nothing output cleaner

View Source
var OutputWriterNoOp = func(rec map[string]string) error {
	return nil
}

OutputWriterNoOp is a do-nothing output writer

Functions

func CrackPorts

func CrackPorts(pspec string) ([]int, error)

CrackPorts turns a comma-delimited port list into an array

func IncreaseFileLimit

func IncreaseFileLimit()

IncreaseFileLimit tries to increase our available file limits to the maximum possible

func SSHGenerateRSAKey

func SSHGenerateRSAKey(bits int) ([]byte, error)

SSHGenerateRSAKey generates a new SSH host key

func SpawnDNS

func SpawnDNS(c *ConfDNS) error

SpawnDNS starts a new DNS capture server.

func SpawnFTP

func SpawnFTP(c *ConfFTP) error

SpawnFTP creates a new FTP capture server.

func SpawnHTTP

func SpawnHTTP(c *ConfHTTP) error

SpawnHTTP starts a logging HTTP server

func SpawnLDAP

func SpawnLDAP(c *ConfLDAP) error

SpawnLDAP starts a logging LDAP server

func SpawnSNMP

func SpawnSNMP(c *ConfSNMP) error

SpawnSNMP starts a logging SNMP server

func SpawnSSH

func SpawnSSH(c *ConfSSH) error

SpawnSSH starts a logging SSH server

func ValidPort

func ValidPort(pnum int) bool

ValidPort determines if a port number is valid

Types

type ConfDNS

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

func NewConfDNS() *ConfDNS

NewConfDNS creates a default configuration for the DNS capture server.

func (*ConfDNS) IsShutdown

func (c *ConfDNS) IsShutdown() bool

IsShutdown checks to see if the service is shutting down.

func (*ConfDNS) ServeDNS

func (c *ConfDNS) ServeDNS(w dns.ResponseWriter, req *dns.Msg)

ServeDNS handles DNS requests

func (*ConfDNS) Shutdown

func (c *ConfDNS) Shutdown()

Shutdown flags the service to shut down.

type ConfFTP

type ConfFTP struct {
	BindPort     uint16
	BindHost     string
	RecordWriter *RecordWriter
	// contains filtered or unexported fields
}

ConfFTP holds information for a FTP server.

func NewConfFTP

func NewConfFTP() *ConfFTP

NewConfFTP creates a default configuration for the FTP capture server.

func (*ConfFTP) IsShutdown

func (c *ConfFTP) IsShutdown() bool

IsShutdown checks to see if the service is shutting down.

func (*ConfFTP) Shutdown

func (c *ConfFTP) Shutdown()

Shutdown flags the service to shut 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

func (c *ConfHTTP) IsShutdown() bool

IsShutdown checks to see if the service is shutting down

func (*ConfHTTP) Shutdown

func (c *ConfHTTP) Shutdown()

Shutdown flags the service to shut 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) Bind

func (c *ConfLDAP) Bind(bindDN string, pass string, conn net.Conn) (ldap.LDAPResultCode, error)

Bind captures an LDAP bind request

func (*ConfLDAP) IsShutdown

func (c *ConfLDAP) IsShutdown() bool

IsShutdown checks to see if the service is shutting down

func (*ConfLDAP) Shutdown

func (c *ConfLDAP) Shutdown()

Shutdown flags the service to shut 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

func (c *ConfSNMP) IsShutdown() bool

IsShutdown checks to see if the service is shutting down

func (*ConfSNMP) Shutdown

func (c *ConfSNMP) Shutdown()

Shutdown flags the service to shut 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

func (c *ConfSSH) IsShutdown() bool

IsShutdown checks to see if the service is shutting down

func (*ConfSSH) Shutdown

func (c *ConfSSH) Shutdown()

Shutdown flags the service to shut down

type OutputCleaner

type OutputCleaner func()

OutputCleaner defines a cleanup function for a writer

type OutputWriter

type OutputWriter func(map[string]string) error

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

func (*RecordWriter) Done

func (r *RecordWriter) Done()

Done safely closes the output channel

func (*RecordWriter) Record

func (r *RecordWriter) Record(rtype string, proto string, source string, params map[string]string)

Record writes a credential to the output writers

Jump to

Keyboard shortcuts

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