39 lines
962 B
YAML
39 lines
962 B
YAML
id: smtp-commands-enum
|
|
|
|
info:
|
|
name: SMTP Commands Enumeration
|
|
author: pussycat0x,userdehghani
|
|
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:
|
|
max-request: 4
|
|
shodan-query: smtp
|
|
verified: true
|
|
tags: network,enum,smtp,mail
|
|
|
|
tcp:
|
|
- inputs:
|
|
- data: "EHLO x\r\n"
|
|
read: 1024
|
|
- data: "HELP\r\n"
|
|
read: 1024
|
|
|
|
host:
|
|
- "{{Hostname}}"
|
|
port: 25,2525,465,587
|
|
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "214"
|
|
- "This server supports"
|
|
condition: and
|
|
|
|
extractors:
|
|
- type: regex
|
|
regex:
|
|
- '214 (.*)'
|
|
# digest: 4a0a00473045022100e4585711b7a7cb8e55dc6af887e5ce42d394d487fcb65b8c2f945ee6f2bd93d302200848147d0b02629fd5590402add0aa646c3f05090f381d2db4a45e7edf7a08d6:922c64590222798bb761d5b6d8e72950 |