test
This commit is contained in:
parent
dc0d6a2608
commit
4ae2561045
|
@ -45,6 +45,10 @@ func (l *LDAPMatcher) Match(info osm.MatchInfo, index int, packet *osm.Packet) e
|
||||||
}
|
}
|
||||||
p := ber.DecodePacket(packet.Buffer)
|
p := ber.DecodePacket(packet.Buffer)
|
||||||
|
|
||||||
|
if len(p.Children) <= 1 {
|
||||||
|
return osm.NotMatchedError()
|
||||||
|
}
|
||||||
|
|
||||||
respID, ok := p.Children[0].Value.(int64)
|
respID, ok := p.Children[0].Value.(int64)
|
||||||
if !ok {
|
if !ok {
|
||||||
return osm.NotMatchedError()
|
return osm.NotMatchedError()
|
||||||
|
|
|
@ -7,11 +7,12 @@ import (
|
||||||
osm "git.loafle.net/overflow/service_matcher-go"
|
osm "git.loafle.net/overflow/service_matcher-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// dcerpc
|
||||||
func TestWMI(t *testing.T) {
|
func TestWMI(t *testing.T) {
|
||||||
|
|
||||||
m := NewMatcher()
|
m := NewMatcher()
|
||||||
|
|
||||||
conn, err := net.Dial("tcp", "192.168.1.203:135")
|
conn, err := net.Dial("tcp", "192.168.1.200:135")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user