nuclei-templates/network/enumeration/smtp/smtp-commands-enum.yaml

38 lines
965 B
YAML
Raw Normal View History

2023-05-05 13:26:49 +00:00
id: smtp-commands-enum
info:
name: SMTP Commands Enumeration
2024-05-26 20:12:47 +00:00
author: pussycat0x,userdehghani
2023-05-05 13:26:49 +00:00
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:
verified: true
max-request: 1
shodan-query: smtp
tags: network,enum,smtp,mail,tcp
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}}"
2024-05-26 20:12:47 +00:00
port: 25,2525,465,587
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 (.*)'
# digest: 4a0a00473045022054b4221e3e3c486ef9992134338fb8b67f69ddda932dc69aa6854955ae0ac5ce022100af7395e6f3ff1bb6cba3fb14943a501b01a2124e4f57f1c294233490c2b57c35:922c64590222798bb761d5b6d8e72950