Versions in this module Expand all Collapse all v1 v1.0.6 Jun 14, 2022 v1.0.5 Jun 14, 2022 Changes in this version + type DNSServer struct + TxtRecord string + func NewDNSServer(network string, options *Options) *DNSServer + func (h *DNSServer) ListenAndServe(dnsAlive chan bool) + func (h *DNSServer) ServeDNS(w dns.ResponseWriter, r *dns.Msg) + type DeregisterRequest struct + CorrelationID string + SecretKey string + type FTPServer struct + func NewFTPServer(options *Options) (*FTPServer, error) + func (h *FTPServer) AfterCurDirChanged(ctx *ftpserver.Context, oldCurDir, newCurDir string, err error) + func (h *FTPServer) AfterDirCreated(ctx *ftpserver.Context, dstPath string, err error) + func (h *FTPServer) AfterDirDeleted(ctx *ftpserver.Context, dstPath string, err error) + func (h *FTPServer) AfterFileDeleted(ctx *ftpserver.Context, dstPath string, err error) + func (h *FTPServer) AfterFileDownloaded(ctx *ftpserver.Context, dstPath string, size int64, err error) + func (h *FTPServer) AfterFilePut(ctx *ftpserver.Context, dstPath string, size int64, err error) + func (h *FTPServer) AfterUserLogin(ctx *ftpserver.Context, userName, password string, passMatched bool, err error) + func (h *FTPServer) BeforeChangeCurDir(ctx *ftpserver.Context, oldCurDir, newCurDir string) + func (h *FTPServer) BeforeCreateDir(ctx *ftpserver.Context, dstPath string) + func (h *FTPServer) BeforeDeleteDir(ctx *ftpserver.Context, dstPath string) + func (h *FTPServer) BeforeDeleteFile(ctx *ftpserver.Context, dstPath string) + func (h *FTPServer) BeforeDownloadFile(ctx *ftpserver.Context, dstPath string) + func (h *FTPServer) BeforeLoginUser(ctx *ftpserver.Context, userName string) + func (h *FTPServer) BeforePutFile(ctx *ftpserver.Context, dstPath string) + func (h *FTPServer) Close() + func (h *FTPServer) ListenAndServe(tlsConfig *tls.Config, ftpAlive chan bool) + func (h *FTPServer) Print(sessionID string, message interface{}) + func (h *FTPServer) PrintCommand(sessionID string, command string, params string) + func (h *FTPServer) PrintResponse(sessionID string, code int, message string) + func (h *FTPServer) Printf(sessionID string, format string, v ...interface{}) + type HTTPServer struct + func NewHTTPServer(options *Options) (*HTTPServer, error) + func (h *HTTPServer) ListenAndServe(tlsConfig *tls.Config, httpAlive, httpsAlive chan bool) + type Interaction struct + FullId string + Protocol string + QType string + RawRequest string + RawResponse string + RemoteAddress string + SMTPFrom string + Timestamp time.Time + UniqueID string + type LDAPServer struct + WithLogger bool + func NewLDAPServer(options *Options, withLogger bool) (*LDAPServer, error) + func (ldapServer *LDAPServer) Close() error + func (ldapServer *LDAPServer) Fatal(v ...interface{}) + func (ldapServer *LDAPServer) Fatalf(format string, v ...interface{}) + func (ldapServer *LDAPServer) Fatalln(v ...interface{}) + func (ldapServer *LDAPServer) ListenAndServe(tlsConfig *tls.Config, ldapAlive chan bool) + func (ldapServer *LDAPServer) Panic(v ...interface{}) + func (ldapServer *LDAPServer) Panicf(format string, v ...interface{}) + func (ldapServer *LDAPServer) Panicln(v ...interface{}) + func (ldapServer *LDAPServer) Print(v ...interface{}) + func (ldapServer *LDAPServer) Printf(format string, v ...interface{}) + func (ldapServer *LDAPServer) Println(v ...interface{}) + type NopAuth struct + func (a *NopAuth) CheckPasswd(ctx *ftpserver.Context, name, pass string) (bool, error) + type NopDriver struct + func NewNopDriver(driver ftpserver.Driver) *NopDriver + func (n *NopDriver) DeleteDir(c *ftpserver.Context, s string) error + func (n *NopDriver) DeleteFile(c *ftpserver.Context, s string) error + func (n *NopDriver) GetFile(c *ftpserver.Context, s1 string, k int64) (int64, io.ReadCloser, error) + func (n *NopDriver) ListDir(c *ftpserver.Context, s string, f func(os.FileInfo) error) error + func (n *NopDriver) MakeDir(c *ftpserver.Context, s string) error + func (n *NopDriver) PutFile(c *ftpserver.Context, s string, r io.Reader, k int64) (int64, error) + func (n *NopDriver) Rename(c *ftpserver.Context, s1 string, s2 string) error + func (n *NopDriver) Stat(c *ftpserver.Context, s string) (os.FileInfo, error) + type Options struct + ACMEStore *acme.Provider + Auth bool + CertificatePath string + CorrelationIdLength int + CorrelationIdNonceLength int + DnsPort int + Domain string + FTPDirectory string + FtpPort int + Hostmaster string + HttpPort int + HttpsPort int + IPAddress string + LdapPort int + ListenIP string + OriginURL string + PrivateKeyPath string + RootTLD bool + ScanEverywhere bool + SmbPort int + SmtpAutoTLSPort int + SmtpPort int + SmtpsPort int + Storage *storage.Storage + Token string + func (options *Options) GetIdLength() int + func (options *Options) URLReflection(URL string) string + type PollResponse struct + AESKey string + Data []string + Extra []string + TLDData []string + type RegisterRequest struct + CorrelationID string + PublicKey string + SecretKey string + type ResponderServer struct + LogFile string + func NewResponderServer(options *Options) (*ResponderServer, error) + func (h *ResponderServer) Close() + func (h *ResponderServer) ListenAndServe(responderAlive chan bool) error + type SMBServer struct + LogFile string + func NewSMBServer(options *Options) (*SMBServer, error) + func (h *SMBServer) Close() + func (h *SMBServer) ListenAndServe(smbAlive chan bool) error + type SMTPServer struct + func NewSMTPServer(options *Options) (*SMTPServer, error) + func (h *SMTPServer) ListenAndServe(tlsConfig *tls.Config, smtpAlive, smtpsAlive chan bool)