SMTP Commands Enumeration

patch-1
pussycat0x 2023-05-05 18:56:49 +05:30 committed by GitHub
parent 72bbaa5183
commit d17a0c1246
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,39 @@
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:
max-request: 2
verified: true
shodan-query: 'smtp'
tags: network,enum,smtp,mail
tcp:
- inputs:
- data: "EHLO x\r\n"
read: 1024
- data: "HELP\r\n"
read: 1024
host:
- "{{Hostname}}"
- "{{Host}}:25"
matchers-condition: and
matchers:
- type: word
words:
- "214"
- "This server supports"
condition: and
extractors:
- type: regex
regex:
- '214 (.*)'