id: smtp-service-detect

info:
  name: SMTP Service Detection
  author: pussycat0x,userdehghani
  severity: info
  description: |
    SMTP is part of the application layer of the TCP/IP protocol. Using a process called “store and forward,” SMTP moves your email on and across networks.
  metadata:
    max-request: 1
  tags: network,service,smtp,detect,mail,detection,tcp

tcp:
  - inputs:
      - data: "\r\n"
    host:
      - "{{Hostname}}"
    port: 25,2525,465,587

    matchers:
      - type: word
        words:
          - "SMTP"
# digest: 490a00463044022061a8dacb933cb38524c81348015a0609146ee1c4509f75cb9199b847a9a1d58702201b12c7ed7e3d2e6f8694f32a6729e0ef8799775e0e4a5f7fc6da5270a4c7d6b7:922c64590222798bb761d5b6d8e72950