id: afp-server-detect

info:
  name: AFP Server Detect
  author: pussycat0x
  severity: info
  reference:
    - https://nmap.org/nsedoc/scripts/afp-serverinfo.html
  metadata:
    verfied: true
    shodan-query: 'AFP'
    max-request: 1
  tags: network,enum,afp,discovery

tcp:
  - inputs:
      - data: 000300010000000000000002000000000f00
        type: hex

    host:
      - "{{Hostname}}"
    port: 548
    read-size: 1024

    matchers:
      - type: word
        words:
          - "AFP"
          - "DHCAST"
        condition: and
# digest: 4a0a00473045022100c6422b13f5e031d8e43745b9ca90f31829b44a42cac06aa279b7014ea85253680220422c50d443923f32bef299feeb60e96f316c9972b5ef29a5fd6d5ce22f73d68e:922c64590222798bb761d5b6d8e72950