This commit is contained in:
crusader 2018-09-03 22:41:28 +09:00
parent c15fd7d46e
commit d5bc04d5ee
25 changed files with 25 additions and 25 deletions

View File

@ -181,7 +181,7 @@ func (m *ActiveDirectoryMatcher) Name(matchCtx *osm.MatchCtx) string {
return "ActiveDirectory"
}
func (m *ActiveDirectoryMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *ActiveDirectoryMatcher) IsPrePacket() bool {
return false
}

View File

@ -27,7 +27,7 @@ func (m *CassandraMatcher) Name(matchCtx *osm.MatchCtx) string {
return "Cassandra"
}
func (m *CassandraMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *CassandraMatcher) IsPrePacket() bool {
return false
}

View File

@ -49,7 +49,7 @@ func (m *DNSMatcher) Name(matchCtx *osm.MatchCtx) string {
return "DNS"
}
func (m *DNSMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *DNSMatcher) IsPrePacket() bool {
return false
}

View File

@ -25,7 +25,7 @@ func (m *ElasticSearchMatcher) Name(matchCtx *osm.MatchCtx) string {
return name
}
func (m *ElasticSearchMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *ElasticSearchMatcher) IsPrePacket() bool {
return false
}

View File

@ -37,7 +37,7 @@ func (m *FTPMatcher) Name(matchCtx *osm.MatchCtx) string {
return "FTP"
}
func (m *FTPMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *FTPMatcher) IsPrePacket() bool {
return true
}

View File

@ -22,7 +22,7 @@ func (m *HTTPMatcher) Name(matchCtx *osm.MatchCtx) string {
return name
}
func (m *HTTPMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *HTTPMatcher) IsPrePacket() bool {
return false
}

View File

@ -21,7 +21,7 @@ func (m *IMAPMatcher) Name(matchCtx *osm.MatchCtx) string {
return "IMAP"
}
func (m *IMAPMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *IMAPMatcher) IsPrePacket() bool {
return true
}

View File

@ -26,7 +26,7 @@ func (m *LDAPMatcher) Name(matchCtx *osm.MatchCtx) string {
return "LDAP"
}
func (m *LDAPMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *LDAPMatcher) IsPrePacket() bool {
return false
}

View File

@ -16,7 +16,7 @@ func (m *LPDMatcher) Name(matchCtx *osm.MatchCtx) string {
return "LPD (Printer)"
}
func (m *LPDMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *LPDMatcher) IsPrePacket() bool {
return false
}

View File

@ -6,7 +6,7 @@ type Matcher interface {
Key() string
Name(matchCtx *MatchCtx) string
IsPrePacket(matchCtx *MatchCtx) bool
IsPrePacket() bool
PacketCount(matchCtx *MatchCtx) int
Packet(matchCtx *MatchCtx, index int) *Packet
HasResponse(matchCtx *MatchCtx, index int) bool

View File

@ -58,7 +58,7 @@ func (m *MongoDBMatcher) Name(matchCtx *osm.MatchCtx) string {
return "MongoDB"
}
func (m *MongoDBMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *MongoDBMatcher) IsPrePacket() bool {
return false
}

View File

@ -28,7 +28,7 @@ func (m *MySqlMatcher) Name(matchCtx *osm.MatchCtx) string {
return name
}
func (m *MySqlMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *MySqlMatcher) IsPrePacket() bool {
return true
}

View File

@ -37,7 +37,7 @@ func (m *NBSSMatcher) Name(matchCtx *osm.MatchCtx) string {
return "NBSS"
}
func (m *NBSSMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *NBSSMatcher) IsPrePacket() bool {
return false
}

View File

@ -18,7 +18,7 @@ func (m *OracleMatcher) Name(matchCtx *osm.MatchCtx) string {
return "Oracle"
}
func (m *OracleMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *OracleMatcher) IsPrePacket() bool {
return false
}

View File

@ -20,7 +20,7 @@ func (m *POPMatcher) Name(matchCtx *osm.MatchCtx) string {
return "POP3"
}
func (m *POPMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *POPMatcher) IsPrePacket() bool {
return true
}

View File

@ -49,7 +49,7 @@ func (m *PostgreSQLMatcher) Name(matchCtx *osm.MatchCtx) string {
return "PostgreSQL"
}
func (m *PostgreSQLMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *PostgreSQLMatcher) IsPrePacket() bool {
return false
}

View File

@ -37,7 +37,7 @@ func (m *RedisMatcher) Name(matchCtx *osm.MatchCtx) string {
return name
}
func (m *RedisMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *RedisMatcher) IsPrePacket() bool {
return false
}

View File

@ -39,7 +39,7 @@ func (m *RMIMatcher) Name(matchCtx *osm.MatchCtx) string {
return "RMI"
}
func (m *RMIMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *RMIMatcher) IsPrePacket() bool {
return false
}

View File

@ -60,7 +60,7 @@ func (m *SMBMatcher) Name(matchCtx *osm.MatchCtx) string {
return "SMB"
}
func (m *SMBMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *SMBMatcher) IsPrePacket() bool {
return false
}

View File

@ -18,7 +18,7 @@ func (m *SmtpMatcher) Name(matchCtx *osm.MatchCtx) string {
return "SMTP"
}
func (m *SmtpMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *SmtpMatcher) IsPrePacket() bool {
return true
}

View File

@ -51,7 +51,7 @@ func (s *SNMPMatcher) Name(matchCtx *osm.MatchCtx) string {
return "SNMP"
}
func (s *SNMPMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (s *SNMPMatcher) IsPrePacket() bool {
return false
}

View File

@ -79,7 +79,7 @@ func (m *SQLServerMatcher) Name(matchCtx *osm.MatchCtx) string {
return "SQL Server"
}
func (m *SQLServerMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *SQLServerMatcher) IsPrePacket() bool {
return false
}

View File

@ -24,7 +24,7 @@ func (m *SSHMatcher) Name(matchCtx *osm.MatchCtx) string {
return name
}
func (m *SSHMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *SSHMatcher) IsPrePacket() bool {
return true
}

View File

@ -24,7 +24,7 @@ func (m *TelnetMatcher) Name(matchCtx *osm.MatchCtx) string {
return "Telnet"
}
func (m *TelnetMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *TelnetMatcher) IsPrePacket() bool {
return true
}

View File

@ -29,7 +29,7 @@ func (m *WMIMatcher) Name(matchCtx *osm.MatchCtx) string {
return "WMI"
}
func (m *WMIMatcher) IsPrePacket(matchCtx *osm.MatchCtx) bool {
func (m *WMIMatcher) IsPrePacket() bool {
return false
}