id: automation-direct

info:
  name: AutomationDirect Panel - Detect
  author: DhiyaneshDK
  severity: info
  description: AutomationDirect panel was detected.
  reference:
    - https://www.exploit-db.com/ghdb/7295
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
    cpe: cpe:2.3:h:automationdirect:ea9-t6cl:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    shodan-query: http.title:"C-more -- the best HMI presented by AutomationDirect"
    google-query: intitle:"C-more -- the best HMI presented by AutomationDirect"
    product: ea9-t6cl
    vendor: automationdirect
  tags: panel,iot,edb

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.html'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<TITLE>C-more -- the best HMI presented by AutomationDirect</TITLE>"

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<P align="right">([A-Za-z. 0-9]+)<\/P>'
# digest: 4a0a0047304502210093f812814abc01cc05af395847cf1ea63e13551cf22195ecea9310843cd266ee02206b3d5207c42f81b691dad70ee93da64d06a791f66424e62dfc7ccf5a0aa76898:922c64590222798bb761d5b6d8e72950