github.com/chainreactors/fingers@v1.2.1/nmap/nmap-services.go (about)

     1  package gonmap
     2  
     3  // Service 代表一个服务条目
     4  type Service struct {
     5  	Name        string  `json:"name"`
     6  	Port        int     `json:"port"`
     7  	Protocol    string  `json:"protocol"`
     8  	Probability float64 `json:"probability"`
     9  	Comments    string  `json:"comments,omitempty"`
    10  }
    11  
    12  // ServicesData 代表解析后的services数据结构
    13  type ServicesData struct {
    14  	Services []Service `json:"services"`
    15  }