πŸ““
Sfoffo - Pentesting Notes
View on GitHub
  • 🏠/home/sfoffo/.pt-notes
  • 🏳️Contributions
    • 2024 Contributions
      • CVE-2024-42845
      • CVE-2024-41819
      • CVE-2024-41943
      • CVE-2024-50344
  • πŸ€Support this Project
  • πŸ“‚Active Directory
    • Initial Access
    • Internal Enumeration & Lateral Movement
    • Privilege Escalation to Domain Admin using Known Exploits
    • Domain Trusts
  • 🐧Linux Privilege Escalation
    • Enumerating Attack Vectors
    • Privileged Groups
    • Environment Variables Abuse
    • Capabilities Abuse
    • Programs, Jobs and Services
    • Miscellaneous Techniques
    • Recent CVEs
  • πŸͺŸWindows Privilege Escalation
    • Enumerating Attack Vectors
    • Excessive User Rights Abuse
    • Built-in Groups Abuse
    • File System ACLs
    • Services Hijacking
    • User Account Control (UAC) Bypass
    • Living off the Land
  • πŸ›Bug Bounty Hunting
    • Bug Bounty Tools
  • πŸ•ΈοΈWeb Applications
    • Web Attacks
      • Cross Site Scripting (XSS)
      • SQL Injection (SQLi)
      • File Upload Vulnerabilities
      • Insecure Direct Object References (IDOR)
      • OS Command Injection
      • Local File Inclusion (LFI)
      • Remote File Inclusion (RFI)
      • XML External Entities (XXE)
      • HTTP Verb Tampering
    • Web Technologies
      • Tomcat
      • CGI Applications
      • WordPress
      • WebDav
      • Microsoft IIS
      • SAP Netweaver
      • Joomla
      • Drupal
      • Gitlab
      • Jenkins
      • osTicket
      • PRTG Network Monitor
      • Splunk
    • Fuzzing
  • πŸ”Information Gathering
  • πŸ“œProtocols and Services
    • DNS
    • FTP
    • IMAP
    • IPMI
    • MSSQL
    • MySQL
    • NFS
    • Oracle TNS
    • POP3
    • RDP
    • SMB
    • SMTP
    • SNMP
  • πŸ‘ΎUtilities, Scripts and Payloads
    • Shells and Payloads
    • Metasploit Framework
    • File Transfers
    • Pivoting, Tunneling, Port Forwarding
    • Password Attacks
Powered by GitBook
On this page
  • Introduction
  • SMTP Enumeration
  • SMTP Open Relay

Was this helpful?

Edit on GitHub
  1. Protocols and Services

SMTP

Introduction

  • The Simple Mail Transfer Protocol (SMTP) is a protocol for sending emails in an IP network

  • SMTP is often combined with the IMAP or POP3 protocols, which can fetch emails and send emails.

  • SMTP runs on port 25 UDP by default

  • Newer SMTP servers also use other ports such as TCP 587


SMTP Enumeration

Command
Description

telnet <FQDN/IP> 25 followed by EHLO nameserver.htb or HELO nameserver.htb

Check connection to SMTP

Test-NetConnection -Port 25 192.168.50.8

Check connection to SMTP (Windows)

smtp-user-enum -M VRFY -u root -t 192.168.1.25

Enumerate SMTP user "root" using the VRFY method (if available)

sudo nmap 10.129.14.128 -p25 --script smtp-open-relay -v

SMTP Open Relay server enumeration via nmap script


SMTP Open Relay

  • An open relay is a SMTP server improperly configured to allow an unauthenticated email relay.

  • A SMTP Open Relay allows mail from any source to be transparently re-routed through the open relay server.

  • This behavior masks the source of the messages and makes it look like the mail originated from the open relay server.

  • Useful for phishing purposes

Last updated 11 months ago

Was this helpful?

πŸ“œ