From d5bc04d5ee8fee4985f7c13d4e5f8306a0d08a00 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 3 Sep 2018 22:41:28 +0900 Subject: [PATCH] ing --- activedirectory/activedirectory.go | 2 +- cassandra/cassandra.go | 2 +- dns/dns.go | 2 +- elasticsearch/elasticsearch.go | 2 +- ftp/ftp.go | 2 +- http/http.go | 2 +- imap/imap.go | 2 +- ldap/ldap.go | 2 +- lpd/lpd.go | 2 +- matcher.go | 2 +- mongodb/mongodb.go | 2 +- mysql/mysql.go | 2 +- nbss/nbss.go | 2 +- oracle/oracle.go | 2 +- pop/pop.go | 2 +- postgresql/postgresql.go | 2 +- redis/redis.go | 2 +- rmi/rmi.go | 2 +- smb/smb.go | 2 +- smtp/smtp.go | 2 +- snmp/v2/snmpv2.go | 2 +- sqlserver/sqlserver.go | 2 +- ssh/ssh.go | 2 +- telnet/telnet.go | 2 +- wmi/wmi.go | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/activedirectory/activedirectory.go b/activedirectory/activedirectory.go index 8185ebc..cf7837a 100644 --- a/activedirectory/activedirectory.go +++ b/activedirectory/activedirectory.go @@ -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 } diff --git a/cassandra/cassandra.go b/cassandra/cassandra.go index 6ab35f8..485f1cf 100644 --- a/cassandra/cassandra.go +++ b/cassandra/cassandra.go @@ -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 } diff --git a/dns/dns.go b/dns/dns.go index 4843992..c6578c4 100644 --- a/dns/dns.go +++ b/dns/dns.go @@ -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 } diff --git a/elasticsearch/elasticsearch.go b/elasticsearch/elasticsearch.go index fb3509a..60241c9 100644 --- a/elasticsearch/elasticsearch.go +++ b/elasticsearch/elasticsearch.go @@ -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 } diff --git a/ftp/ftp.go b/ftp/ftp.go index a2b4ac1..364ac6b 100644 --- a/ftp/ftp.go +++ b/ftp/ftp.go @@ -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 } diff --git a/http/http.go b/http/http.go index 2f19975..a4c97c8 100644 --- a/http/http.go +++ b/http/http.go @@ -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 } diff --git a/imap/imap.go b/imap/imap.go index 443cfe1..48df72a 100644 --- a/imap/imap.go +++ b/imap/imap.go @@ -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 } diff --git a/ldap/ldap.go b/ldap/ldap.go index 86da204..c270eb8 100644 --- a/ldap/ldap.go +++ b/ldap/ldap.go @@ -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 } diff --git a/lpd/lpd.go b/lpd/lpd.go index b3024d0..f18792c 100644 --- a/lpd/lpd.go +++ b/lpd/lpd.go @@ -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 } diff --git a/matcher.go b/matcher.go index 653da63..aa3dae7 100644 --- a/matcher.go +++ b/matcher.go @@ -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 diff --git a/mongodb/mongodb.go b/mongodb/mongodb.go index 9689231..5870b8b 100644 --- a/mongodb/mongodb.go +++ b/mongodb/mongodb.go @@ -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 } diff --git a/mysql/mysql.go b/mysql/mysql.go index bb76a18..4fdebf2 100644 --- a/mysql/mysql.go +++ b/mysql/mysql.go @@ -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 } diff --git a/nbss/nbss.go b/nbss/nbss.go index c5d0b04..de8f5f8 100644 --- a/nbss/nbss.go +++ b/nbss/nbss.go @@ -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 } diff --git a/oracle/oracle.go b/oracle/oracle.go index 6140e7c..c8a81e9 100644 --- a/oracle/oracle.go +++ b/oracle/oracle.go @@ -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 } diff --git a/pop/pop.go b/pop/pop.go index 83f122a..1b18864 100644 --- a/pop/pop.go +++ b/pop/pop.go @@ -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 } diff --git a/postgresql/postgresql.go b/postgresql/postgresql.go index e2b0cff..1c6b82c 100644 --- a/postgresql/postgresql.go +++ b/postgresql/postgresql.go @@ -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 } diff --git a/redis/redis.go b/redis/redis.go index 7f9147d..4719c65 100644 --- a/redis/redis.go +++ b/redis/redis.go @@ -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 } diff --git a/rmi/rmi.go b/rmi/rmi.go index 3fb0aff..ddef85b 100644 --- a/rmi/rmi.go +++ b/rmi/rmi.go @@ -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 } diff --git a/smb/smb.go b/smb/smb.go index 5351402..a1be8e6 100644 --- a/smb/smb.go +++ b/smb/smb.go @@ -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 } diff --git a/smtp/smtp.go b/smtp/smtp.go index ac996a9..d649331 100644 --- a/smtp/smtp.go +++ b/smtp/smtp.go @@ -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 } diff --git a/snmp/v2/snmpv2.go b/snmp/v2/snmpv2.go index e1927c6..8b20485 100644 --- a/snmp/v2/snmpv2.go +++ b/snmp/v2/snmpv2.go @@ -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 } diff --git a/sqlserver/sqlserver.go b/sqlserver/sqlserver.go index e2b0d2b..7a98439 100644 --- a/sqlserver/sqlserver.go +++ b/sqlserver/sqlserver.go @@ -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 } diff --git a/ssh/ssh.go b/ssh/ssh.go index 5780c02..a8e66f0 100644 --- a/ssh/ssh.go +++ b/ssh/ssh.go @@ -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 } diff --git a/telnet/telnet.go b/telnet/telnet.go index 7e132a5..36397a2 100644 --- a/telnet/telnet.go +++ b/telnet/telnet.go @@ -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 } diff --git a/wmi/wmi.go b/wmi/wmi.go index 3db2a47..ab1e921 100644 --- a/wmi/wmi.go +++ b/wmi/wmi.go @@ -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 }