id: woodpecker-detect

info:
  name: Woodpecker - Detect
  author: righettod
  severity: info
  description: |
    Woodpecker was detected — a lightweight, powerful CI/CD engine with great extensibility.
  reference:
    - https://github.com/woodpecker-ci/woodpecker
    - https://woodpecker-ci.org/
  metadata:
    verified: true
    shodan-query: http.title:"woodpecker"
    max-request: 1
  tags: tech,woodpecker,detect,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/web-config.js"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(to_lower(body), "window.woodpecker_")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)window.WOODPECKER_VERSION\s*=\s*"([0-9.]+)"'
# digest: 4a0a00473045022100ce30a5d909bb656703ad790f3118bb88b4306e8c9c6e9dbc72252b721ae094c802204f323f4e9f434af7c303ecab6ff8bd1b35182be7a5b76c99ede2bf017d820394:922c64590222798bb761d5b6d8e72950