id: jway-products-detect

info:
  name: JWay Products - Detect
  author: righettod
  severity: info
  description: |
    JWay products was detected.
  reference:
    - https://www.jway.eu/produits-services
  metadata:
    max-request: 1
    verified: true
  tags: panel,jway,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}/generatedHomepage.html"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "jway.footer.url.help", "jway.footer.url.contact", "jway.footer.url.legal")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)Produced\s+by\s+Form([a-z]+)'

      - type: regex
        part: body
        group: 1
        regex:
          - 'Form(?:[a-zA-Z]+)\s+v([0-9.]+)'
# digest: 480a00453043021f2fabc6185cbc7621addb39dc134493299c13f2369f623e67a6f8bbb1fe26a0022005a86dd595ef91adfa24086468c48d0d5bb2b4e029465f480cdf7e977f6b3f25:922c64590222798bb761d5b6d8e72950