id: enigma-nms-detect

info:
  name: Enigma NMS - Detection
  author: 0x_Akoko
  severity: info
  reference:
    - https://www.netsas.com.au/enigma-nms-introduction
  metadata:
    verified: true
    max-request: 1
    shodan-query: 'http.title:"ENIGMA NMS"'
  tags: tech,enigma,nms,detection,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/protected/main.cgi"

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'contains(tolower(header), "enigma")'
          - 'status_code == 401'
          - 'contains(tolower(header), "www-authenticate")'
        condition: and

    extractors:
      - type: regex
        part: header
        group: 1
        regex:
          - 'WWW-Authenticate:\s*Basic\s+realm="([^"]+)"'
# digest: 4b0a004830460221009c899100541bad5b4a5ecdad4c959baa6ebc8cfed2e7aac5a1b2ac5be125bf3b022100f0897e662f015b53289c66f89581d78c6d4740425086ae86035b34cfd5c2ae7f:922c64590222798bb761d5b6d8e72950