This commit is contained in:
crusader 2017-12-04 17:16:03 +09:00
parent ac4d422cd9
commit 9975361ba2
8 changed files with 13 additions and 27 deletions

View File

@ -1,13 +1,6 @@
package: git.loafle.net/commons_go/network_service_matcher
import:
- 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:
- package: github.com/stretchr/testify
subpackages:

View File

@ -3,16 +3,16 @@ package http
import (
"fmt"
cnsm "git.loafle.net/commons_go/network_service_matcher"
//"git.loafle.net/overflow/overflow_discovery/discovery/discovery/types"
"net"
"testing"
cnsm "git.loafle.net/commons_go/network_service_matcher"
)
func TestHTTPMatcher_Packet(t *testing.T) {
hm := NewMatcher().(*HTTPMatcher)
fmt.Println(hm)
fmt.Println(hm.sendPackets[0])
fmt.Println(hm.Packet(0))
}
func TestHTTPMatcher_Match(t *testing.T) {

View File

@ -3,12 +3,10 @@ package imap
import (
"crypto/tls"
"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"
"testing"
cnsm "git.loafle.net/commons_go/network_service_matcher"
)
func ImapRun(client net.Conn, t *testing.T) {

View File

@ -4,11 +4,10 @@ import (
"crypto/tls"
"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"
"testing"
cnsm "git.loafle.net/commons_go/network_service_matcher"
)
//func SetUp() {

View File

@ -1,7 +1,6 @@
package protected
//import (
// "git.loafle.net/overflow/overflow_discovery/collector/core/scan/service/matcher/packet"
// "net"
// "testing"
//)

View File

@ -3,10 +3,10 @@ package rmi
import (
"fmt"
cnsm "git.loafle.net/commons_go/network_service_matcher"
//"git.loafle.net/overflow/overflow_discovery/discovery/discovery/types"
"net"
"testing"
cnsm "git.loafle.net/commons_go/network_service_matcher"
)
func TestNew(t *testing.T) {

View File

@ -2,11 +2,10 @@ package ssh
import (
"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"
"testing"
cnsm "git.loafle.net/commons_go/network_service_matcher"
)
func TestSSHMatcher_Match(t *testing.T) {

View File

@ -2,12 +2,10 @@ package wmi
import (
"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"
"testing"
cnsm "git.loafle.net/commons_go/network_service_matcher"
)
func TestWMI(t *testing.T) {