Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ArturSS7/TukTuk
/ functions
Functions
177 in github.com/ArturSS7/TukTuk
⨍
Functions
177
◇
Types & classes
47
↓ 1 callers
Function
readDB
(tableName string, db *sql.DB, id int64)
telegrambot/telegrambot.go:61
↓ 1 callers
Method
respond
(s string)
plaintcplistener/tcp.go:128
↓ 1 callers
Function
saveToken
Saves a token to a file path.
emailalert/emailalert.go:82
↓ 1 callers
Method
serve
(db *sql.DB)
ftplistener/ftp.go:61
↓ 1 callers
Method
serve
(db *sql.DB, message string, port string)
plaintcplistener/tcp.go:54
↓ 1 callers
Function
startServer
()
dnslistener/dns.go:47
↓ 1 callers
Function
tokenFromFile
Retrieves a token from a local file.
emailalert/emailalert.go:70
Method
AnonymousLogin
AnonymousLogin requires clients to authenticate using SMTP AUTH before sending emails
smtplistener/smtp.go:25
Function
BotSendAlert
(data, source_ip, time, ProtocolName string, id int64)
discordbot/discordbot.go:14
Function
BotSendAlert
(data, source_ip, time, ProtocolName string, id int64)
telegrambot/telegrambot.go:29
Function
BotSendAlert_BD
BotSendAlert_BD function start the bot and sends the message read from the database
telegrambot/telegrambot.go:49
Function
BotStart
BotStart Start Telegram Bot
telegrambot/telegrambot.go:23
Method
Close
()
smtplistener/smtpserver/client.go:376
Function
Connect
()
database/db.go:19
Function
ConvertData
(r io.Reader)
smtplistener/smtpserver/conn.go:671
Method
Data
(r io.Reader)
smtplistener/smtp.go:42
Method
Data
Data issues a DATA command to the server and returns a writer that can be used to write the mail headers and body. The caller should close the writer
smtplistener/smtpserver/client.go:414
Function
DialTLS
DialTLS returns a new Client connected to an SMTP server via TLS at addr. The addr must include a port, as in "mail.example.com:smtps".
smtplistener/smtpserver/client.go:56
Function
EmailAlertStart
(Enabled_ bool, to_ string)
emailalert/emailalert.go:22
Method
EnableAuth
EnableAuth enables an authentication mechanism on this server. This function should not be called directly, it must only be used by libraries impleme
smtplistener/smtpserver/server.go:257
Method
ForEachConn
ForEachConn iterates through all opened connections.
smtplistener/smtpserver/server.go:262
Function
HandlerTCP
(w dns.ResponseWriter, req *dns.Msg)
dnslistener/dns.go:80
Function
HandlerUDP
(w dns.ResponseWriter, req *dns.Msg)
dnslistener/dns.go:84
Method
Hello
Hello sends a HELO or EHLO to the server as the given host name. Calling this method is only necessary if the client needs control over the host name
smtplistener/smtpserver/client.go:131
Method
LMTPData
LMTPData is the LMTP-specific version of the Data method. It accepts a callback that will be called for each status response received from the server.
smtplistener/smtpserver/client.go:430
Method
ListenAndServeTLS
ListenAndServeTLS listens on the TCP network address s.Addr and then calls Serve to handle requests on incoming TLS connections. If s.Addr is blank,
smtplistener/smtpserver/server.go:207
Method
Login
Login handles a login command with username and password.
smtplistener/smtp.go:17
Method
Logout
()
smtplistener/smtp.go:54
Method
Mail
(from string, opts smtp.MailOptions)
smtplistener/smtp.go:32
Method
Mail
Mail issues a MAIL command to the server using the provided email address. If the server supports the 8BITMIME extension, Mail adds the BODY=8BITMIME
smtplistener/smtpserver/client.go:316
Function
NewClientLMTP
NewClientLMTP returns a new LMTP Client (as defined in RFC 2033) using an existing connector and host as a server name to be used when authenticating.
smtplistener/smtpserver/client.go:98
Function
NewServer
New creates a new SMTP server.
smtplistener/smtpserver/server.go:78
Method
Noop
Noop sends the NOOP command to the server. It does nothing but check that the connection to the server is okay.
smtplistener/smtpserver/client.go:547
Method
Rcpt
(to string)
smtplistener/smtp.go:37
Method
Rcpt
Rcpt issues a RCPT command to the server using the provided email address. A call to Rcpt must be preceded by a call to Mail and may be followed by a
smtplistener/smtpserver/client.go:359
Method
Read
(b []byte)
smtplistener/smtpserver/lengthlimit_reader.go:21
Method
Reject
()
smtplistener/smtpserver/conn.go:952
Method
Reset
()
smtplistener/smtp.go:52
Method
Reset
Reset sends the RSET command to the server, aborting the current mail transaction.
smtplistener/smtpserver/client.go:534
Function
SendEmailAlert
(subject, msg string)
emailalert/emailalert.go:117
Function
SendMail
nil, except for tests SendMail connects to the server at addr, switches to TLS if possible, authenticates with the optional mechanism a if possible, a
smtplistener/smtpserver/client.go:463
Method
SetStatus
(rcptTo string, err error)
smtplistener/smtpserver/conn.go:876
Function
StartBack
start backend
backend/backend.go:46
Function
StartDNS
(Domain string)
dnslistener/dns.go:36
Function
StartFTP
(db *sql.DB)
ftplistener/ftp.go:32
Function
StartHTTP
start http server
httplistener/http.go:23
Function
StartHTTPS
same as https, just added cert
httpslistener/https.go:24
Function
StartInit
StartInit domain and alert from Config.json.example
config/config.go:17
Function
StartLDAP
(domain string)
ldaplistener/ldap.go:18
Function
StartSMBAccept
(db *sql.DB)
smblistener/smb.go:19
Function
StartSMTP
(db *sql.DB, Domain string)
smtplistener/smtp.go:58
Function
StartTCP
(db *sql.DB, message string, port string)
plaintcplistener/tcp.go:25
Method
Stop
()
plaintcplistener/tcp.go:48
Method
TLSConnectionState
TLSConnectionState returns the client's TLS connection state. The return values are their zero values if StartTLS did not succeed.
smtplistener/smtpserver/client.go:233
Method
Temporary
()
smtplistener/smtpserver/data.go:35
Method
Verify
Verify checks the validity of an email address on the server. If Verify returns nil, the address is valid. A non-nil return does not necessarily indic
smtplistener/smtpserver/client.go:247
Function
acceptSMB
(c echo.Context)
smblistener/smb.go:32
Function
deleteDomain
(c echo.Context)
backend/dns.go:115
Function
generateDomain
(c echo.Context)
backend/dns.go:22
Function
getAvailableDomains
(c echo.Context)
backend/dns.go:75
Function
getRequest
(c echo.Context)
backend/backend.go:135
Function
getRequests
handler for getting requests from database
backend/backend.go:93
Function
getRunningTCPServers
(c echo.Context)
backend/tcp.go:122
Function
getTCPResults
(c echo.Context)
backend/tcp.go:64
Function
handleBind
handleBind return Success if login == mysql
ldaplistener/ldap.go:43
Function
handleHTTP
handler for http requests we make request to look as it should and store it in the database unfortunately i found no way to dump raw request with echo
httplistener/http.go:47
Function
handleHTTPS
(c echo.Context)
httpslistener/https.go:46
Function
handleLogin
(c echo.Context)
backend/login.go:25
Function
loginPage
(c echo.Context)
backend/login.go:17
Function
loginRequired
(next echo.HandlerFunc)
backend/login.go:51
Function
main
()
main.go:17
Function
shutdownFTP
(c echo.Context)
backend/ftp.go:34
Function
startFTP
(c echo.Context)
backend/ftp.go:11
Function
startPlainTCP
(c echo.Context)
backend/tcp.go:23
Function
startSMBServer
(c echo.Context)
backend/smb.go:11
Function
stopSMBServer
(c echo.Context)
backend/smb.go:32
Function
stopTCPServer
(c echo.Context)
backend/tcp.go:93
← previous
101–177 of 177, ranked by callers