id: nexus-panel

info:
  name: Nexus Login Panel - Detect
  author: righettod
  severity: info
  description: |
    Nexus login panel was detected.
  reference:
    - https://www.sonatype.com/products/sonatype-nexus-repository
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"Sonatype Nexus Repository"
  tags: panel,nexus,login,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "<title>sonatype nexus repository", "content=\"sonatype nexus repository", "nexus-coreui-bundle")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '_v=([0-9\.\-]+)'
# digest: 490a0046304402202a50ded5ce129121ece8f91d3f36d9debed69599aa18d4d11df4cfb8963de30c022048f975e1810db92fd1aa417bcfb57a45bb2b7b8cf81f1e226809614ad60ec94f:922c64590222798bb761d5b6d8e72950