checks/ftpanon¶
import "github.com/nuqs-org/nuqs/checks/ftpanon"
Package ftpanon checks if an FTP server lets anyone log in as "anonymous".
This is a "login probe" check. It logs in with the public anonymous account, reads the reply and logs out. It doesn't list, read or write files.
Types¶
Check¶
Check reports FTP servers that accept anonymous logins.
type Check struct{}
Defined in checks/ftpanon/ftpanon.go:25
Check.Info¶
Info describes the check.
func (Check) Info() check.Info
Defined in checks/ftpanon/ftpanon.go:28
Check.Run¶
Run tries the anonymous login. It returns a finding on reply 230 (logged in) and nil when the server says no.
func (Check) Run(ctx context.Context, t check.Target) (*check.Result, error)
Defined in checks/ftpanon/ftpanon.go:41