This commit is contained in:
insanity 2018-09-03 12:43:12 +09:00
parent dc0d6a2608
commit 4ae2561045
2 changed files with 6 additions and 1 deletions

View File

@ -45,6 +45,10 @@ func (l *LDAPMatcher) Match(info osm.MatchInfo, index int, packet *osm.Packet) e
}
p := ber.DecodePacket(packet.Buffer)
if len(p.Children) <= 1 {
return osm.NotMatchedError()
}
respID, ok := p.Children[0].Value.(int64)
if !ok {
return osm.NotMatchedError()

View File

@ -7,11 +7,12 @@ import (
osm "git.loafle.net/overflow/service_matcher-go"
)
// dcerpc
func TestWMI(t *testing.T) {
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 {
t.Error(err)
}