ing
This commit is contained in:
parent
ac4d422cd9
commit
9975361ba2
|
@ -1,13 +1,6 @@
|
||||||
package: git.loafle.net/commons_go/network_service_matcher
|
package: git.loafle.net/commons_go/network_service_matcher
|
||||||
import:
|
import:
|
||||||
- package: git.loafle.net/commons_go/logging
|
- package: git.loafle.net/commons_go/logging
|
||||||
- package: git.loafle.net/overflow/overflow_discovery
|
|
||||||
subpackages:
|
|
||||||
- service/matcher
|
|
||||||
- service/matcher/snmp
|
|
||||||
- package: git.loafle.net/overflow/overflow_probe
|
|
||||||
subpackages:
|
|
||||||
- matcher/snmp
|
|
||||||
testImport:
|
testImport:
|
||||||
- package: github.com/stretchr/testify
|
- package: github.com/stretchr/testify
|
||||||
subpackages:
|
subpackages:
|
||||||
|
|
|
@ -3,16 +3,16 @@ package http
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
cnsm "git.loafle.net/commons_go/network_service_matcher"
|
|
||||||
//"git.loafle.net/overflow/overflow_discovery/discovery/discovery/types"
|
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
cnsm "git.loafle.net/commons_go/network_service_matcher"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHTTPMatcher_Packet(t *testing.T) {
|
func TestHTTPMatcher_Packet(t *testing.T) {
|
||||||
hm := NewMatcher().(*HTTPMatcher)
|
hm := NewMatcher().(*HTTPMatcher)
|
||||||
fmt.Println(hm)
|
fmt.Println(hm)
|
||||||
fmt.Println(hm.sendPackets[0])
|
fmt.Println(hm.Packet(0))
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestHTTPMatcher_Match(t *testing.T) {
|
func TestHTTPMatcher_Match(t *testing.T) {
|
||||||
|
|
|
@ -3,12 +3,10 @@ package imap
|
||||||
import (
|
import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
//"git.loafle.net/overflow/overflow_discovery/collector/core/scan/port"
|
|
||||||
cnsm "git.loafle.net/commons_go/network_service_matcher"
|
|
||||||
//"git.loafle.net/overflow/overflow_discovery/collector/core/scan/service/matcher/scaninfo"
|
|
||||||
//"git.loafle.net/overflow/overflow_discovery/collector/discovery/types"
|
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
cnsm "git.loafle.net/commons_go/network_service_matcher"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ImapRun(client net.Conn, t *testing.T) {
|
func ImapRun(client net.Conn, t *testing.T) {
|
||||||
|
|
|
@ -4,11 +4,10 @@ import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
cnsm "git.loafle.net/commons_go/network_service_matcher"
|
|
||||||
//"git.loafle.net/overflow/overflow_discovery/collector/discovery/scan/matcher/scaninfo"
|
|
||||||
//"git.loafle.net/overflow/overflow_discovery/collector/discovery/types"
|
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
cnsm "git.loafle.net/commons_go/network_service_matcher"
|
||||||
)
|
)
|
||||||
|
|
||||||
//func SetUp() {
|
//func SetUp() {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package protected
|
package protected
|
||||||
|
|
||||||
//import (
|
//import (
|
||||||
// "git.loafle.net/overflow/overflow_discovery/collector/core/scan/service/matcher/packet"
|
|
||||||
// "net"
|
// "net"
|
||||||
// "testing"
|
// "testing"
|
||||||
//)
|
//)
|
||||||
|
|
|
@ -3,10 +3,10 @@ package rmi
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
cnsm "git.loafle.net/commons_go/network_service_matcher"
|
|
||||||
//"git.loafle.net/overflow/overflow_discovery/discovery/discovery/types"
|
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
cnsm "git.loafle.net/commons_go/network_service_matcher"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNew(t *testing.T) {
|
func TestNew(t *testing.T) {
|
||||||
|
|
|
@ -2,11 +2,10 @@ package ssh
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
//"git.loafle.net/overflow/overflow_discovery/match/ssh"
|
|
||||||
cnsm "git.loafle.net/commons_go/network_service_matcher"
|
|
||||||
//"git.loafle.net/overflow/overflow_discovery/collector/discovery/types"
|
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
cnsm "git.loafle.net/commons_go/network_service_matcher"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSSHMatcher_Match(t *testing.T) {
|
func TestSSHMatcher_Match(t *testing.T) {
|
||||||
|
|
|
@ -2,12 +2,10 @@ package wmi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
cnsm "git.loafle.net/commons_go/network_service_matcher"
|
|
||||||
//"git.loafle.net/overflow/overflow_discovery/collector/discovery/scan/matcher/scaninfo"
|
|
||||||
//"git.loafle.net/overflow/overflow_discovery/collector/discovery/types"
|
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
cnsm "git.loafle.net/commons_go/network_service_matcher"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestWMI(t *testing.T) {
|
func TestWMI(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user