=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== prometheus-blackbox-exporter-0.18.0+ds/prober/dns_test.go-40- if protocol == "udp" { prometheus-blackbox-exporter-0.18.0+ds/prober/dns_test.go:41: a, err := net.ResolveUDPAddr(server.Net, server.Addr) prometheus-blackbox-exporter-0.18.0+ds/prober/dns_test.go-42- if err != nil { ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/dns_test.go-50- } else { prometheus-blackbox-exporter-0.18.0+ds/prober/dns_test.go:51: a, err := net.ResolveTCPAddr(server.Net, server.Addr) prometheus-blackbox-exporter-0.18.0+ds/prober/dns_test.go-52- if err != nil { ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/dns_test.go-63- if protocol == "tcp" { prometheus-blackbox-exporter-0.18.0+ds/prober/dns_test.go:64: return server, server.Listener.Addr() prometheus-blackbox-exporter-0.18.0+ds/prober/dns_test.go-65- } prometheus-blackbox-exporter-0.18.0+ds/prober/dns_test.go:66: return server, server.PacketConn.LocalAddr() prometheus-blackbox-exporter-0.18.0+ds/prober/dns_test.go-67-} ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/dns_test.go-454- } prometheus-blackbox-exporter-0.18.0+ds/prober/dns_test.go:455: _, err := net.ResolveIPAddr("ip6", "localhost") prometheus-blackbox-exporter-0.18.0+ds/prober/dns_test.go-456- if err != nil { ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/utils.go-66- resolver := &net.Resolver{} prometheus-blackbox-exporter-0.18.0+ds/prober/utils.go:67: ips, err := resolver.LookupIPAddr(ctx, target) prometheus-blackbox-exporter-0.18.0+ds/prober/utils.go-68- if err != nil { ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-60- registry := prometheus.NewRegistry() prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go:61: if !ProbeTCP(testCTX, ln.Addr().String(), config.Module{TCP: config.TCPProbe{IPProtocolFallback: true}}, registry, log.NewNopLogger()) { prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-62- t.Fatalf("TCP module failed, expected success.") ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-86- defer ln.Close() prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go:87: _, listenPort, _ := net.SplitHostPort(ln.Addr().String()) prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-88- ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-160- // Test name-verification failure (IP without IPs in cert's SAN). prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go:161: if ProbeTCP(testCTX, ln.Addr().String(), module, registry, log.NewNopLogger()) { prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-162- t.Fatalf("TCP module succeeded, expected failure.") ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-178- module.TCP.TLSConfig.ServerName = "localhost" prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go:179: if !ProbeTCP(testCTX, ln.Addr().String(), module, registry, log.NewNopLogger()) { prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-180- t.Fatalf("TCP module failed, expected success.") ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-216- defer ln.Close() prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go:217: _, listenPort, _ := net.SplitHostPort(ln.Addr().String()) prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-218- ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-430- registry := prometheus.NewRegistry() prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go:431: if !ProbeTCP(testCTX, ln.Addr().String(), module, registry, log.NewNopLogger()) { prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-432- t.Fatalf("TCP module failed, expected success.") ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-482- registry := prometheus.NewRegistry() prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go:483: if !ProbeTCP(testCTX, ln.Addr().String(), module, registry, log.NewNopLogger()) { prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-484- t.Fatalf("TCP module failed, expected success.") ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-501- registry = prometheus.NewRegistry() prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go:502: if ProbeTCP(testCTX, ln.Addr().String(), module, registry, log.NewNopLogger()) { prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-503- t.Fatalf("TCP module succeeded, expected failure.") ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-551- registry := prometheus.NewRegistry() prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go:552: if !ProbeTCP(testCTX, ln.Addr().String(), module, registry, log.NewNopLogger()) { prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-553- t.Fatalf("TCP module failed, expected success.") ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-575- } prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go:576: _, err := net.ResolveIPAddr("ip6", "localhost") prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-577- if err != nil { ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-589- prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go:590: _, port, _ := net.SplitHostPort(ln.Addr().String()) prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-591- ############################################## prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-672- registry := prometheus.NewRegistry() prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go:673: if ProbeTCP(testCTX, ln.Addr().String(), config.Module{TCP: config.TCPProbe{ prometheus-blackbox-exporter-0.18.0+ds/prober/tcp_test.go-674- IPProtocolFallback: true, ############################################## prometheus-blackbox-exporter-0.18.0+ds/debian/init-45-{ prometheus-blackbox-exporter-0.18.0+ds/debian/init:46: mkdir -p `dirname $PIDFILE` prometheus-blackbox-exporter-0.18.0+ds/debian/init:47: chown $USER: `dirname $LOGFILE` prometheus-blackbox-exporter-0.18.0+ds/debian/init:48: chown $USER: `dirname $PIDFILE` prometheus-blackbox-exporter-0.18.0+ds/debian/init-49-} ############################################## prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-58- registry := prometheus.NewRegistry() prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go:59: if !ProbeTCP(testCTX, ln.Addr().String(), config.Module{TCP: config.TCPProbe{IPProtocolFallback: true}}, registry, log.NewNopLogger()) { prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-60- t.Fatalf("TCP module failed, expected success.") ############################################## prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-84- defer ln.Close() prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go:85: _, listenPort, _ := net.SplitHostPort(ln.Addr().String()) prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-86- ############################################## prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-158- // Test name-verification failure (IP without IPs in cert's SAN). prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go:159: if ProbeTCP(testCTX, ln.Addr().String(), module, registry, log.NewNopLogger()) { prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-160- t.Fatalf("TCP module succeeded, expected failure.") ############################################## prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-176- module.TCP.TLSConfig.ServerName = "localhost" prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go:177: if !ProbeTCP(testCTX, ln.Addr().String(), module, registry, log.NewNopLogger()) { prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-178- t.Fatalf("TCP module failed, expected success.") ############################################## prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-214- defer ln.Close() prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go:215: _, listenPort, _ := net.SplitHostPort(ln.Addr().String()) prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-216- ############################################## prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-428- registry := prometheus.NewRegistry() prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go:429: if !ProbeTCP(testCTX, ln.Addr().String(), module, registry, log.NewNopLogger()) { prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-430- t.Fatalf("TCP module failed, expected success.") ############################################## prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-480- registry := prometheus.NewRegistry() prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go:481: if !ProbeTCP(testCTX, ln.Addr().String(), module, registry, log.NewNopLogger()) { prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-482- t.Fatalf("TCP module failed, expected success.") ############################################## prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-499- registry = prometheus.NewRegistry() prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go:500: if ProbeTCP(testCTX, ln.Addr().String(), module, registry, log.NewNopLogger()) { prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-501- t.Fatalf("TCP module succeeded, expected failure.") ############################################## prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-549- registry := prometheus.NewRegistry() prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go:550: if !ProbeTCP(testCTX, ln.Addr().String(), module, registry, log.NewNopLogger()) { prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-551- t.Fatalf("TCP module failed, expected success.") ############################################## prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-573- } prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go:574: _, err := net.ResolveIPAddr("ip6", "localhost") prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-575- if err != nil { ############################################## prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-587- prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go:588: _, port, _ := net.SplitHostPort(ln.Addr().String()) prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-589- ############################################## prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-670- registry := prometheus.NewRegistry() prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go:671: if ProbeTCP(testCTX, ln.Addr().String(), config.Module{TCP: config.TCPProbe{ prometheus-blackbox-exporter-0.18.0+ds/.pc/01-Fix_racey_test.patch/prober/tcp_test.go-672- IPProtocolFallback: true,