imap

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package imap implements IMAP4rev1/IMAP4rev2 mail server enumeration.

Index

Constants

View Source
const (
	DefaultImapPort  = 143
	DefaultImapsPort = 993
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LibraryEnumerateIMAP

type LibraryEnumerateIMAP struct{}

LibraryEnumerateIMAP implements NetworkApplicationLibrary for IMAP enumeration. Mode A only (pre-auth fingerprinting): greeting, CAPABILITY pre/post STARTTLS, advertised SASL mechanisms, TLS cert/cipher. Mode B (auth + folder/message enumeration) lives under `internal/pentest/imap/` and `pentest service imap`.

func (*LibraryEnumerateIMAP) EnumerateTarget

EnumerateTarget performs IMAP enumeration against a single target.

Flow:

  1. Parse target (host:port, default port 143)
  2. Try plain TCP; on failure try implicit TLS (port 993 or any port with TLS)
  3. Run CAPABILITY; detect STARTTLS; upgrade if available
  4. Re-CAPABILITY after TLS upgrade
  5. Detect IMAP version, extract TLS cert info

Jump to

Keyboard shortcuts

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