Skip to content

Conversation

@DavidAngelos
Copy link

Just added a simple line to get also service running output for each port

Json output before change:

"ports": [
      {
        "port": {
          "protocol": "tcp",
          "portid": "22"
        },
        "state": {
          "state": "open",
          "reason": "syn-ack",
          "reason_ttl": "0"
        }
      } 
]

Json output after change:

"ports": [
      {
        "port": {
          "protocol": "tcp",
          "portid": "22"
        },
        "state": {
          "state": "open",
          "reason": "syn-ack",
          "reason_ttl": "0"
        },
        "service": {
          "name": "ssh",
          "product": "OpenSSH",
          "version": "7.4p1 Debian 10+deb9u6",
          "extrainfo": "protocol 2.0",
          "ostype": "Linux",
          "method": "probed",
          "conf": "10"
        }
      }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant