2023-05-05 13:26:49 +00:00
|
|
|
id: smtp-commands-enum
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: SMTP Commands Enumeration
|
2024-11-03 03:41:47 +00:00
|
|
|
author: pussycat0x,userdehghani,AV-IO
|
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:
|
2024-04-08 11:34:33 +00:00
|
|
|
verified: true
|
2024-06-07 10:04:29 +00:00
|
|
|
max-request: 1
|
|
|
|
shodan-query: smtp
|
|
|
|
tags: network,enum,smtp,mail,tcp
|
2024-11-03 18:29:27 +00:00
|
|
|
|
2023-05-05 13:26:49 +00:00
|
|
|
tcp:
|
|
|
|
- inputs:
|
2024-11-03 03:41:47 +00:00
|
|
|
- data: ""
|
|
|
|
read: 256
|
2023-05-05 13:26:49 +00:00
|
|
|
- data: "EHLO x\r\n"
|
2024-11-03 03:42:52 +00:00
|
|
|
name: ehlo
|
2023-05-05 13:26:49 +00:00
|
|
|
read: 1024
|
2024-11-03 03:41:47 +00:00
|
|
|
- data: "QUIT\r\n"
|
|
|
|
read: 8
|
2023-05-05 13:26:49 +00:00
|
|
|
|
|
|
|
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
|
2024-11-03 03:42:52 +00:00
|
|
|
name: ehlo
|
|
|
|
part: ehlo
|
2023-05-05 13:26:49 +00:00
|
|
|
words:
|
2024-11-03 03:42:52 +00:00
|
|
|
- '250'
|
2023-05-05 13:26:49 +00:00
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
2024-11-03 03:42:52 +00:00
|
|
|
part: ehlo
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- '250[\- ]([A-Z0-9 \-]+)'
|
|
|
|
|
|
|
|
- inputs:
|
2024-11-03 18:29:27 +00:00
|
|
|
- data: ""
|
|
|
|
read: 256
|
|
|
|
- data: "HELP\r\n"
|
|
|
|
name: help
|
|
|
|
read: 2048
|
|
|
|
- data: "QUIT\r\n"
|
|
|
|
read: 8
|
|
|
|
|
2024-11-03 03:42:52 +00:00
|
|
|
host:
|
|
|
|
- "{{Hostname}}"
|
|
|
|
port: 25,2525,465,587
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
name: help
|
|
|
|
part: help
|
|
|
|
words:
|
2024-11-03 18:29:27 +00:00
|
|
|
- "214"
|
|
|
|
- "This server supports"
|
|
|
|
condition: and
|
|
|
|
|
2024-11-03 03:42:52 +00:00
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
part: help
|
|
|
|
group: 1
|
2023-05-05 13:26:49 +00:00
|
|
|
regex:
|
2024-11-03 03:41:47 +00:00
|
|
|
- '214[\- ](.*)'
|
2024-11-03 18:45:41 +00:00
|
|
|
# digest: 4b0a00483046022100afbf0f9ba5d4a86372a77409c50c1ce4bae559f8507e38d2ec813f048b462fae022100e52f3d99a6c313c81f550996f6e898dbcff1cd0d31e2d2d732655c1aa8132809:922c64590222798bb761d5b6d8e72950
|