2023-05-05 13:26:49 +00:00
|
|
|
id: smtp-commands-enum
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: SMTP Commands Enumeration
|
|
|
|
author: pussycat0x
|
|
|
|
severity: info
|
|
|
|
description: |
|
|
|
|
Attempts to use EHLO and HELP to gather the Extended commands supported by an SMTP server.
|
|
|
|
reference:
|
|
|
|
- https://nmap.org/nsedoc/scripts/smtp-commands.html
|
|
|
|
metadata:
|
2023-09-27 13:29:58 +00:00
|
|
|
max-request: 1
|
|
|
|
shodan-query: smtp
|
2024-04-08 11:34:33 +00:00
|
|
|
verified: true
|
|
|
|
tags: network,enum,smtp,mail
|
|
|
|
|
2023-05-05 13:26:49 +00:00
|
|
|
tcp:
|
|
|
|
- inputs:
|
|
|
|
- data: "EHLO x\r\n"
|
|
|
|
read: 1024
|
|
|
|
- data: "HELP\r\n"
|
|
|
|
read: 1024
|
|
|
|
|
|
|
|
host:
|
|
|
|
- "{{Hostname}}"
|
2023-09-16 19:35:21 +00:00
|
|
|
port: 25
|
2023-05-05 13:26:49 +00:00
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "214"
|
|
|
|
- "This server supports"
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
regex:
|
2023-05-05 13:28:03 +00:00
|
|
|
- '214 (.*)'
|
2023-10-19 13:13:52 +00:00
|
|
|
# digest: 4a0a0047304502205560bdb073316213380e8fde2d30d6087829d64351e9bae564928f313866b614022100dc2fec1faec01e87b86aecb89ee3e25447f17835b755bf835eaf0bb948ab9cd2:922c64590222798bb761d5b6d8e72950
|