MCPcopy Create free account
hub / github.com/dreadl0ck/netcap / makeSoftware

Function makeSoftware

decoder/stream/software/utils.go:40–58  ·  view source on GitHub ↗
(ts int64, product, website, sourceName, sourceData, flowIdent, communityID string)

Source from the content-addressed store, hash-verified

38}
39
40func makeSoftware(ts int64, product, website, sourceName, sourceData, flowIdent, communityID string) *AtomicSoftware {
41 var communityIDs []string
42 if communityID != "" {
43 communityIDs = []string{communityID}
44 }
45 return &AtomicSoftware{
46 Software: &types.Software{
47 Timestamp: ts,
48 Product: product,
49 Notes: "", // TODO: add info from implies field
50 Website: website,
51 SourceName: sourceName,
52 SourceData: sourceData,
53 Service: "HTTP",
54 Flows: []string{flowIdent},
55 CommunityIDs: communityIDs,
56 },
57 }
58}

Callers 1

WhatSoftwareHTTPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected