diff --git a/agent_api/config_manager/config_test.go b/agent_api/config_manager/config_test.go index 0b007c5..e584fcb 100644 --- a/agent_api/config_manager/config_test.go +++ b/agent_api/config_manager/config_test.go @@ -10,7 +10,7 @@ import ( func TestConfigRead(t *testing.T) { - b, err := ioutil.ReadFile("/root/gowork/src/loafle.com/overflow/agent_api/config_manager/test.json") + b, err := ioutil.ReadFile("/root/gowork/src/git.loafle.net/overflow/overflow_probe/agent_api/config_manager/test.json") if err != nil { log.Panic(err) } diff --git a/agent_api/observer/observer_test.go b/agent_api/observer/observer_test.go index 48ecf60..e0ba7a8 100644 --- a/agent_api/observer/observer_test.go +++ b/agent_api/observer/observer_test.go @@ -2,7 +2,7 @@ package observer import ( "fmt" - "git.loafle.net/overflow/agent_api/messages" + "git.loafle.net/overflow/overflow_probe/agent_api/messages" "github.com/stretchr/testify/assert" "testing" "time" diff --git a/collector/collector.go b/collector/collector.go index dfdea9e..628c640 100644 --- a/collector/collector.go +++ b/collector/collector.go @@ -1,11 +1,11 @@ -package collector_go +package collector import ( "context" - cm "git.loafle.net/overflow/agent_api/config_manager" - "git.loafle.net/overflow/crawler_go/grpc" - crm "git.loafle.net/overflow/crawler_manager_go" - s "git.loafle.net/overflow/scheduler_go" + cm "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler/grpc" + crm "git.loafle.net/overflow/overflow_probe/crawler_manager" + s "git.loafle.net/overflow/overflow_probe/scheduler" "log" "strconv" "sync" diff --git a/collector/collector_test.go b/collector/collector_test.go index abe5734..e192769 100644 --- a/collector/collector_test.go +++ b/collector/collector_test.go @@ -1,4 +1,4 @@ -package collector_go +package collector import "testing" diff --git a/config_manager/config_manager.go b/config_manager/config_manager.go index 6b71764..1153f4c 100644 --- a/config_manager/config_manager.go +++ b/config_manager/config_manager.go @@ -1,8 +1,8 @@ -package config_manager_go +package config_manager import ( "encoding/json" - "git.loafle.net/overflow/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" "gopkg.in/yaml.v2" "io/ioutil" "log" diff --git a/config_manager/config_manager_test.go b/config_manager/config_manager_test.go index 98f1647..d8e9fb3 100644 --- a/config_manager/config_manager_test.go +++ b/config_manager/config_manager_test.go @@ -1,12 +1,12 @@ -package config_manager_go +package config_manager import ( "testing" //"github.com/stretchr/testify/assert" "encoding/json" - "git.loafle.net/overflow/agent_api/config_manager" - "git.loafle.net/overflow/agent_api/messages" - "git.loafle.net/overflow/agent_api/observer" + "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/agent_api/messages" + "git.loafle.net/overflow/overflow_probe/agent_api/observer" "github.com/google/uuid" "io/ioutil" "log" @@ -27,7 +27,7 @@ func TestLoadConfig(t *testing.T) { // make config manager after to load //c := NewConfigManager() - //c.loadGlobalConfig("/root/gowork/src/loafle.com/overflow/config_manager_go/test_agent/global.yaml") + //c.loadGlobalConfig("/root/gowork/src/git.loafle.net/overflow/overflow_probe/config_manager/test_agent/global.yaml") //c.loadCrawlerConfigAll() // //assert.NotEqual(t, len(c.configs),0) @@ -36,10 +36,10 @@ func TestLoadConfig(t *testing.T) { } func TestAddConfig(t *testing.T) { - _configManager.loadGlobalConfig("/root/gowork/src/loafle.com/overflow/config_manager_go/test_agent/global.yaml") + _configManager.loadGlobalConfig("/root/gowork/src/git.loafle.net/overflow/overflow_probe/config_manager/test_agent/global.yaml") // 원본 테스트 설정 파일 로드 - b, err := ioutil.ReadFile("/root/gowork/src/loafle.com/overflow/config_manager_go/test_agent/test.json") + b, err := ioutil.ReadFile("/root/gowork/src/git.loafle.net/overflow/overflow_probe/config_manager/test_agent/test.json") if err != nil { log.Panic(err) } @@ -50,16 +50,16 @@ func TestAddConfig(t *testing.T) { rid, _ := uuid.NewRandom() m.Id = rid.String() b, err = json.Marshal(&m) - ioutil.WriteFile("/root/gowork/src/loafle.com/overflow/config_manager_go/test_agent/"+m.Id, b, 0644) + ioutil.WriteFile("/root/gowork/src/git.loafle.net/overflow/overflow_probe/config_manager/test_agent/"+m.Id, b, 0644) // add test - observer.Notify(messages.TASK_SENSOR_ADD, "/root/gowork/src/loafle.com/overflow/config_manager_go/test_agent/"+m.Id) + observer.Notify(messages.TASK_SENSOR_ADD, "/root/gowork/src/git.loafle.net/overflow/overflow_probe/config_manager/test_agent/"+m.Id) time.Sleep(1 * time.Second) } func TestRemoveConfig(t *testing.T) { GetInstance() - _configManager.loadGlobalConfig("/home/snoop/develop/path/go/src/loafle.com/overflow/config_manager_go/test_agent/global.yaml") + _configManager.loadGlobalConfig("/home/snoop/develop/path/go/src/git.loafle.net/overflow/overflow_probe/config_manager/test_agent/global.yaml") _configManager.loadCrawlerConfigAll() // remove test diff --git a/config_manager/init_method.go b/config_manager/init_method.go index c2710c2..b0e8b97 100644 --- a/config_manager/init_method.go +++ b/config_manager/init_method.go @@ -1,12 +1,12 @@ -package config_manager_go +package config_manager import ( - "loafle.com/overflow/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" ) //import ( -// "loafle.com/overflow/agent_api/observer" -// "loafle.com/overflow/agent_api/messages" +// "git.loafle.net/overflow/overflow_probe/agent_api/observer" +// "git.loafle.net/overflow/overflow_probe/agent_api/messages" //) // diff --git a/config_manager/test_agent/global.yaml b/config_manager/test_agent/global.yaml index 3c33324..d55eec9 100644 --- a/config_manager/test_agent/global.yaml +++ b/config_manager/test_agent/global.yaml @@ -3,7 +3,7 @@ central: port: 443 logPath: "./bin/log.xml" paths: - rootFolder : "/home/insanity/Develop/gopath/src/loafle.com/overflow/config_manager_go/test_agent/" + rootFolder : "/home/insanity/Develop/gopath/src/git.loafle.net/overflow/overflow_probe/config_manager/test_agent/" configFolder : "config/" binaryFolder : "container/" pidFolder : "pids/" diff --git a/crawler/health_crawler/activedirectory_protocol_crawler_go/ad_protocol_crawler.go b/crawler/health_crawler/activedirectory_protocol_crawler_go/ad_protocol_crawler.go index e33516f..7054792 100644 --- a/crawler/health_crawler/activedirectory_protocol_crawler_go/ad_protocol_crawler.go +++ b/crawler/health_crawler/activedirectory_protocol_crawler_go/ad_protocol_crawler.go @@ -1,11 +1,10 @@ -package activedirectory_protocol_crawler_go +package activedirectory_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/activedirectory" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/activedirectory" ) type ActiveDirectoryHealthCrawler struct { diff --git a/crawler/health_crawler/activedirectory_protocol_crawler_go/ad_protocol_crawler_test.go b/crawler/health_crawler/activedirectory_protocol_crawler_go/ad_protocol_crawler_test.go index a4a21f4..dce5e38 100644 --- a/crawler/health_crawler/activedirectory_protocol_crawler_go/ad_protocol_crawler_test.go +++ b/crawler/health_crawler/activedirectory_protocol_crawler_go/ad_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package activedirectory_protocol_crawler_go +package activedirectory_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/cassandra_protocol_crawler_go/cassandra_protocol_crawler.go b/crawler/health_crawler/cassandra_protocol_crawler_go/cassandra_protocol_crawler.go index 4e3f5f8..d322ad2 100644 --- a/crawler/health_crawler/cassandra_protocol_crawler_go/cassandra_protocol_crawler.go +++ b/crawler/health_crawler/cassandra_protocol_crawler_go/cassandra_protocol_crawler.go @@ -1,18 +1,18 @@ -package cassandra_protocol_crawler_go +package cassandra_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/cassandra" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/cassandra" ) type CassandraHealthCrawler struct { crawler.SocketHeahthCrawler } -func (r *CassandraHealthCrawler)Internal(params config.Config) ([]byte, error) { - +func (r *CassandraHealthCrawler) Internal(params config.Config) ([]byte, error) { + b, err := r.CheckHeahth(params) if err != nil { return nil, err diff --git a/crawler/health_crawler/cassandra_protocol_crawler_go/cassandra_protocol_crawler_test.go b/crawler/health_crawler/cassandra_protocol_crawler_go/cassandra_protocol_crawler_test.go index 34cce0d..151c9bc 100644 --- a/crawler/health_crawler/cassandra_protocol_crawler_go/cassandra_protocol_crawler_test.go +++ b/crawler/health_crawler/cassandra_protocol_crawler_go/cassandra_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package cassandra_protocol_crawler_go +package cassandra_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/dns_protocol_crawler_go/dns_protocol_crawler.go b/crawler/health_crawler/dns_protocol_crawler_go/dns_protocol_crawler.go index 83777fa..9a74d45 100644 --- a/crawler/health_crawler/dns_protocol_crawler_go/dns_protocol_crawler.go +++ b/crawler/health_crawler/dns_protocol_crawler_go/dns_protocol_crawler.go @@ -1,18 +1,18 @@ -package dns_protocol_crawler_go +package dns_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/dns" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/dns" ) type DNSHealthCrawler struct { crawler.SocketHeahthCrawler } -func (r *DNSHealthCrawler)Internal(params config.Config) ([]byte, error) { - +func (r *DNSHealthCrawler) Internal(params config.Config) ([]byte, error) { + b, err := r.CheckHeahth(params) if err != nil { return nil, err diff --git a/crawler/health_crawler/dns_protocol_crawler_go/dns_protocol_crawler_test.go b/crawler/health_crawler/dns_protocol_crawler_go/dns_protocol_crawler_test.go index 9d3dca3..1946018 100644 --- a/crawler/health_crawler/dns_protocol_crawler_go/dns_protocol_crawler_test.go +++ b/crawler/health_crawler/dns_protocol_crawler_go/dns_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package dns_protocol_crawler_go +package dns_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/ftp_protocol_crawler_go/ftp_health_matcher.go b/crawler/health_crawler/ftp_protocol_crawler_go/ftp_health_matcher.go index bc3d57e..c9da5c5 100644 --- a/crawler/health_crawler/ftp_protocol_crawler_go/ftp_health_matcher.go +++ b/crawler/health_crawler/ftp_protocol_crawler_go/ftp_health_matcher.go @@ -1,4 +1,4 @@ -package ftp_protocol_crawler_go +package ftp_protocol_crawler import ( "git.loafle.net/overflow/overflow_probe/matcher/packet" diff --git a/crawler/health_crawler/ftp_protocol_crawler_go/ftp_protocol_crawler.go b/crawler/health_crawler/ftp_protocol_crawler_go/ftp_protocol_crawler.go index 3611eff..907bbe5 100644 --- a/crawler/health_crawler/ftp_protocol_crawler_go/ftp_protocol_crawler.go +++ b/crawler/health_crawler/ftp_protocol_crawler_go/ftp_protocol_crawler.go @@ -1,19 +1,17 @@ -package ftp_protocol_crawler_go - +package ftp_protocol_crawler import ( - "git.loafle.net/overflow/overflow_probe/crawler" "encoding/json" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" ) type FTPHealthCrawler struct { crawler.SocketHeahthCrawler } +func (r *FTPHealthCrawler) Internal(params config.Config) ([]byte, error) { -func (r *FTPHealthCrawler)Internal(params config.Config) ([]byte, error) { - b, err := r.CheckHeahth(params) if err != nil { return nil, err @@ -28,6 +26,7 @@ func NewFTPHealthCrawler() *FTPHealthCrawler { return r } + ////////////// Delegate.Get implement ///////////////// //type FTPProtocol struct{} // diff --git a/crawler/health_crawler/ftp_protocol_crawler_go/ftp_protocol_crawler_test.go b/crawler/health_crawler/ftp_protocol_crawler_go/ftp_protocol_crawler_test.go index 6b708f6..78bf241 100644 --- a/crawler/health_crawler/ftp_protocol_crawler_go/ftp_protocol_crawler_test.go +++ b/crawler/health_crawler/ftp_protocol_crawler_go/ftp_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package ftp_protocol_crawler_go +package ftp_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/ftps_protocol_crawler_go/ftps_health_matcher.go b/crawler/health_crawler/ftps_protocol_crawler_go/ftps_health_matcher.go index 4add4e4..65a5c51 100644 --- a/crawler/health_crawler/ftps_protocol_crawler_go/ftps_health_matcher.go +++ b/crawler/health_crawler/ftps_protocol_crawler_go/ftps_health_matcher.go @@ -1,4 +1,4 @@ -package ftps_protocol_crawler_go +package ftps_protocol_crawler import ( "git.loafle.net/overflow/overflow_probe/matcher/packet" diff --git a/crawler/health_crawler/ftps_protocol_crawler_go/ftps_protocol_crawler.go b/crawler/health_crawler/ftps_protocol_crawler_go/ftps_protocol_crawler.go index bc43f73..fa7f1a9 100644 --- a/crawler/health_crawler/ftps_protocol_crawler_go/ftps_protocol_crawler.go +++ b/crawler/health_crawler/ftps_protocol_crawler_go/ftps_protocol_crawler.go @@ -1,19 +1,18 @@ -package ftps_protocol_crawler_go +package ftps_protocol_crawler import ( - "git.loafle.net/overflow/overflow_probe/crawler" "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/ftp" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/ftp" ) type FTPSHealthCrawler struct { crawler.SocketHeahthCrawler } - func (r *FTPSHealthCrawler) Internal(params config.Config) ([]byte, error) { - + b, err := r.CheckHeahth(params) if err != nil { return nil, err @@ -28,6 +27,7 @@ func NewFTPSHealthCrawler() *FTPSHealthCrawler { return r } + ////////////// Delegate.Get implement ///////////////// //type FTPSProtocol struct{} // diff --git a/crawler/health_crawler/ftps_protocol_crawler_go/ftps_protocol_crawler_test.go b/crawler/health_crawler/ftps_protocol_crawler_go/ftps_protocol_crawler_test.go index ef79280..f64dbde 100644 --- a/crawler/health_crawler/ftps_protocol_crawler_go/ftps_protocol_crawler_test.go +++ b/crawler/health_crawler/ftps_protocol_crawler_go/ftps_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package ftps_protocol_crawler_go +package ftps_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/http_protocol_crawler_go/crawler_protocol_http.go b/crawler/health_crawler/http_protocol_crawler_go/crawler_protocol_http.go index 102b032..7d4399a 100644 --- a/crawler/health_crawler/http_protocol_crawler_go/crawler_protocol_http.go +++ b/crawler/health_crawler/http_protocol_crawler_go/crawler_protocol_http.go @@ -1,18 +1,18 @@ -package http_protocol_crawler_go +package http_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/http" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/http" ) type HTTPHealthCrawler struct { crawler.SocketHeahthCrawler } -func (r *HTTPHealthCrawler)Internal(params config.Config) ([]byte, error) { - +func (r *HTTPHealthCrawler) Internal(params config.Config) ([]byte, error) { + b, err := r.CheckHeahth(params) if err != nil { return nil, err diff --git a/crawler/health_crawler/http_protocol_crawler_go/crawler_protocol_http_test.go b/crawler/health_crawler/http_protocol_crawler_go/crawler_protocol_http_test.go index 252c40d..4528c76 100644 --- a/crawler/health_crawler/http_protocol_crawler_go/crawler_protocol_http_test.go +++ b/crawler/health_crawler/http_protocol_crawler_go/crawler_protocol_http_test.go @@ -1,4 +1,4 @@ -package http_protocol_crawler_go +package http_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/imap_protocol_crawler_go/imap_protocol_crawler.go b/crawler/health_crawler/imap_protocol_crawler_go/imap_protocol_crawler.go index b8550d3..4c29685 100644 --- a/crawler/health_crawler/imap_protocol_crawler_go/imap_protocol_crawler.go +++ b/crawler/health_crawler/imap_protocol_crawler_go/imap_protocol_crawler.go @@ -1,18 +1,18 @@ -package imap_protocol_crawler_go +package imap_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/imap" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/imap" ) type IMAPHealthCrawler struct { crawler.SocketHeahthCrawler } -func (r *IMAPHealthCrawler)Internal(params config.Config) ([]byte, error) { - +func (r *IMAPHealthCrawler) Internal(params config.Config) ([]byte, error) { + b, err := r.CheckHeahth(params) if err != nil { return nil, err diff --git a/crawler/health_crawler/imap_protocol_crawler_go/imap_protocol_crawler_test.go b/crawler/health_crawler/imap_protocol_crawler_go/imap_protocol_crawler_test.go index 7fb00ad..0952302 100644 --- a/crawler/health_crawler/imap_protocol_crawler_go/imap_protocol_crawler_test.go +++ b/crawler/health_crawler/imap_protocol_crawler_go/imap_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package imap_protocol_crawler_go +package imap_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/ldap_protocol_crawler_go/ldap_protocol_crawler.go b/crawler/health_crawler/ldap_protocol_crawler_go/ldap_protocol_crawler.go index 6a19a8f..fbd9b45 100644 --- a/crawler/health_crawler/ldap_protocol_crawler_go/ldap_protocol_crawler.go +++ b/crawler/health_crawler/ldap_protocol_crawler_go/ldap_protocol_crawler.go @@ -1,18 +1,18 @@ -package ldap_protocol_crawler_go +package ldap_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/ldap" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/ldap" ) type LDAPHealthCrawler struct { crawler.SocketHeahthCrawler } -func (r *LDAPHealthCrawler)Internal(params config.Config) ([]byte, error) { - +func (r *LDAPHealthCrawler) Internal(params config.Config) ([]byte, error) { + b, err := r.CheckHeahth(params) if err != nil { return nil, err diff --git a/crawler/health_crawler/ldap_protocol_crawler_go/ldap_protocol_crawler_test.go b/crawler/health_crawler/ldap_protocol_crawler_go/ldap_protocol_crawler_test.go index aef4a73..03cc473 100644 --- a/crawler/health_crawler/ldap_protocol_crawler_go/ldap_protocol_crawler_test.go +++ b/crawler/health_crawler/ldap_protocol_crawler_go/ldap_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package ldap_protocol_crawler_go +package ldap_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/mongodb_protocol_crawler_go/mongodb_protocol.go b/crawler/health_crawler/mongodb_protocol_crawler_go/mongodb_protocol.go index 120ecc3..1d3efc8 100644 --- a/crawler/health_crawler/mongodb_protocol_crawler_go/mongodb_protocol.go +++ b/crawler/health_crawler/mongodb_protocol_crawler_go/mongodb_protocol.go @@ -1,18 +1,18 @@ -package mongodb_protocol_crawler_go +package mongodb_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/mongodb" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/mongodb" ) type MongoDBHealthCrawler struct { crawler.SocketHeahthCrawler } -func (r *MongoDBHealthCrawler)Internal(params config.Config) ([]byte, error) { - +func (r *MongoDBHealthCrawler) Internal(params config.Config) ([]byte, error) { + b, err := r.CheckHeahth(params) if err != nil { return nil, err diff --git a/crawler/health_crawler/mongodb_protocol_crawler_go/mongodb_protocol_test.go b/crawler/health_crawler/mongodb_protocol_crawler_go/mongodb_protocol_test.go index 618dcd9..952106e 100644 --- a/crawler/health_crawler/mongodb_protocol_crawler_go/mongodb_protocol_test.go +++ b/crawler/health_crawler/mongodb_protocol_crawler_go/mongodb_protocol_test.go @@ -1,4 +1,4 @@ -package mongodb_protocol_crawler_go +package mongodb_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/mssql_protocol_crawler_go/mssql_protocol.go b/crawler/health_crawler/mssql_protocol_crawler_go/mssql_protocol.go index 1888afc..d7b4fd4 100644 --- a/crawler/health_crawler/mssql_protocol_crawler_go/mssql_protocol.go +++ b/crawler/health_crawler/mssql_protocol_crawler_go/mssql_protocol.go @@ -1,10 +1,10 @@ -package mssql_protocol_crawler_go +package mssql_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/mssql" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/mssql" ) type MSSqlHeahthCrawler struct { @@ -12,7 +12,7 @@ type MSSqlHeahthCrawler struct { } func (r *MSSqlHeahthCrawler) Internal(params config.Config) ([]byte, error) { - + b, err := r.CheckHeahth(params) if err != nil { return nil, err diff --git a/crawler/health_crawler/mssql_protocol_crawler_go/mssql_protocol_test.go b/crawler/health_crawler/mssql_protocol_crawler_go/mssql_protocol_test.go index 8d96018..1e3318a 100644 --- a/crawler/health_crawler/mssql_protocol_crawler_go/mssql_protocol_test.go +++ b/crawler/health_crawler/mssql_protocol_crawler_go/mssql_protocol_test.go @@ -1,4 +1,4 @@ -package mssql_protocol_crawler_go +package mssql_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/mysql_protocol_crawler_go/mysql_protocol.go b/crawler/health_crawler/mysql_protocol_crawler_go/mysql_protocol.go index 3e88b2c..88247c8 100644 --- a/crawler/health_crawler/mysql_protocol_crawler_go/mysql_protocol.go +++ b/crawler/health_crawler/mysql_protocol_crawler_go/mysql_protocol.go @@ -1,19 +1,18 @@ -package mysql_protocol_crawler_go - +package mysql_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/mysql" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/mysql" ) type MysqlHeahthCrawler struct { crawler.SocketHeahthCrawler } -func (r *MysqlHeahthCrawler)Internal(params config.Config) ([]byte, error) { - +func (r *MysqlHeahthCrawler) Internal(params config.Config) ([]byte, error) { + b, err := r.CheckHeahth(params) if err != nil { return nil, err @@ -28,7 +27,6 @@ func NewMysqlHeahthCrawler() *MysqlHeahthCrawler { return r } - // //import ( // "encoding/json" diff --git a/crawler/health_crawler/mysql_protocol_crawler_go/mysql_protocol_test.go b/crawler/health_crawler/mysql_protocol_crawler_go/mysql_protocol_test.go index 5a158d0..dff9485 100644 --- a/crawler/health_crawler/mysql_protocol_crawler_go/mysql_protocol_test.go +++ b/crawler/health_crawler/mysql_protocol_crawler_go/mysql_protocol_test.go @@ -1,4 +1,4 @@ -package mysql_protocol_crawler_go +package mysql_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/netbios_protocol_crawler_go/netbios_protocol_crawler.go b/crawler/health_crawler/netbios_protocol_crawler_go/netbios_protocol_crawler.go index d5e58ea..b0789b5 100644 --- a/crawler/health_crawler/netbios_protocol_crawler_go/netbios_protocol_crawler.go +++ b/crawler/health_crawler/netbios_protocol_crawler_go/netbios_protocol_crawler.go @@ -1,11 +1,10 @@ -package netbios_protocol_crawler_go - +package netbios_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/netbios" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/netbios" ) type NetbiosHeahthCrawler struct { @@ -13,7 +12,7 @@ type NetbiosHeahthCrawler struct { } func (r *NetbiosHeahthCrawler) Internal(params config.Config) ([]byte, error) { - + b, err := r.CheckHeahth(params) if err != nil { return nil, err @@ -28,7 +27,6 @@ func NewNetbiosHeahthCrawler() *NetbiosHeahthCrawler { return r } - //import ( // "encoding/json" // "git.loafle.net/overflow/collector/core/scan/service/matcher/packet" diff --git a/crawler/health_crawler/netbios_protocol_crawler_go/netbios_protocol_crawler_test.go b/crawler/health_crawler/netbios_protocol_crawler_go/netbios_protocol_crawler_test.go index 79d63e7..efef6f3 100644 --- a/crawler/health_crawler/netbios_protocol_crawler_go/netbios_protocol_crawler_test.go +++ b/crawler/health_crawler/netbios_protocol_crawler_go/netbios_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package netbios_protocol_crawler_go +package netbios_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/oracle_protocol_crawler_go/oracle_protocol_crawler.go b/crawler/health_crawler/oracle_protocol_crawler_go/oracle_protocol_crawler.go index de42e75..eeff4b5 100644 --- a/crawler/health_crawler/oracle_protocol_crawler_go/oracle_protocol_crawler.go +++ b/crawler/health_crawler/oracle_protocol_crawler_go/oracle_protocol_crawler.go @@ -1,10 +1,10 @@ -package oracle_protocol_crawler_go +package oracle_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/oracle" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/oracle" ) type OracleHeahthCrawler struct { @@ -12,7 +12,7 @@ type OracleHeahthCrawler struct { } func (r *OracleHeahthCrawler) Internal(params config.Config) ([]byte, error) { - + b, err := r.CheckHeahth(params) if err != nil { return nil, err @@ -27,7 +27,6 @@ func NewOracleHeahthCrawler() *OracleHeahthCrawler { return r } - //package oracle_protocol_crawler // // diff --git a/crawler/health_crawler/oracle_protocol_crawler_go/oracle_protocol_crawler_test.go b/crawler/health_crawler/oracle_protocol_crawler_go/oracle_protocol_crawler_test.go index 6410f27..baefea6 100644 --- a/crawler/health_crawler/oracle_protocol_crawler_go/oracle_protocol_crawler_test.go +++ b/crawler/health_crawler/oracle_protocol_crawler_go/oracle_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package oracle_protocol_crawler_go +package oracle_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/pgsql_protocol_crawler_go/pgsql_protocol.go b/crawler/health_crawler/pgsql_protocol_crawler_go/pgsql_protocol.go index 1137021..ef0a56c 100644 --- a/crawler/health_crawler/pgsql_protocol_crawler_go/pgsql_protocol.go +++ b/crawler/health_crawler/pgsql_protocol_crawler_go/pgsql_protocol.go @@ -1,18 +1,18 @@ -package pgsql_protocol_crawler_go +package pgsql_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/pgsql" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/pgsql" ) type PGSqlHeahthCrawler struct { crawler.SocketHeahthCrawler } -func (r *PGSqlHeahthCrawler)Internal(params config.Config) ([]byte, error) { - +func (r *PGSqlHeahthCrawler) Internal(params config.Config) ([]byte, error) { + b, err := r.CheckHeahth(params) if err != nil { return nil, err diff --git a/crawler/health_crawler/pgsql_protocol_crawler_go/pgsql_protocol_test.go b/crawler/health_crawler/pgsql_protocol_crawler_go/pgsql_protocol_test.go index e53396d..27ba75b 100644 --- a/crawler/health_crawler/pgsql_protocol_crawler_go/pgsql_protocol_test.go +++ b/crawler/health_crawler/pgsql_protocol_crawler_go/pgsql_protocol_test.go @@ -1,4 +1,4 @@ -package pgsql_protocol_crawler_go +package pgsql_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/pop3_protocol_crawler_go/pop3_protocol_crawler.go b/crawler/health_crawler/pop3_protocol_crawler_go/pop3_protocol_crawler.go index 122af36..d0ab307 100644 --- a/crawler/health_crawler/pop3_protocol_crawler_go/pop3_protocol_crawler.go +++ b/crawler/health_crawler/pop3_protocol_crawler_go/pop3_protocol_crawler.go @@ -1,10 +1,10 @@ -package pop3_protocol_crawler_go +package pop3_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/pop" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/pop" ) type POP3HeahthCrawler struct { @@ -12,7 +12,7 @@ type POP3HeahthCrawler struct { } func (r *POP3HeahthCrawler) Internal(params config.Config) ([]byte, error) { - + b, err := r.CheckHeahth(params) if err != nil { return nil, err @@ -27,7 +27,6 @@ func NewPOP3HeahthCrawler() *POP3HeahthCrawler { return r } - //package pop3 // //import ( diff --git a/crawler/health_crawler/pop3_protocol_crawler_go/pop3_protocol_crawler_test.go b/crawler/health_crawler/pop3_protocol_crawler_go/pop3_protocol_crawler_test.go index 5d53171..e7e7f47 100644 --- a/crawler/health_crawler/pop3_protocol_crawler_go/pop3_protocol_crawler_test.go +++ b/crawler/health_crawler/pop3_protocol_crawler_go/pop3_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package pop3_protocol_crawler_go +package pop3_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/redis_protocol_crawler_go/redis_protocol.go b/crawler/health_crawler/redis_protocol_crawler_go/redis_protocol.go index 1c186d8..7dae6d3 100644 --- a/crawler/health_crawler/redis_protocol_crawler_go/redis_protocol.go +++ b/crawler/health_crawler/redis_protocol_crawler_go/redis_protocol.go @@ -1,10 +1,10 @@ -package redis_protocol_crawler_go +package redis_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/redis" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/redis" ) type RedisHeahthCrawler struct { diff --git a/crawler/health_crawler/redis_protocol_crawler_go/redis_protocol_test.go b/crawler/health_crawler/redis_protocol_crawler_go/redis_protocol_test.go index b26cc15..ad5e9ad 100644 --- a/crawler/health_crawler/redis_protocol_crawler_go/redis_protocol_test.go +++ b/crawler/health_crawler/redis_protocol_crawler_go/redis_protocol_test.go @@ -1,4 +1,4 @@ -package redis_protocol_crawler_go +package redis_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/rmi_protocol_crawler_go/rmi_protocol_crawler.go b/crawler/health_crawler/rmi_protocol_crawler_go/rmi_protocol_crawler.go index 9de61cd..2ab9185 100644 --- a/crawler/health_crawler/rmi_protocol_crawler_go/rmi_protocol_crawler.go +++ b/crawler/health_crawler/rmi_protocol_crawler_go/rmi_protocol_crawler.go @@ -1,18 +1,18 @@ -package rmi_protocol_crawler_go +package rmi_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/rmi" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/rmi" ) type RMIHeahthCrawler struct { crawler.SocketHeahthCrawler } -func (r *RMIHeahthCrawler)Internal(params config.Config) ([]byte, error) { - +func (r *RMIHeahthCrawler) Internal(params config.Config) ([]byte, error) { + b, err := r.CheckHeahth(params) if err != nil { return nil, err diff --git a/crawler/health_crawler/rmi_protocol_crawler_go/rmi_protocol_crawler_test.go b/crawler/health_crawler/rmi_protocol_crawler_go/rmi_protocol_crawler_test.go index 8fd63b6..cbef3b3 100644 --- a/crawler/health_crawler/rmi_protocol_crawler_go/rmi_protocol_crawler_test.go +++ b/crawler/health_crawler/rmi_protocol_crawler_go/rmi_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package rmi_protocol_crawler_go +package rmi_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/smb_protocol_crawler_go/smb_protocol_crawler.go b/crawler/health_crawler/smb_protocol_crawler_go/smb_protocol_crawler.go index ec1e916..59f78b7 100644 --- a/crawler/health_crawler/smb_protocol_crawler_go/smb_protocol_crawler.go +++ b/crawler/health_crawler/smb_protocol_crawler_go/smb_protocol_crawler.go @@ -1,10 +1,10 @@ -package smb_protocol_crawler_go +package smb_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/smb" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/smb" ) type SMBHeahthCrawler struct { @@ -12,7 +12,7 @@ type SMBHeahthCrawler struct { } func (r *SMBHeahthCrawler) Internal(params config.Config) ([]byte, error) { - + b, err := r.CheckHeahth(params) if err != nil { return nil, err @@ -27,7 +27,6 @@ func NewSMBHeahthCrawler() *SMBHeahthCrawler { return r } - //package smb_protocol_crawler // // diff --git a/crawler/health_crawler/smb_protocol_crawler_go/smb_protocol_crawler_test.go b/crawler/health_crawler/smb_protocol_crawler_go/smb_protocol_crawler_test.go index 4211fe7..589e397 100644 --- a/crawler/health_crawler/smb_protocol_crawler_go/smb_protocol_crawler_test.go +++ b/crawler/health_crawler/smb_protocol_crawler_go/smb_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package smb_protocol_crawler_go +package smb_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/smtp_protocol_crawler_go/smtp_protocol_crawler.go b/crawler/health_crawler/smtp_protocol_crawler_go/smtp_protocol_crawler.go index d9071e9..6b4b482 100644 --- a/crawler/health_crawler/smtp_protocol_crawler_go/smtp_protocol_crawler.go +++ b/crawler/health_crawler/smtp_protocol_crawler_go/smtp_protocol_crawler.go @@ -1,10 +1,10 @@ -package smtp_protocol_crawler_go +package smtp_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/smtp" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/smtp" ) type SMTPHeahthCrawler struct { @@ -12,7 +12,7 @@ type SMTPHeahthCrawler struct { } func (r *SMTPHeahthCrawler) Internal(params config.Config) ([]byte, error) { - + b, err := r.CheckHeahth(params) if err != nil { return nil, err @@ -27,7 +27,6 @@ func NewSMTPHeahthCrawler() *SMTPHeahthCrawler { return r } - //package smtp // //import ( diff --git a/crawler/health_crawler/smtp_protocol_crawler_go/smtp_protocol_crawler_test.go b/crawler/health_crawler/smtp_protocol_crawler_go/smtp_protocol_crawler_test.go index acac5ab..e9b5a28 100644 --- a/crawler/health_crawler/smtp_protocol_crawler_go/smtp_protocol_crawler_test.go +++ b/crawler/health_crawler/smtp_protocol_crawler_go/smtp_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package smtp_protocol_crawler_go +package smtp_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/snmpv2c_protocol_crawler_go/snmpv2c_protocol_crawler.go b/crawler/health_crawler/snmpv2c_protocol_crawler_go/snmpv2c_protocol_crawler.go index dd2a615..3034f8b 100644 --- a/crawler/health_crawler/snmpv2c_protocol_crawler_go/snmpv2c_protocol_crawler.go +++ b/crawler/health_crawler/snmpv2c_protocol_crawler_go/snmpv2c_protocol_crawler.go @@ -1,17 +1,17 @@ -package snmpv2c_protocol_crawler_go +package snmpv2c_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/snmp" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/snmp" ) type SNMPV2CHeahthCrawler struct { crawler.SocketHeahthCrawler } -func (r *SNMPV2CHeahthCrawler)Internal(params config.Config) ([]byte, error) { +func (r *SNMPV2CHeahthCrawler) Internal(params config.Config) ([]byte, error) { b, err := r.CheckHeahth(params) if err != nil { return nil, err @@ -26,7 +26,6 @@ func NewSNMPV2CHeahthCrawler() *SNMPV2CHeahthCrawler { return r } - //package snmpv2c_protocol_crawler // // diff --git a/crawler/health_crawler/snmpv2c_protocol_crawler_go/snmpv2c_protocol_crawler_test.go b/crawler/health_crawler/snmpv2c_protocol_crawler_go/snmpv2c_protocol_crawler_test.go index 2dd0564..8c2854a 100644 --- a/crawler/health_crawler/snmpv2c_protocol_crawler_go/snmpv2c_protocol_crawler_test.go +++ b/crawler/health_crawler/snmpv2c_protocol_crawler_go/snmpv2c_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package snmpv2c_protocol_crawler_go +package snmpv2c_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/snmpv3_protocol_crawler_go/snmpv3_protocol_crawler.go b/crawler/health_crawler/snmpv3_protocol_crawler_go/snmpv3_protocol_crawler.go index d343206..e645436 100644 --- a/crawler/health_crawler/snmpv3_protocol_crawler_go/snmpv3_protocol_crawler.go +++ b/crawler/health_crawler/snmpv3_protocol_crawler_go/snmpv3_protocol_crawler.go @@ -1,10 +1,10 @@ -package snmpv3_protocol_crawler_go +package snmpv3_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/snmp" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/snmp" ) type SNMPV3HeahthCrawler struct { @@ -12,7 +12,7 @@ type SNMPV3HeahthCrawler struct { } func (r *SNMPV3HeahthCrawler) Internal(params config.Config) ([]byte, error) { - + b, err := r.CheckHeahth(params) if err != nil { return nil, err diff --git a/crawler/health_crawler/snmpv3_protocol_crawler_go/snmpv3_protocol_crawler_test.go b/crawler/health_crawler/snmpv3_protocol_crawler_go/snmpv3_protocol_crawler_test.go index 1d8b62f..f3ab8ff 100644 --- a/crawler/health_crawler/snmpv3_protocol_crawler_go/snmpv3_protocol_crawler_test.go +++ b/crawler/health_crawler/snmpv3_protocol_crawler_go/snmpv3_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package snmpv3_protocol_crawler_go +package snmpv3_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/ssh_protocol_crawler_go/ssh_protocol_crawler.go b/crawler/health_crawler/ssh_protocol_crawler_go/ssh_protocol_crawler.go index cdc2935..93754fa 100644 --- a/crawler/health_crawler/ssh_protocol_crawler_go/ssh_protocol_crawler.go +++ b/crawler/health_crawler/ssh_protocol_crawler_go/ssh_protocol_crawler.go @@ -1,10 +1,10 @@ -package ssh_protocol_crawler_go +package ssh_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/ssh" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/ssh" ) type SSHHeahthCrawler struct { @@ -12,7 +12,7 @@ type SSHHeahthCrawler struct { } func (r *SSHHeahthCrawler) Internal(params config.Config) ([]byte, error) { - + b, err := r.CheckHeahth(params) if err != nil { return nil, err @@ -26,7 +26,6 @@ func NewSSHHeahthCrawler() *SSHHeahthCrawler { return r } - //package ssh_protocol_crawler // // diff --git a/crawler/health_crawler/ssh_protocol_crawler_go/ssh_protocol_crawler_test.go b/crawler/health_crawler/ssh_protocol_crawler_go/ssh_protocol_crawler_test.go index ba23ef0..5e82544 100644 --- a/crawler/health_crawler/ssh_protocol_crawler_go/ssh_protocol_crawler_test.go +++ b/crawler/health_crawler/ssh_protocol_crawler_go/ssh_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package ssh_protocol_crawler_go +package ssh_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/telnet_protocol_crawler_go/crawler_protocol_telnet.go b/crawler/health_crawler/telnet_protocol_crawler_go/crawler_protocol_telnet.go index f0fce13..2a4a66c 100644 --- a/crawler/health_crawler/telnet_protocol_crawler_go/crawler_protocol_telnet.go +++ b/crawler/health_crawler/telnet_protocol_crawler_go/crawler_protocol_telnet.go @@ -1,18 +1,18 @@ -package telnet_protocol_crawler_go +package telnet_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/telnet" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/telnet" ) type TelnetHeahthCrawler struct { crawler.SocketHeahthCrawler } -func (r *TelnetHeahthCrawler)Internal(params config.Config) ([]byte, error) { - +func (r *TelnetHeahthCrawler) Internal(params config.Config) ([]byte, error) { + b, err := r.CheckHeahth(params) if err != nil { return nil, err @@ -27,7 +27,6 @@ func NewTelnetHeahthCrawler() *TelnetHeahthCrawler { return r } - //package main // //import ( diff --git a/crawler/health_crawler/telnet_protocol_crawler_go/crawler_protocol_telnet_test.go b/crawler/health_crawler/telnet_protocol_crawler_go/crawler_protocol_telnet_test.go index 57dee76..f53c450 100644 --- a/crawler/health_crawler/telnet_protocol_crawler_go/crawler_protocol_telnet_test.go +++ b/crawler/health_crawler/telnet_protocol_crawler_go/crawler_protocol_telnet_test.go @@ -1,4 +1,4 @@ -package telnet_protocol_crawler_go +package telnet_protocol_crawler import ( "encoding/json" diff --git a/crawler/health_crawler/wmi_protocol_crawler_go/wmi_protocol_crawler.go b/crawler/health_crawler/wmi_protocol_crawler_go/wmi_protocol_crawler.go index 96e9539..212f8bd 100644 --- a/crawler/health_crawler/wmi_protocol_crawler_go/wmi_protocol_crawler.go +++ b/crawler/health_crawler/wmi_protocol_crawler_go/wmi_protocol_crawler.go @@ -1,18 +1,18 @@ -package wmi_protocol_crawler_go +package wmi_protocol_crawler import ( "encoding/json" - "git.loafle.net/overflow/overflow_probe/matcher/wmi" - "git.loafle.net/overflow/overflow_probe/crawler" config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/crawler" + "git.loafle.net/overflow/overflow_probe/matcher/wmi" ) type WMIHeahthCrawler struct { crawler.SocketHeahthCrawler } -func (r *WMIHeahthCrawler)Internal(params config.Config) ([]byte, error) { - +func (r *WMIHeahthCrawler) Internal(params config.Config) ([]byte, error) { + b, err := r.CheckHeahth(params) if err != nil { return nil, err @@ -27,7 +27,6 @@ func NewWMIHeahthCrawler() *WMIHeahthCrawler { return r } - //package wmi_protocol_crawler // //import ( diff --git a/crawler/health_crawler/wmi_protocol_crawler_go/wmi_protocol_crawler_test.go b/crawler/health_crawler/wmi_protocol_crawler_go/wmi_protocol_crawler_test.go index 78c991f..0abf64c 100644 --- a/crawler/health_crawler/wmi_protocol_crawler_go/wmi_protocol_crawler_test.go +++ b/crawler/health_crawler/wmi_protocol_crawler_go/wmi_protocol_crawler_test.go @@ -1,4 +1,4 @@ -package wmi_protocol_crawler_go +package wmi_protocol_crawler import ( "encoding/json" diff --git a/crawler/socket_health_crawler.go b/crawler/socket_health_crawler.go index fe33117..16ff429 100644 --- a/crawler/socket_health_crawler.go +++ b/crawler/socket_health_crawler.go @@ -2,11 +2,11 @@ package crawler import ( "crypto/tls" + config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" "git.loafle.net/overflow/overflow_probe/matcher" "git.loafle.net/overflow/overflow_probe/matcher/packet" - "net" "git.loafle.net/overflow/overflow_probe/model/scaninfo" - config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "net" ) type SocketHeahthCrawler struct { @@ -62,7 +62,7 @@ func (s *SocketHeahthCrawler) CheckHeahth(params config.Config) (bool, error) { defer conn.Close() connection := params.Target.Connection - info := scaninfo.NewScanInfoImpl(connection.Ip,connection.Port) + info := scaninfo.NewScanInfoImpl(connection.Ip, connection.Port) if s.m.IsPrePacket() == true { bytes := make([]byte, 1024) diff --git a/crawler/test/crawler_test.go b/crawler/test/crawler_test.go index 9326b88..b35fa1c 100644 --- a/crawler/test/crawler_test.go +++ b/crawler/test/crawler_test.go @@ -3,7 +3,7 @@ package test import ( "encoding/json" "git.loafle.net/overflow/overflow_probe/crawler" - "git.loafle.net/overflow/overflow_probe/crawler/health_crawler/redis_protocol_crawler_go" + "git.loafle.net/overflow/overflow_probe/crawler/health_crawler/redis_protocol_crawler" "github.com/stretchr/testify/assert" "testing" @@ -12,7 +12,7 @@ import ( func initConfig() crawler.CrawlerImpl { c := crawler.CrawlerImpl{} - c.SetInternal(redis_protocol_crawler_go.NewRedisHeahthCrawler()) + c.SetInternal(redis_protocol_crawler.NewRedisHeahthCrawler()) b, _ := ioutil.ReadFile("./example.json") diff --git a/crawler_manager/crawler_communicator.go b/crawler_manager/crawler_communicator.go index 4b95225..318b0b2 100644 --- a/crawler_manager/crawler_communicator.go +++ b/crawler_manager/crawler_communicator.go @@ -2,12 +2,12 @@ package crawler_manager import ( "context" - g "git.loafle.net/overflow/crawler_go/grpc" + g "git.loafle.net/overflow/overflow_probe/crawler/grpc" "google.golang.org/grpc" "log" "encoding/json" - "git.loafle.net/overflow/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" ) func callAdd(container *string, conf *config_manager.Config) bool { @@ -117,7 +117,7 @@ func callInitConfig(container *string, cl []*config_manager.Config) bool { // for _, path := range *paths { // // in := &g.Init{} -// //in.Path = "/home/snoop/develop/path/go/src/loafle.com/overflow/crawler_go/config/" +// //in.Path = "/home/snoop/develop/path/go/src/git.loafle.net/overflow/overflow_probe/crawler/config/" // in.Path = path + "/" // bcn := filepath.Base(path) // bcn = strings.ToUpper(bcn) diff --git a/crawler_manager/crawler_manager.go b/crawler_manager/crawler_manager.go index 67920b6..a42bc68 100644 --- a/crawler_manager/crawler_manager.go +++ b/crawler_manager/crawler_manager.go @@ -1,7 +1,7 @@ package crawler_manager import ( - //"git.loafle.net/overflow/crawler_go/config" + //"git.loafle.net/overflow/overflow_probe/crawler/config" //"encoding/json" "google.golang.org/grpc" "io/ioutil" @@ -12,7 +12,7 @@ import ( "time" "errors" - "git.loafle.net/overflow/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" ) const ( diff --git a/crawler_manager/crawler_manager_event.go b/crawler_manager/crawler_manager_event.go index 8d553a9..2d8d0a0 100644 --- a/crawler_manager/crawler_manager_event.go +++ b/crawler_manager/crawler_manager_event.go @@ -1,12 +1,12 @@ package crawler_manager import ( - //ooo "git.loafle.net/overflow/agent_api/observer" - //"git.loafle.net/overflow/agent_api/config_manager" - //"git.loafle.net/overflow/agent_api/messages" + //ooo "git.loafle.net/overflow/overflow_probe/agent_api/observer" + //"git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + //"git.loafle.net/overflow/overflow_probe/agent_api/messages" // //"fmt" - "git.loafle.net/overflow/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" ) func Start(res chan bool, conMgr config_manager.ConfigManager) { diff --git a/crawler_manager/crawler_manager_test.go b/crawler_manager/crawler_manager_test.go index 9e2e8fb..2d624d3 100644 --- a/crawler_manager/crawler_manager_test.go +++ b/crawler_manager/crawler_manager_test.go @@ -14,7 +14,7 @@ import ( "encoding/json" "fmt" - "git.loafle.net/overflow/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" ) func TestCallInit(t *testing.T) { @@ -99,13 +99,13 @@ func TestCom(t *testing.T) { func TestReadConfig(t *testing.T) { - //c := ReadConfig("/home/snoop/develop/path/go/src/loafle.com/overflow/crawler_go/config/example.json") + //c := ReadConfig("/home/snoop/develop/path/go/src/git.loafle.net/overflow/overflow_probe/crawler/config/example.json") //t.Log(c) } func TestDir(t *testing.T) { - a := filepath.Dir("/home/snoop/develop/path/go/src/loafle.com/overflow/crawler_go/config/example.json") + a := filepath.Dir("/home/snoop/develop/path/go/src/git.loafle.net/overflow/overflow_probe/crawler/config/example.json") t.Log(a) } @@ -124,7 +124,7 @@ func TestDir22(t *testing.T) { func TestCrateDir(t *testing.T) { - cp := "/home/snoop/develop/path/go/src/loafle.com/overflow/crawler_manager_go/" + cp := "/home/snoop/develop/path/go/src/git.loafle.net/overflow/overflow_probe/crawler_manager/" var configPath []string @@ -196,7 +196,7 @@ func TestDirs(t *testing.T) { func TestSplitPath(t *testing.T) { - ff := "/home/snoop/develop/path/go/src/loafle.com/overflow/crawler_go/config/ffff" + ff := "/home/snoop/develop/path/go/src/git.loafle.net/overflow/overflow_probe/crawler/config/ffff" a := filepath.Dir(ff) t.Log(a) a = filepath.Clean(a) @@ -350,7 +350,7 @@ func TestMock(t *testing.T) { func TestRPC(t *testing.T) { //c := conMgr.NewConfigManager() - //c.LoadGlobalConfigTTT("/home/snoop/develop/path/go/src/loafle.com/overflow/config_manager_go/test_agent/global.yaml") + //c.LoadGlobalConfigTTT("/home/snoop/develop/path/go/src/git.loafle.net/overflow/overflow_probe/config_manager/test_agent/global.yaml") //c.LoadCrawlerConfigAllTTT() // //observer.Notify(messages.CONFIGMANAGER_LOADED,c) diff --git a/data_sender/data_sender.go b/data_sender/data_sender.go index bd11525..3530d70 100644 --- a/data_sender/data_sender.go +++ b/data_sender/data_sender.go @@ -1,11 +1,11 @@ -package data_sender_go +package data_sender import ( "encoding/json" - cm "git.loafle.net/overflow/agent_api/config_manager" - "git.loafle.net/overflow/agent_api/messages" - pb "git.loafle.net/overflow/crawler_go/grpc" - q "git.loafle.net/overflow/queue_go" + cm "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + "git.loafle.net/overflow/overflow_probe/agent_api/messages" + pb "git.loafle.net/overflow/overflow_probe/crawler/grpc" + q "git.loafle.net/overflow/overflow_probe/queue" "io/ioutil" "log" "os" diff --git a/data_sender/data_sender_test.go b/data_sender/data_sender_test.go index dd0c8e0..7318d24 100644 --- a/data_sender/data_sender_test.go +++ b/data_sender/data_sender_test.go @@ -1,7 +1,7 @@ -package data_sender_go +package data_sender import ( - "git.loafle.net/overflow/agent_api/observer" + "git.loafle.net/overflow/overflow_probe/agent_api/observer" "strconv" "testing" "time" diff --git a/discovery/bootstrap/bootstrap.go b/discovery/bootstrap/bootstrap.go index 749e562..9bb939b 100644 --- a/discovery/bootstrap/bootstrap.go +++ b/discovery/bootstrap/bootstrap.go @@ -3,8 +3,8 @@ package main import ( "flag" "fmt" - "git.loafle.net/overflow/discovery" - "git.loafle.net/overflow/discovery/conf" + "git.loafle.net/overflow/overflow_probe/discovery" + "git.loafle.net/overflow/overflow_probe/discovery/conf" log "github.com/cihub/seelog" "os" "runtime" diff --git a/discovery/collector.go b/discovery/collector.go index d6aab60..b4aa49f 100644 --- a/discovery/collector.go +++ b/discovery/collector.go @@ -1,8 +1,8 @@ package collector import ( - "git.loafle.net/overflow/discovery/discovery" - "git.loafle.net/overflow/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/discovery/discovery" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" log "github.com/cihub/seelog" "os/exec" "sync" diff --git a/discovery/collector_test.go b/discovery/collector_test.go index 23d2013..2956ad7 100644 --- a/discovery/collector_test.go +++ b/discovery/collector_test.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/json" "fmt" - "git.loafle.net/overflow/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" "io/ioutil" "net/http" "strconv" diff --git a/discovery/communicate/communicate.go b/discovery/communicate/communicate.go index a2bb6d2..54cbfd5 100644 --- a/discovery/communicate/communicate.go +++ b/discovery/communicate/communicate.go @@ -2,7 +2,7 @@ package communicate import ( "fmt" - //"git.loafle.net/overflow/central/client/events" + //"git.loafle.net/overflow/overflow_probe/central/client/events" ) var _c *communicator = nil diff --git a/discovery/communicate/communicate_test.go b/discovery/communicate/communicate_test.go index 3e5ccd0..569f33e 100644 --- a/discovery/communicate/communicate_test.go +++ b/discovery/communicate/communicate_test.go @@ -8,7 +8,7 @@ import ( "gopkg.in/gin-gonic/gin.v1" "io/ioutil" - "git.loafle.net/overflow/central/client/events" + "git.loafle.net/overflow/overflow_probe/central/client/events" "net/http" "net/http/httptest" "testing" diff --git a/discovery/communicate/communicator.go b/discovery/communicate/communicator.go index 6d4f5ec..70bc4f8 100644 --- a/discovery/communicate/communicator.go +++ b/discovery/communicate/communicator.go @@ -3,8 +3,8 @@ package communicate import ( //"bytes" //"compress/gzip" -//"git.loafle.net/overflow/discovery/communicate/events" -//"git.loafle.net/overflow/central/client/events" +//"git.loafle.net/overflow/overflow_probe/discovery/communicate/events" +//"git.loafle.net/overflow/overflow_probe/central/client/events" ) type communicator struct { diff --git a/discovery/communicate/communicator_test.go b/discovery/communicate/communicator_test.go index 1edf2c7..56a9ccd 100644 --- a/discovery/communicate/communicator_test.go +++ b/discovery/communicate/communicator_test.go @@ -4,8 +4,8 @@ import ( "bytes" "encoding/json" - "git.loafle.net/overflow/central/client/events" - "git.loafle.net/overflow/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/central/client/events" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" "net/http" "testing" ) diff --git a/discovery/conf/conf.go b/discovery/conf/conf.go index 7151840..e7c865d 100644 --- a/discovery/conf/conf.go +++ b/discovery/conf/conf.go @@ -6,8 +6,8 @@ import ( "github.com/cihub/seelog" "gopkg.in/yaml.v2" "io/ioutil" - //"git.loafle.net/overflow/discovery/communicate" - //"git.loafle.net/overflow/overflow.collector_backup2/src/git.loafle.net/overflow/discovery/communicate" + //"git.loafle.net/overflow/overflow_probe/discovery/communicate" + //"git.loafle.net/overflow/overflow_probe/overflow.collector_backup2/src/git.loafle.net/overflow/overflow_probe/discovery/communicate" ) type Config struct { diff --git a/discovery/core/pcapwrapper/pcap.go b/discovery/core/pcapwrapper/pcap.go index 708f1f6..2669aa2 100644 --- a/discovery/core/pcapwrapper/pcap.go +++ b/discovery/core/pcapwrapper/pcap.go @@ -1,7 +1,7 @@ package pcap import ( - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "sync" ) diff --git a/discovery/core/pcapwrapper/pcap_test.go b/discovery/core/pcapwrapper/pcap_test.go index 856b5a5..2b5a51d 100644 --- a/discovery/core/pcapwrapper/pcap_test.go +++ b/discovery/core/pcapwrapper/pcap_test.go @@ -2,7 +2,7 @@ package pcap import ( "fmt" - "git.loafle.net/overflow/discovery/core/scan/zone" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/zone" "github.com/stretchr/testify/assert" "testing" ) diff --git a/discovery/core/pcapwrapper/pcapwrapper.go b/discovery/core/pcapwrapper/pcapwrapper.go index 796cc02..a293cce 100644 --- a/discovery/core/pcapwrapper/pcapwrapper.go +++ b/discovery/core/pcapwrapper/pcapwrapper.go @@ -1,7 +1,7 @@ package pcap import ( - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "github.com/google/gopacket" "github.com/google/gopacket/layers" "github.com/google/gopacket/pcap" diff --git a/discovery/core/scan/host/host.go b/discovery/core/scan/host/host.go index aa4286b..a917c0c 100644 --- a/discovery/core/scan/host/host.go +++ b/discovery/core/scan/host/host.go @@ -1,9 +1,9 @@ package host import ( - p "git.loafle.net/overflow/discovery/core/pcapwrapper" - "git.loafle.net/overflow/discovery/discovery/types" - "git.loafle.net/overflow/discovery/util/converter" + p "git.loafle.net/overflow/overflow_probe/discovery/core/pcapwrapper" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/util/converter" log "github.com/cihub/seelog" "github.com/google/gopacket" "github.com/google/gopacket/layers" diff --git a/discovery/core/scan/port/tcp/tcp.go b/discovery/core/scan/port/tcp/tcp.go index 88c6495..43f3cea 100644 --- a/discovery/core/scan/port/tcp/tcp.go +++ b/discovery/core/scan/port/tcp/tcp.go @@ -1,19 +1,19 @@ package tcp import ( - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "net" "time" - "git.loafle.net/overflow/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" log "github.com/cihub/seelog" "github.com/google/gopacket" "github.com/google/gopacket/layers" - //"git.loafle.net/overflow/central/client/events" - //"git.loafle.net/overflow/discovery/communicate" - pw "git.loafle.net/overflow/discovery/core/pcapwrapper" - "git.loafle.net/overflow/discovery/util/converter" + //"git.loafle.net/overflow/overflow_probe/central/client/events" + //"git.loafle.net/overflow/overflow_probe/discovery/communicate" + pw "git.loafle.net/overflow/overflow_probe/discovery/core/pcapwrapper" + "git.loafle.net/overflow/overflow_probe/discovery/util/converter" ) type tcpRecvCallback func(tcp *layers.TCP) diff --git a/discovery/core/scan/port/tcp/tcp_test.go b/discovery/core/scan/port/tcp/tcp_test.go index 89f0ee9..e87bcbd 100644 --- a/discovery/core/scan/port/tcp/tcp_test.go +++ b/discovery/core/scan/port/tcp/tcp_test.go @@ -2,8 +2,8 @@ package tcp import ( "fmt" - "git.loafle.net/overflow/discovery/discovery/types" - "git.loafle.net/overflow/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" "testing" "github.com/google/gopacket/layers" diff --git a/discovery/core/scan/port/udp/udp.go b/discovery/core/scan/port/udp/udp.go index 5491cf4..702dff0 100644 --- a/discovery/core/scan/port/udp/udp.go +++ b/discovery/core/scan/port/udp/udp.go @@ -1,18 +1,18 @@ package udp import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" log "github.com/cihub/seelog" "net" "time" "github.com/google/gopacket" - //"git.loafle.net/overflow/central/client/events" - //"git.loafle.net/overflow/discovery/communicate" - pw "git.loafle.net/overflow/discovery/core/pcapwrapper" + //"git.loafle.net/overflow/overflow_probe/central/client/events" + //"git.loafle.net/overflow/overflow_probe/discovery/communicate" + pw "git.loafle.net/overflow/overflow_probe/discovery/core/pcapwrapper" ) type udpRecvCallback func(packet gopacket.Packet) diff --git a/discovery/core/scan/port/udp/udp_test.go b/discovery/core/scan/port/udp/udp_test.go index 335d007..7c0a0fd 100644 --- a/discovery/core/scan/port/udp/udp_test.go +++ b/discovery/core/scan/port/udp/udp_test.go @@ -2,8 +2,8 @@ package udp import ( "fmt" - "git.loafle.net/overflow/discovery/discovery/types" - "git.loafle.net/overflow/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" "github.com/google/gopacket" "testing" ) diff --git a/discovery/core/scan/service/matcher/activedirectory/activedirectory.go b/discovery/core/scan/service/matcher/activedirectory/activedirectory.go index d9e9b15..cb24d2b 100644 --- a/discovery/core/scan/service/matcher/activedirectory/activedirectory.go +++ b/discovery/core/scan/service/matcher/activedirectory/activedirectory.go @@ -4,8 +4,8 @@ import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) const ( diff --git a/discovery/core/scan/service/matcher/activedirectory/activedirectory_test.go b/discovery/core/scan/service/matcher/activedirectory/activedirectory_test.go index 0c6204c..388d703 100644 --- a/discovery/core/scan/service/matcher/activedirectory/activedirectory_test.go +++ b/discovery/core/scan/service/matcher/activedirectory/activedirectory_test.go @@ -2,7 +2,7 @@ package activedirectory import ( "fmt" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "net" "testing" diff --git a/discovery/core/scan/service/matcher/cassandra/cassandra.go b/discovery/core/scan/service/matcher/cassandra/cassandra.go index adc33d6..3279b75 100644 --- a/discovery/core/scan/service/matcher/cassandra/cassandra.go +++ b/discovery/core/scan/service/matcher/cassandra/cassandra.go @@ -3,8 +3,8 @@ package cassandra import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) const ( diff --git a/discovery/core/scan/service/matcher/cassandra/cassandra_test.go b/discovery/core/scan/service/matcher/cassandra/cassandra_test.go index 461cb1a..946607c 100644 --- a/discovery/core/scan/service/matcher/cassandra/cassandra_test.go +++ b/discovery/core/scan/service/matcher/cassandra/cassandra_test.go @@ -2,7 +2,7 @@ package cassandra import ( "crypto/tls" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/dhcp/dhcp.go b/discovery/core/scan/service/matcher/dhcp/dhcp.go index 1cac9d6..950bf1d 100644 --- a/discovery/core/scan/service/matcher/dhcp/dhcp.go +++ b/discovery/core/scan/service/matcher/dhcp/dhcp.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/binary" "fmt" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" log "github.com/cihub/seelog" "net" "time" diff --git a/discovery/core/scan/service/matcher/dhcp/dhcp_test.go b/discovery/core/scan/service/matcher/dhcp/dhcp_test.go index 4831c66..a00ace2 100644 --- a/discovery/core/scan/service/matcher/dhcp/dhcp_test.go +++ b/discovery/core/scan/service/matcher/dhcp/dhcp_test.go @@ -1,7 +1,7 @@ package dhcp import ( - "git.loafle.net/overflow/discovery/core/scan/zone" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/zone" "testing" ) diff --git a/discovery/core/scan/service/matcher/dns/dns.go b/discovery/core/scan/service/matcher/dns/dns.go index 8cef006..4c79046 100644 --- a/discovery/core/scan/service/matcher/dns/dns.go +++ b/discovery/core/scan/service/matcher/dns/dns.go @@ -3,8 +3,8 @@ package dns import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) type Dns_frame_header struct { diff --git a/discovery/core/scan/service/matcher/dns/dns_test.go b/discovery/core/scan/service/matcher/dns/dns_test.go index e9de4ec..c7a7cd8 100644 --- a/discovery/core/scan/service/matcher/dns/dns_test.go +++ b/discovery/core/scan/service/matcher/dns/dns_test.go @@ -1,7 +1,7 @@ package dns import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/ftp/ftp.go b/discovery/core/scan/service/matcher/ftp/ftp.go index cdefdb2..662aea0 100644 --- a/discovery/core/scan/service/matcher/ftp/ftp.go +++ b/discovery/core/scan/service/matcher/ftp/ftp.go @@ -1,8 +1,8 @@ package ftp import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" log "github.com/cihub/seelog" ) diff --git a/discovery/core/scan/service/matcher/ftp/ftp_test.go b/discovery/core/scan/service/matcher/ftp/ftp_test.go index 5774889..f957b4d 100644 --- a/discovery/core/scan/service/matcher/ftp/ftp_test.go +++ b/discovery/core/scan/service/matcher/ftp/ftp_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" - "git.loafle.net/overflow/discovery/discovery/scan/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/scan/matcher/scaninfo" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/scaninfo" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" log "github.com/cihub/seelog" "net" ) diff --git a/discovery/core/scan/service/matcher/http/http.go b/discovery/core/scan/service/matcher/http/http.go index a2ea5b6..d9e3b59 100644 --- a/discovery/core/scan/service/matcher/http/http.go +++ b/discovery/core/scan/service/matcher/http/http.go @@ -1,8 +1,8 @@ package http import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "strings" ) diff --git a/discovery/core/scan/service/matcher/http/http_test.go b/discovery/core/scan/service/matcher/http/http_test.go index bf6d4e2..9bb8cf4 100644 --- a/discovery/core/scan/service/matcher/http/http_test.go +++ b/discovery/core/scan/service/matcher/http/http_test.go @@ -2,8 +2,8 @@ package http import ( "fmt" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/http/https_test.go b/discovery/core/scan/service/matcher/http/https_test.go index ca78b9c..7f9a8d3 100644 --- a/discovery/core/scan/service/matcher/http/https_test.go +++ b/discovery/core/scan/service/matcher/http/https_test.go @@ -3,7 +3,7 @@ package http import ( "crypto/tls" "fmt" - "git.loafle.net/overflow/discovery/discovery/scan/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/packet" "log" "net" "testing" diff --git a/discovery/core/scan/service/matcher/imap/imap.go b/discovery/core/scan/service/matcher/imap/imap.go index a1ea546..d92a029 100644 --- a/discovery/core/scan/service/matcher/imap/imap.go +++ b/discovery/core/scan/service/matcher/imap/imap.go @@ -1,8 +1,8 @@ package imap import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) const ( diff --git a/discovery/core/scan/service/matcher/imap/imap_test.go b/discovery/core/scan/service/matcher/imap/imap_test.go index d3b7b0c..013ed19 100644 --- a/discovery/core/scan/service/matcher/imap/imap_test.go +++ b/discovery/core/scan/service/matcher/imap/imap_test.go @@ -3,9 +3,9 @@ package imap import ( "crypto/tls" "fmt" - "git.loafle.net/overflow/discovery/discovery/scan/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/scan/matcher/scaninfo" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/scaninfo" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/ldap/ldap.go b/discovery/core/scan/service/matcher/ldap/ldap.go index 18c3b63..b3aa1d4 100644 --- a/discovery/core/scan/service/matcher/ldap/ldap.go +++ b/discovery/core/scan/service/matcher/ldap/ldap.go @@ -3,8 +3,8 @@ package ldap import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) type LDAPMatcher struct { diff --git a/discovery/core/scan/service/matcher/ldap/ldap_test.go b/discovery/core/scan/service/matcher/ldap/ldap_test.go index 9b970bb..deb630a 100644 --- a/discovery/core/scan/service/matcher/ldap/ldap_test.go +++ b/discovery/core/scan/service/matcher/ldap/ldap_test.go @@ -3,9 +3,9 @@ package ldap import ( "crypto/tls" "fmt" - "git.loafle.net/overflow/discovery/discovery/scan/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/scan/matcher/scaninfo" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/scaninfo" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/matcher.go b/discovery/core/scan/service/matcher/matcher.go index 520fbef..3039c94 100644 --- a/discovery/core/scan/service/matcher/matcher.go +++ b/discovery/core/scan/service/matcher/matcher.go @@ -1,29 +1,29 @@ package matcher import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/activedirectory" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/cassandra" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/dns" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/ftp" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/http" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/imap" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/ldap" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/mongodb" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/mssql" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/mysql" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/netbios" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/oracle" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/pop" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/redis" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/rmi" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/smb" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/smtp" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/snmp" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/ssh" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/telnet" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/wmi" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/activedirectory" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/cassandra" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/dns" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/ftp" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/http" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/imap" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/ldap" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/mongodb" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/mssql" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/mysql" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/netbios" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/oracle" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/pop" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/redis" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/rmi" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/smb" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/smtp" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/snmp" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/ssh" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/telnet" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/wmi" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) var ( diff --git a/discovery/core/scan/service/matcher/mongodb/mongodb.go b/discovery/core/scan/service/matcher/mongodb/mongodb.go index 248a2c5..5a564c2 100644 --- a/discovery/core/scan/service/matcher/mongodb/mongodb.go +++ b/discovery/core/scan/service/matcher/mongodb/mongodb.go @@ -5,8 +5,8 @@ import ( "encoding/binary" "math/rand" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) const ( diff --git a/discovery/core/scan/service/matcher/mongodb/mongodb_test.go b/discovery/core/scan/service/matcher/mongodb/mongodb_test.go index bf20e03..e791d00 100644 --- a/discovery/core/scan/service/matcher/mongodb/mongodb_test.go +++ b/discovery/core/scan/service/matcher/mongodb/mongodb_test.go @@ -2,7 +2,7 @@ package mongodb import ( "crypto/tls" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/mssql/mssql.go b/discovery/core/scan/service/matcher/mssql/mssql.go index 6c1dba1..55740b0 100644 --- a/discovery/core/scan/service/matcher/mssql/mssql.go +++ b/discovery/core/scan/service/matcher/mssql/mssql.go @@ -3,8 +3,8 @@ package mssql import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) const ( diff --git a/discovery/core/scan/service/matcher/mssql/mssql_test.go b/discovery/core/scan/service/matcher/mssql/mssql_test.go index dce94e6..31d6856 100644 --- a/discovery/core/scan/service/matcher/mssql/mssql_test.go +++ b/discovery/core/scan/service/matcher/mssql/mssql_test.go @@ -1,7 +1,7 @@ package mssql import ( - "git.loafle.net/overflow/discovery/discovery/scan/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/packet" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/mysql/mysql.go b/discovery/core/scan/service/matcher/mysql/mysql.go index fee16d1..73b4012 100644 --- a/discovery/core/scan/service/matcher/mysql/mysql.go +++ b/discovery/core/scan/service/matcher/mysql/mysql.go @@ -4,8 +4,8 @@ import ( "bytes" "encoding/binary" "fmt" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "strconv" "strings" ) diff --git a/discovery/core/scan/service/matcher/mysql/mysql_test.go b/discovery/core/scan/service/matcher/mysql/mysql_test.go index b94be2b..b8f6fb9 100644 --- a/discovery/core/scan/service/matcher/mysql/mysql_test.go +++ b/discovery/core/scan/service/matcher/mysql/mysql_test.go @@ -2,7 +2,7 @@ package mysql import ( "crypto/tls" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/netbios/netbios.go b/discovery/core/scan/service/matcher/netbios/netbios.go index bb21428..e54a42b 100644 --- a/discovery/core/scan/service/matcher/netbios/netbios.go +++ b/discovery/core/scan/service/matcher/netbios/netbios.go @@ -3,8 +3,8 @@ package netbios import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) const ( diff --git a/discovery/core/scan/service/matcher/netbios/netbios_test.go b/discovery/core/scan/service/matcher/netbios/netbios_test.go index 587d73e..ac8a869 100644 --- a/discovery/core/scan/service/matcher/netbios/netbios_test.go +++ b/discovery/core/scan/service/matcher/netbios/netbios_test.go @@ -1,7 +1,7 @@ package netbios import ( - "git.loafle.net/overflow/discovery/discovery/scan/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/packet" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/oracle/oracle.go b/discovery/core/scan/service/matcher/oracle/oracle.go index c4b7021..f330d19 100644 --- a/discovery/core/scan/service/matcher/oracle/oracle.go +++ b/discovery/core/scan/service/matcher/oracle/oracle.go @@ -3,8 +3,8 @@ package oracle import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) type OracleMatcher struct { diff --git a/discovery/core/scan/service/matcher/oracle/oracle_test.go b/discovery/core/scan/service/matcher/oracle/oracle_test.go index 27ad8ac..aea31c1 100644 --- a/discovery/core/scan/service/matcher/oracle/oracle_test.go +++ b/discovery/core/scan/service/matcher/oracle/oracle_test.go @@ -2,9 +2,9 @@ package oracle import ( "fmt" - "git.loafle.net/overflow/discovery/discovery/scan/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/scan/matcher/scaninfo" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/scaninfo" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/pop/pop.go b/discovery/core/scan/service/matcher/pop/pop.go index 006ff3a..681d1e0 100644 --- a/discovery/core/scan/service/matcher/pop/pop.go +++ b/discovery/core/scan/service/matcher/pop/pop.go @@ -1,8 +1,8 @@ package pop import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) const ( diff --git a/discovery/core/scan/service/matcher/pop/pop_test.go b/discovery/core/scan/service/matcher/pop/pop_test.go index de8e4f5..2f9b68c 100644 --- a/discovery/core/scan/service/matcher/pop/pop_test.go +++ b/discovery/core/scan/service/matcher/pop/pop_test.go @@ -3,9 +3,9 @@ package pop import ( "crypto/tls" "fmt" - "git.loafle.net/overflow/discovery/discovery/scan/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/scan/matcher/scaninfo" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/scaninfo" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/postgresql/postgresql.go b/discovery/core/scan/service/matcher/postgresql/postgresql.go index 3685ef0..f995b57 100644 --- a/discovery/core/scan/service/matcher/postgresql/postgresql.go +++ b/discovery/core/scan/service/matcher/postgresql/postgresql.go @@ -3,8 +3,8 @@ package postgresql import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) const ( diff --git a/discovery/core/scan/service/matcher/postgresql/postgresql_test.go b/discovery/core/scan/service/matcher/postgresql/postgresql_test.go index 0d927d3..fc516e0 100644 --- a/discovery/core/scan/service/matcher/postgresql/postgresql_test.go +++ b/discovery/core/scan/service/matcher/postgresql/postgresql_test.go @@ -1,7 +1,7 @@ package postgresql import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/redis/redis.go b/discovery/core/scan/service/matcher/redis/redis.go index 8acadc9..5770001 100644 --- a/discovery/core/scan/service/matcher/redis/redis.go +++ b/discovery/core/scan/service/matcher/redis/redis.go @@ -1,8 +1,8 @@ package redis import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "strings" ) diff --git a/discovery/core/scan/service/matcher/redis/redisProtected.go b/discovery/core/scan/service/matcher/redis/redisProtected.go index 9cf3a8d..8852aa1 100644 --- a/discovery/core/scan/service/matcher/redis/redisProtected.go +++ b/discovery/core/scan/service/matcher/redis/redisProtected.go @@ -1,8 +1,8 @@ package redis import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) const ( diff --git a/discovery/core/scan/service/matcher/redis/redisProtected_test.go b/discovery/core/scan/service/matcher/redis/redisProtected_test.go index fda9cca..0335371 100644 --- a/discovery/core/scan/service/matcher/redis/redisProtected_test.go +++ b/discovery/core/scan/service/matcher/redis/redisProtected_test.go @@ -1,7 +1,7 @@ package redis import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/redis/redis_test.go b/discovery/core/scan/service/matcher/redis/redis_test.go index cfee834..e94a1e7 100644 --- a/discovery/core/scan/service/matcher/redis/redis_test.go +++ b/discovery/core/scan/service/matcher/redis/redis_test.go @@ -1,7 +1,7 @@ package redis import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/rmi/rmi.go b/discovery/core/scan/service/matcher/rmi/rmi.go index 656816e..6b693d7 100644 --- a/discovery/core/scan/service/matcher/rmi/rmi.go +++ b/discovery/core/scan/service/matcher/rmi/rmi.go @@ -3,8 +3,8 @@ package rmi import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) const ( diff --git a/discovery/core/scan/service/matcher/rmi/rmi_test.go b/discovery/core/scan/service/matcher/rmi/rmi_test.go index 146d495..0ced813 100644 --- a/discovery/core/scan/service/matcher/rmi/rmi_test.go +++ b/discovery/core/scan/service/matcher/rmi/rmi_test.go @@ -2,8 +2,8 @@ package rmi import ( "fmt" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/smb/smb.go b/discovery/core/scan/service/matcher/smb/smb.go index c258c10..158fc09 100644 --- a/discovery/core/scan/service/matcher/smb/smb.go +++ b/discovery/core/scan/service/matcher/smb/smb.go @@ -3,8 +3,8 @@ package smb import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "strings" ) diff --git a/discovery/core/scan/service/matcher/smb/smb_test.go b/discovery/core/scan/service/matcher/smb/smb_test.go index 60781d1..4d0ebd2 100644 --- a/discovery/core/scan/service/matcher/smb/smb_test.go +++ b/discovery/core/scan/service/matcher/smb/smb_test.go @@ -1,7 +1,7 @@ package smb import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/smtp/smtp.go b/discovery/core/scan/service/matcher/smtp/smtp.go index 7fd0681..b30cc2a 100644 --- a/discovery/core/scan/service/matcher/smtp/smtp.go +++ b/discovery/core/scan/service/matcher/smtp/smtp.go @@ -1,8 +1,8 @@ package smtp import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "strings" ) diff --git a/discovery/core/scan/service/matcher/snmp/snmpv2.go b/discovery/core/scan/service/matcher/snmp/snmpv2.go index c3c233b..2897ecf 100644 --- a/discovery/core/scan/service/matcher/snmp/snmpv2.go +++ b/discovery/core/scan/service/matcher/snmp/snmpv2.go @@ -3,8 +3,8 @@ package snmp import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) const ( diff --git a/discovery/core/scan/service/matcher/snmp/snmpv2_test.go b/discovery/core/scan/service/matcher/snmp/snmpv2_test.go index f575275..a820d1e 100644 --- a/discovery/core/scan/service/matcher/snmp/snmpv2_test.go +++ b/discovery/core/scan/service/matcher/snmp/snmpv2_test.go @@ -1,7 +1,7 @@ package snmp import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/snmp/snmpv3.go b/discovery/core/scan/service/matcher/snmp/snmpv3.go index eb9d6f0..fd7f650 100644 --- a/discovery/core/scan/service/matcher/snmp/snmpv3.go +++ b/discovery/core/scan/service/matcher/snmp/snmpv3.go @@ -3,8 +3,8 @@ package snmp import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) type snmpv3GlobalData struct { diff --git a/discovery/core/scan/service/matcher/snmp/snmpv3_test.go b/discovery/core/scan/service/matcher/snmp/snmpv3_test.go index 0b2d59f..4ef0a66 100644 --- a/discovery/core/scan/service/matcher/snmp/snmpv3_test.go +++ b/discovery/core/scan/service/matcher/snmp/snmpv3_test.go @@ -1,7 +1,7 @@ package snmp import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/ssh/ssh.go b/discovery/core/scan/service/matcher/ssh/ssh.go index 156a161..0146f5f 100644 --- a/discovery/core/scan/service/matcher/ssh/ssh.go +++ b/discovery/core/scan/service/matcher/ssh/ssh.go @@ -1,8 +1,8 @@ package ssh import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "strings" ) diff --git a/discovery/core/scan/service/matcher/ssh/ssh_test.go b/discovery/core/scan/service/matcher/ssh/ssh_test.go index 324f5ff..b68e297 100644 --- a/discovery/core/scan/service/matcher/ssh/ssh_test.go +++ b/discovery/core/scan/service/matcher/ssh/ssh_test.go @@ -2,8 +2,8 @@ package ssh import ( "fmt" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/telnet/telnet.go b/discovery/core/scan/service/matcher/telnet/telnet.go index fba2f38..1f06984 100644 --- a/discovery/core/scan/service/matcher/telnet/telnet.go +++ b/discovery/core/scan/service/matcher/telnet/telnet.go @@ -1,8 +1,8 @@ package telnet import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) const ( diff --git a/discovery/core/scan/service/matcher/telnet/telnet_test.go b/discovery/core/scan/service/matcher/telnet/telnet_test.go index 1713822..1b0c9e2 100644 --- a/discovery/core/scan/service/matcher/telnet/telnet_test.go +++ b/discovery/core/scan/service/matcher/telnet/telnet_test.go @@ -2,8 +2,8 @@ package telnet import ( "fmt" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "net" "testing" ) diff --git a/discovery/core/scan/service/matcher/wmi/wmi.go b/discovery/core/scan/service/matcher/wmi/wmi.go index 3318a85..652aa27 100644 --- a/discovery/core/scan/service/matcher/wmi/wmi.go +++ b/discovery/core/scan/service/matcher/wmi/wmi.go @@ -3,8 +3,8 @@ package wmi import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) const ( diff --git a/discovery/core/scan/service/matcher/wmi/wmi_test.go b/discovery/core/scan/service/matcher/wmi/wmi_test.go index b838484..bcd72cc 100644 --- a/discovery/core/scan/service/matcher/wmi/wmi_test.go +++ b/discovery/core/scan/service/matcher/wmi/wmi_test.go @@ -2,9 +2,9 @@ package wmi import ( "fmt" - "git.loafle.net/overflow/discovery/discovery/scan/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/scan/matcher/scaninfo" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/scaninfo" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "net" "testing" ) diff --git a/discovery/core/scan/service/postpacket.go b/discovery/core/scan/service/postpacket.go index 7aa286e..88fb33a 100644 --- a/discovery/core/scan/service/postpacket.go +++ b/discovery/core/scan/service/postpacket.go @@ -1,9 +1,9 @@ package service import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" log "github.com/cihub/seelog" ) diff --git a/discovery/core/scan/service/prepacket.go b/discovery/core/scan/service/prepacket.go index 099ed26..fcf358b 100644 --- a/discovery/core/scan/service/prepacket.go +++ b/discovery/core/scan/service/prepacket.go @@ -1,9 +1,9 @@ package service import ( - "git.loafle.net/overflow/discovery/core/scan/service/matcher" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "net" ) diff --git a/discovery/core/scan/service/service.go b/discovery/core/scan/service/service.go index f934894..e156aac 100644 --- a/discovery/core/scan/service/service.go +++ b/discovery/core/scan/service/service.go @@ -6,11 +6,11 @@ import ( log "github.com/cihub/seelog" "github.com/google/gopacket" "github.com/google/gopacket/layers" - //"git.loafle.net/overflow/central/client/events" - //"git.loafle.net/overflow/discovery/communicate" - "git.loafle.net/overflow/discovery/core/scan/service/matcher" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/packet" - "git.loafle.net/overflow/discovery/discovery/types" + //"git.loafle.net/overflow/overflow_probe/central/client/events" + //"git.loafle.net/overflow/overflow_probe/discovery/communicate" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "net" "strconv" "strings" diff --git a/discovery/core/scan/zone/zone.go b/discovery/core/scan/zone/zone.go index 3d89fe4..ea04f0f 100644 --- a/discovery/core/scan/zone/zone.go +++ b/discovery/core/scan/zone/zone.go @@ -5,8 +5,8 @@ import ( "net" "strings" - "git.loafle.net/overflow/discovery/discovery/types" - "git.loafle.net/overflow/discovery/util/converter" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/util/converter" "strconv" "sync" ) diff --git a/discovery/core/scan/zone/zone_test.go b/discovery/core/scan/zone/zone_test.go index 8ed8ee3..5550040 100644 --- a/discovery/core/scan/zone/zone_test.go +++ b/discovery/core/scan/zone/zone_test.go @@ -2,8 +2,8 @@ package zone import ( "fmt" - "git.loafle.net/overflow/discovery/discovery/types" - "git.loafle.net/overflow/discovery/util/converter" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/util/converter" "testing" ) diff --git a/discovery/discovery/bridge.go b/discovery/discovery/bridge.go index 466a673..90d7526 100644 --- a/discovery/discovery/bridge.go +++ b/discovery/discovery/bridge.go @@ -4,8 +4,8 @@ import ( //"bytes" "encoding/json" "encoding/xml" - "git.loafle.net/overflow/discovery/discovery/types" - "git.loafle.net/overflow/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" "github.com/cihub/seelog" "io/ioutil" //"net/http" diff --git a/discovery/discovery/discovery.go b/discovery/discovery/discovery.go index 5235925..91d5751 100644 --- a/discovery/discovery/discovery.go +++ b/discovery/discovery/discovery.go @@ -1,8 +1,8 @@ package discovery import ( - "git.loafle.net/overflow/discovery/core/scan/service" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" "github.com/cihub/seelog" "github.com/google/gopacket" "sync" diff --git a/discovery/discovery/host.go b/discovery/discovery/host.go index 87d2434..e55e4eb 100644 --- a/discovery/discovery/host.go +++ b/discovery/discovery/host.go @@ -4,13 +4,13 @@ import ( "errors" "github.com/cihub/seelog" "github.com/google/gopacket/layers" - //"git.loafle.net/overflow/central/client/events" - //"git.loafle.net/overflow/discovery/communicate" - "git.loafle.net/overflow/discovery/core/scan/host" - "git.loafle.net/overflow/discovery/core/scan/service/matcher/dhcp" - "git.loafle.net/overflow/discovery/discovery/types" - "git.loafle.net/overflow/discovery/discovery/types/timestamp" - "git.loafle.net/overflow/discovery/util/converter" + //"git.loafle.net/overflow/overflow_probe/central/client/events" + //"git.loafle.net/overflow/overflow_probe/discovery/communicate" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/host" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/dhcp" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/discovery/util/converter" "net" "strconv" ) diff --git a/discovery/discovery/host_test.go b/discovery/discovery/host_test.go index 8dd545b..8e74655 100644 --- a/discovery/discovery/host_test.go +++ b/discovery/discovery/host_test.go @@ -2,7 +2,7 @@ package discovery import ( "fmt" - "git.loafle.net/overflow/discovery/core/scan/zone" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/zone" "sync" "testing" ) diff --git a/discovery/discovery/port.go b/discovery/discovery/port.go index 6132d2c..042f53b 100644 --- a/discovery/discovery/port.go +++ b/discovery/discovery/port.go @@ -1,18 +1,18 @@ package discovery import ( - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" - "git.loafle.net/overflow/discovery/core/scan/port/tcp" - "git.loafle.net/overflow/discovery/core/scan/port/udp" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/port/tcp" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/port/udp" "github.com/google/gopacket" "github.com/google/gopacket/layers" - //"git.loafle.net/overflow/central/client/events" - //"git.loafle.net/overflow/discovery/communicate" + //"git.loafle.net/overflow/overflow_probe/central/client/events" + //"git.loafle.net/overflow/overflow_probe/discovery/communicate" "strconv" - "git.loafle.net/overflow/discovery/util/converter" + "git.loafle.net/overflow/overflow_probe/discovery/util/converter" "sync" ) diff --git a/discovery/discovery/port_test.go b/discovery/discovery/port_test.go index 4080c9f..cbea4f2 100644 --- a/discovery/discovery/port_test.go +++ b/discovery/discovery/port_test.go @@ -1,15 +1,15 @@ package discovery import ( - "git.loafle.net/overflow/discovery/discovery/types" - "git.loafle.net/overflow/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" "testing" "fmt" "github.com/google/gopacket" - "git.loafle.net/overflow/discovery/core/scan/zone" - "git.loafle.net/overflow/discovery/util/converter" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/zone" + "git.loafle.net/overflow/overflow_probe/discovery/util/converter" "sync" ) diff --git a/discovery/discovery/service.go b/discovery/discovery/service.go index 35da61f..a2c2ca8 100644 --- a/discovery/discovery/service.go +++ b/discovery/discovery/service.go @@ -1,8 +1,8 @@ package discovery import ( - "git.loafle.net/overflow/discovery/core/scan/service" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) func discoverService(port *types.DiscoveryPort) { diff --git a/discovery/discovery/service_test.go b/discovery/discovery/service_test.go index 4e64357..434719d 100644 --- a/discovery/discovery/service_test.go +++ b/discovery/discovery/service_test.go @@ -1,10 +1,10 @@ package discovery import ( - "git.loafle.net/overflow/discovery/core/scan/service" - "git.loafle.net/overflow/discovery/core/scan/zone" - "git.loafle.net/overflow/discovery/discovery/types" - "git.loafle.net/overflow/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/service" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/zone" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" "github.com/stretchr/testify/assert" "sync" "testing" diff --git a/discovery/discovery/types/discovery.go b/discovery/discovery/types/discovery.go index 7615eaa..f49e432 100644 --- a/discovery/discovery/types/discovery.go +++ b/discovery/discovery/types/discovery.go @@ -1,7 +1,7 @@ package types import ( - "git.loafle.net/overflow/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" "sync" ) diff --git a/discovery/discovery/types/discoveryhost.go b/discovery/discovery/types/discoveryhost.go index e731327..d3ff70d 100644 --- a/discovery/discovery/types/discoveryhost.go +++ b/discovery/discovery/types/discoveryhost.go @@ -1,8 +1,8 @@ package types import ( - "git.loafle.net/overflow/discovery/discovery/types/timestamp" - "git.loafle.net/overflow/discovery/util/converter" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/discovery/util/converter" "net" "sync" ) diff --git a/discovery/discovery/types/discoveryport.go b/discovery/discovery/types/discoveryport.go index 668190f..42a0a61 100644 --- a/discovery/discovery/types/discoveryport.go +++ b/discovery/discovery/types/discoveryport.go @@ -1,7 +1,7 @@ package types import ( - "git.loafle.net/overflow/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" "strconv" ) diff --git a/discovery/discovery/types/discoveryservice.go b/discovery/discovery/types/discoveryservice.go index e28e183..fede3f4 100644 --- a/discovery/discovery/types/discoveryservice.go +++ b/discovery/discovery/types/discoveryservice.go @@ -1,7 +1,7 @@ package types import ( - "git.loafle.net/overflow/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" ) type DiscoveryService struct { diff --git a/discovery/discovery/types/discoveryzone.go b/discovery/discovery/types/discoveryzone.go index 48dae29..431ba6c 100644 --- a/discovery/discovery/types/discoveryzone.go +++ b/discovery/discovery/types/discoveryzone.go @@ -1,7 +1,7 @@ package types import ( - "git.loafle.net/overflow/discovery/util/converter" + "git.loafle.net/overflow/overflow_probe/discovery/util/converter" "github.com/cihub/seelog" "net" "strconv" diff --git a/discovery/discovery/types/network_test.go b/discovery/discovery/types/network_test.go index 48c23c4..3b028d8 100644 --- a/discovery/discovery/types/network_test.go +++ b/discovery/discovery/types/network_test.go @@ -11,7 +11,7 @@ import ( //"encoding/binary" //"bytes" //"io/ioutil" - "git.loafle.net/overflow/discovery/discovery/types/timestamp" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp" //"net/http" ) diff --git a/discovery/discovery/zone.go b/discovery/discovery/zone.go index 81f45be..72af240 100644 --- a/discovery/discovery/zone.go +++ b/discovery/discovery/zone.go @@ -1,8 +1,8 @@ package discovery import ( - "git.loafle.net/overflow/discovery/core/scan/zone" - "git.loafle.net/overflow/discovery/discovery/types" + "git.loafle.net/overflow/overflow_probe/discovery/core/scan/zone" + "git.loafle.net/overflow/overflow_probe/discovery/discovery/types" ) func discoveryZone(callback discoverZoneCallback) { diff --git a/event_sender/event_sender.go b/event_sender/event_sender.go index 46d1a0b..e97aee9 100644 --- a/event_sender/event_sender.go +++ b/event_sender/event_sender.go @@ -1,13 +1,13 @@ -package event_sender_go +package event_sender import ( "context" "google.golang.org/grpc" - //"git.loafle.net/overflow/agent_api/observer/messages" - pb "git.loafle.net/overflow/crawler_go/grpc" + //"git.loafle.net/overflow/overflow_probe/agent_api/observer/messages" + pb "git.loafle.net/overflow/overflow_probe/crawler/grpc" - "git.loafle.net/overflow/agent_api/messages" - q "git.loafle.net/overflow/queue_go" + "git.loafle.net/overflow/overflow_probe/agent_api/messages" + q "git.loafle.net/overflow/overflow_probe/queue" "log" "reflect" "sync" diff --git a/event_sender/event_sender_test.go b/event_sender/event_sender_test.go index a88ab33..cbac2b6 100644 --- a/event_sender/event_sender_test.go +++ b/event_sender/event_sender_test.go @@ -1,8 +1,8 @@ -package event_sender_go +package event_sender import ( - //"git.loafle.net/overflow/agent_api/observer" - //"git.loafle.net/overflow/agent_api/observer/messages" + //"git.loafle.net/overflow/overflow_probe/agent_api/observer" + //"git.loafle.net/overflow/overflow_probe/agent_api/observer/messages" "log" "strconv" "testing" diff --git a/initializer/initializer.go b/initializer/initializer.go index 4c20f14..512fceb 100644 --- a/initializer/initializer.go +++ b/initializer/initializer.go @@ -1,7 +1,7 @@ -package initializer_go +package initializer import ( - cm "git.loafle.net/overflow/agent_api/config_manager" + cm "git.loafle.net/overflow/overflow_probe//agent_api/config_manager" "google.golang.org/grpc" "sync" ) diff --git a/matcher/activedirectory/activedirectory.go b/matcher/activedirectory/activedirectory.go index 5a3146b..c473d96 100644 --- a/matcher/activedirectory/activedirectory.go +++ b/matcher/activedirectory/activedirectory.go @@ -4,8 +4,8 @@ import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) const ( diff --git a/matcher/cassandra/cassandra.go b/matcher/cassandra/cassandra.go index 83c63eb..704651f 100644 --- a/matcher/cassandra/cassandra.go +++ b/matcher/cassandra/cassandra.go @@ -3,8 +3,8 @@ package cassandra import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) const ( diff --git a/matcher/cassandra/cassandra_test.go b/matcher/cassandra/cassandra_test.go index 52ade00..3e82e8d 100644 --- a/matcher/cassandra/cassandra_test.go +++ b/matcher/cassandra/cassandra_test.go @@ -3,7 +3,7 @@ package cassandra // //import ( // "crypto/tls" -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" // "net" // "testing" //) diff --git a/matcher/dhcp/dhcp.go b/matcher/dhcp/dhcp.go index 97a176b..77a8d41 100644 --- a/matcher/dhcp/dhcp.go +++ b/matcher/dhcp/dhcp.go @@ -6,7 +6,7 @@ package dhcp // "encoding/binary" // "fmt" // log "github.com/cihub/seelog" -// "loafle.com/overflow/commons_go/matcher" +// "git.loafle.net/overflow/overflow_probe/commons_go/matcher" // "net" // "time" //) diff --git a/matcher/dhcp/dhcp_test.go b/matcher/dhcp/dhcp_test.go index b1ca4cb..5299852 100644 --- a/matcher/dhcp/dhcp_test.go +++ b/matcher/dhcp/dhcp_test.go @@ -2,7 +2,7 @@ package dhcp // //import ( -// "loafle.com/overflow/collector/core/scan/zone" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/zone" // "testing" //) // diff --git a/matcher/dns/dns.go b/matcher/dns/dns.go index dcadd97..c456a24 100644 --- a/matcher/dns/dns.go +++ b/matcher/dns/dns.go @@ -3,8 +3,8 @@ package dns import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) type Dns_frame_header struct { diff --git a/matcher/dns/dns_test.go b/matcher/dns/dns_test.go index 18cb258..ee3d755 100644 --- a/matcher/dns/dns_test.go +++ b/matcher/dns/dns_test.go @@ -1,7 +1,7 @@ package dns //import ( -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" // "net" // "testing" //) diff --git a/matcher/ftp/ftp.go b/matcher/ftp/ftp.go index b052892..e3fad5f 100644 --- a/matcher/ftp/ftp.go +++ b/matcher/ftp/ftp.go @@ -1,8 +1,8 @@ package ftp import ( - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" log "github.com/cihub/seelog" ) diff --git a/matcher/ftp/ftp_test.go b/matcher/ftp/ftp_test.go index 414092e..9e4e073 100644 --- a/matcher/ftp/ftp_test.go +++ b/matcher/ftp/ftp_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" - "git.loafle.net/overflow/collector/discovery/scan/matcher/packet" - "git.loafle.net/overflow/collector/discovery/scan/matcher/scaninfo" - "git.loafle.net/overflow/collector/discovery/types" + "git.loafle.net/overflow/overflow_probe/collector/discovery/scan/matcher/packet" + "git.loafle.net/overflow/overflow_probe/collector/discovery/scan/matcher/scaninfo" + "git.loafle.net/overflow/overflow_probe/collector/discovery/types" log "github.com/cihub/seelog" "net" ) diff --git a/matcher/http/http.go b/matcher/http/http.go index 91d4b26..484000f 100644 --- a/matcher/http/http.go +++ b/matcher/http/http.go @@ -1,8 +1,8 @@ package http import ( - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" "strings" ) diff --git a/matcher/http/http_test.go b/matcher/http/http_test.go index 9200536..c3b7fcd 100644 --- a/matcher/http/http_test.go +++ b/matcher/http/http_test.go @@ -2,8 +2,8 @@ package http //import ( // "fmt" -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" -// "loafle.com/overflow/collector/discovery/types" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/types" // "net" // "testing" //) diff --git a/matcher/http/https_test.go b/matcher/http/https_test.go index ab4b125..c176173 100644 --- a/matcher/http/https_test.go +++ b/matcher/http/https_test.go @@ -3,7 +3,7 @@ package http //import ( // "crypto/tls" // "fmt" -// "loafle.com/overflow/collector/discovery/scan/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/scan/matcher/packet" // "log" // "net" // "testing" diff --git a/matcher/imap/imap.go b/matcher/imap/imap.go index 5102337..0a68ecc 100644 --- a/matcher/imap/imap.go +++ b/matcher/imap/imap.go @@ -1,8 +1,8 @@ package imap import ( - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) const ( diff --git a/matcher/imap/imap_test.go b/matcher/imap/imap_test.go index c5f8e8c..807a035 100644 --- a/matcher/imap/imap_test.go +++ b/matcher/imap/imap_test.go @@ -4,10 +4,10 @@ package imap //import ( // "crypto/tls" // "fmt" -// "loafle.com/overflow/collector/core/scan/port" -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" -// "loafle.com/overflow/collector/core/scan/service/matcher/scaninfo" -// "loafle.com/overflow/collector/discovery/types" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/port" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/scaninfo" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/types" // "net" // "testing" //) diff --git a/matcher/ldap/ldap.go b/matcher/ldap/ldap.go index 4aa246c..6a3fc21 100644 --- a/matcher/ldap/ldap.go +++ b/matcher/ldap/ldap.go @@ -3,8 +3,8 @@ package ldap import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) type LDAPMatcher struct { diff --git a/matcher/ldap/ldap_test.go b/matcher/ldap/ldap_test.go index 2682bb6..8d50aab 100644 --- a/matcher/ldap/ldap_test.go +++ b/matcher/ldap/ldap_test.go @@ -4,9 +4,9 @@ package ldap //import ( // "crypto/tls" // "fmt" -// "loafle.com/overflow/collector/discovery/scan/matcher/packet" -// "loafle.com/overflow/collector/discovery/scan/matcher/scaninfo" -// "loafle.com/overflow/collector/discovery/types" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/scan/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/scan/matcher/scaninfo" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/types" // "net" // "testing" //) diff --git a/matcher/matcher.go b/matcher/matcher.go index afbc884..e4c0f33 100644 --- a/matcher/matcher.go +++ b/matcher/matcher.go @@ -1,29 +1,29 @@ package matcher import ( - //"git.loafle.net/overflow/collector/core/scan/service/matcher/activedirectory" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/cassandra" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/dns" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/ftp" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/http" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/imap" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/ldap" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/mongodb" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/mssql" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/mysql" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/netbios" - "git.loafle.net/overflow/commons_go/matcher/oracle" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/pop" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/redis" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/rmi" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/smb" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/smtp" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/snmp" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/ssh" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/telnet" - //"git.loafle.net/overflow/collector/core/scan/service/matcher/wmi" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/activedirectory" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/cassandra" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/dns" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/ftp" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/http" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/imap" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/ldap" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/mongodb" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/mssql" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/mysql" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/netbios" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/oracle" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/pop" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/redis" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/rmi" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/smb" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/smtp" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/snmp" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/ssh" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/telnet" + //"git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/wmi" ) var ( diff --git a/matcher/mongodb/mongodb.go b/matcher/mongodb/mongodb.go index c5c0441..b9b3daa 100644 --- a/matcher/mongodb/mongodb.go +++ b/matcher/mongodb/mongodb.go @@ -5,8 +5,8 @@ import ( "encoding/binary" "math/rand" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) const ( diff --git a/matcher/mongodb/mongodb_test.go b/matcher/mongodb/mongodb_test.go index 4e09406..560edb6 100644 --- a/matcher/mongodb/mongodb_test.go +++ b/matcher/mongodb/mongodb_test.go @@ -3,7 +3,7 @@ package mongodb // //import ( // "crypto/tls" -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" // "net" // "testing" //) diff --git a/matcher/mssql/mssql.go b/matcher/mssql/mssql.go index f5b8eab..f2cd0bc 100644 --- a/matcher/mssql/mssql.go +++ b/matcher/mssql/mssql.go @@ -3,8 +3,8 @@ package mssql import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) const ( diff --git a/matcher/mssql/mssql_test.go b/matcher/mssql/mssql_test.go index 199d11c..3120f8e 100644 --- a/matcher/mssql/mssql_test.go +++ b/matcher/mssql/mssql_test.go @@ -2,7 +2,7 @@ package mssql // //import ( -// "loafle.com/overflow/collector/discovery/scan/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/scan/matcher/packet" // "net" // "testing" //) diff --git a/matcher/mysql/mysql.go b/matcher/mysql/mysql.go index e0d5944..085a4fd 100644 --- a/matcher/mysql/mysql.go +++ b/matcher/mysql/mysql.go @@ -4,8 +4,8 @@ import ( "bytes" "encoding/binary" "fmt" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" "strconv" "strings" ) diff --git a/matcher/mysql/mysql_test.go b/matcher/mysql/mysql_test.go index 29c294c..a2befba 100644 --- a/matcher/mysql/mysql_test.go +++ b/matcher/mysql/mysql_test.go @@ -3,7 +3,7 @@ package mysql // //import ( // "crypto/tls" -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" // "net" // "testing" //) diff --git a/matcher/netbios/netbios.go b/matcher/netbios/netbios.go index b314bbc..f9082f5 100644 --- a/matcher/netbios/netbios.go +++ b/matcher/netbios/netbios.go @@ -3,8 +3,8 @@ package netbios import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) const ( diff --git a/matcher/netbios/netbios_test.go b/matcher/netbios/netbios_test.go index 701169d..fdc2838 100644 --- a/matcher/netbios/netbios_test.go +++ b/matcher/netbios/netbios_test.go @@ -2,7 +2,7 @@ package netbios // //import ( -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" // "net" // "testing" //) diff --git a/matcher/oracle/oracle.go b/matcher/oracle/oracle.go index 6062ad1..fb680cf 100644 --- a/matcher/oracle/oracle.go +++ b/matcher/oracle/oracle.go @@ -3,8 +3,8 @@ package oracle import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) type OracleMatcher struct { diff --git a/matcher/oracle/oracle_test.go b/matcher/oracle/oracle_test.go index dbef20e..c522528 100644 --- a/matcher/oracle/oracle_test.go +++ b/matcher/oracle/oracle_test.go @@ -3,9 +3,9 @@ package oracle // //import ( // "fmt" -// "loafle.com/overflow/collector/discovery/scan/matcher/packet" -// "loafle.com/overflow/collector/discovery/scan/matcher/scaninfo" -// "loafle.com/overflow/collector/discovery/types" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/scan/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/scan/matcher/scaninfo" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/types" // "net" // "testing" //) diff --git a/matcher/pgsql/pgsql.go b/matcher/pgsql/pgsql.go index c15875e..35ae239 100644 --- a/matcher/pgsql/pgsql.go +++ b/matcher/pgsql/pgsql.go @@ -3,8 +3,8 @@ package pgsql import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" "strings" ) diff --git a/matcher/pgsql/pgsql_test.go b/matcher/pgsql/pgsql_test.go index 2736687..f6556af 100644 --- a/matcher/pgsql/pgsql_test.go +++ b/matcher/pgsql/pgsql_test.go @@ -2,7 +2,7 @@ package pgsql import ( "crypto/tls" - "git.loafle.net/overflow/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" "net" "testing" ) diff --git a/matcher/pop/pop.go b/matcher/pop/pop.go index e0e58c5..ecc1e44 100644 --- a/matcher/pop/pop.go +++ b/matcher/pop/pop.go @@ -1,8 +1,8 @@ package pop import ( - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) const ( diff --git a/matcher/pop/pop_test.go b/matcher/pop/pop_test.go index 721fcbc..4e81645 100644 --- a/matcher/pop/pop_test.go +++ b/matcher/pop/pop_test.go @@ -4,9 +4,9 @@ package pop //import ( // "crypto/tls" // "fmt" -// "loafle.com/overflow/collector/discovery/scan/matcher/packet" -// "loafle.com/overflow/collector/discovery/scan/matcher/scaninfo" -// "loafle.com/overflow/collector/discovery/types" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/scan/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/scan/matcher/scaninfo" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/types" // "net" // "testing" //) diff --git a/matcher/redis/redis.go b/matcher/redis/redis.go index 9720e94..aecc3b9 100644 --- a/matcher/redis/redis.go +++ b/matcher/redis/redis.go @@ -1,8 +1,8 @@ package redis import ( - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" "strings" ) diff --git a/matcher/redis/redisProtected.go b/matcher/redis/redisProtected.go index d0e3dba..288a1c8 100644 --- a/matcher/redis/redisProtected.go +++ b/matcher/redis/redisProtected.go @@ -1,8 +1,8 @@ package redis import ( - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) const ( diff --git a/matcher/redis/redisProtected_test.go b/matcher/redis/redisProtected_test.go index 2dfc0b0..533c6e3 100644 --- a/matcher/redis/redisProtected_test.go +++ b/matcher/redis/redisProtected_test.go @@ -1,7 +1,7 @@ package redis //import ( -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" // "net" // "testing" //) diff --git a/matcher/redis/redis_test.go b/matcher/redis/redis_test.go index bc82304..f461eaf 100644 --- a/matcher/redis/redis_test.go +++ b/matcher/redis/redis_test.go @@ -2,7 +2,7 @@ package redis // //import ( -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" // "net" // "testing" //) diff --git a/matcher/rmi/rmi.go b/matcher/rmi/rmi.go index 3dd0d28..9b172c0 100644 --- a/matcher/rmi/rmi.go +++ b/matcher/rmi/rmi.go @@ -3,8 +3,8 @@ package rmi import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) const ( diff --git a/matcher/rmi/rmi_test.go b/matcher/rmi/rmi_test.go index 7fe8f90..537df9e 100644 --- a/matcher/rmi/rmi_test.go +++ b/matcher/rmi/rmi_test.go @@ -2,8 +2,8 @@ package rmi //import ( // "fmt" -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" -// "loafle.com/overflow/collector/discovery/types" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/types" // "net" // "testing" //) diff --git a/matcher/smb/smb.go b/matcher/smb/smb.go index df41796..b10d5bc 100644 --- a/matcher/smb/smb.go +++ b/matcher/smb/smb.go @@ -3,8 +3,8 @@ package smb import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" "strings" ) diff --git a/matcher/smb/smb_test.go b/matcher/smb/smb_test.go index b534bc1..0c88da8 100644 --- a/matcher/smb/smb_test.go +++ b/matcher/smb/smb_test.go @@ -1,7 +1,7 @@ package smb //import ( -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" // "net" // "testing" //) diff --git a/matcher/smtp/smtp.go b/matcher/smtp/smtp.go index 133ef45..cfee97d 100644 --- a/matcher/smtp/smtp.go +++ b/matcher/smtp/smtp.go @@ -1,8 +1,8 @@ package smtp import ( - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" "strings" ) diff --git a/matcher/snmp/snmpv2.go b/matcher/snmp/snmpv2.go index 2c288c3..7f0694f 100644 --- a/matcher/snmp/snmpv2.go +++ b/matcher/snmp/snmpv2.go @@ -3,8 +3,8 @@ package snmp import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) const ( diff --git a/matcher/snmp/snmpv2_test.go b/matcher/snmp/snmpv2_test.go index ceb0dcb..515d4f6 100644 --- a/matcher/snmp/snmpv2_test.go +++ b/matcher/snmp/snmpv2_test.go @@ -2,7 +2,7 @@ package snmp // //import ( -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" // "net" // "testing" //) diff --git a/matcher/snmp/snmpv3.go b/matcher/snmp/snmpv3.go index 68e312e..66c9920 100644 --- a/matcher/snmp/snmpv3.go +++ b/matcher/snmp/snmpv3.go @@ -3,8 +3,8 @@ package snmp import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) type snmpv3GlobalData struct { diff --git a/matcher/snmp/snmpv3_test.go b/matcher/snmp/snmpv3_test.go index e51a31f..b9d6a97 100644 --- a/matcher/snmp/snmpv3_test.go +++ b/matcher/snmp/snmpv3_test.go @@ -2,7 +2,7 @@ package snmp // //import ( -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" // "net" // "testing" //) diff --git a/matcher/ssh/ssh.go b/matcher/ssh/ssh.go index 57d9c44..c1c6928 100644 --- a/matcher/ssh/ssh.go +++ b/matcher/ssh/ssh.go @@ -1,8 +1,8 @@ package ssh import ( - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" "strings" ) diff --git a/matcher/ssh/ssh_test.go b/matcher/ssh/ssh_test.go index 17bf802..f580495 100644 --- a/matcher/ssh/ssh_test.go +++ b/matcher/ssh/ssh_test.go @@ -2,8 +2,8 @@ package ssh //import ( // "fmt" -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" -// "loafle.com/overflow/collector/discovery/types" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/types" // "net" // "testing" //) diff --git a/matcher/telnet/telnet.go b/matcher/telnet/telnet.go index 2299ffe..f0d1776 100644 --- a/matcher/telnet/telnet.go +++ b/matcher/telnet/telnet.go @@ -1,8 +1,8 @@ package telnet import ( - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) const ( diff --git a/matcher/telnet/telnet_test.go b/matcher/telnet/telnet_test.go index 445df95..99564ca 100644 --- a/matcher/telnet/telnet_test.go +++ b/matcher/telnet/telnet_test.go @@ -2,8 +2,8 @@ package telnet //import ( // "fmt" -// "loafle.com/overflow/collector/core/scan/service/matcher/packet" -// "loafle.com/overflow/collector/discovery/types" +// "git.loafle.net/overflow/overflow_probe/collector/core/scan/service/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/types" // "net" // "testing" //) diff --git a/matcher/wmi/wmi.go b/matcher/wmi/wmi.go index 505003c..0fc0940 100644 --- a/matcher/wmi/wmi.go +++ b/matcher/wmi/wmi.go @@ -3,8 +3,8 @@ package wmi import ( "bytes" "encoding/binary" - "git.loafle.net/overflow/commons_go/matcher/packet" - "git.loafle.net/overflow/commons_go/model/scaninfo" + "git.loafle.net/overflow/overflow_probe/commons_go/matcher/packet" + "git.loafle.net/overflow/overflow_probe/commons_go/model/scaninfo" ) const ( diff --git a/matcher/wmi/wmi_test.go b/matcher/wmi/wmi_test.go index 6fd03a3..9f0ff13 100644 --- a/matcher/wmi/wmi_test.go +++ b/matcher/wmi/wmi_test.go @@ -2,9 +2,9 @@ package wmi //import ( // "fmt" -// "loafle.com/overflow/collector/discovery/scan/matcher/packet" -// "loafle.com/overflow/collector/discovery/scan/matcher/scaninfo" -// "loafle.com/overflow/collector/discovery/types" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/scan/matcher/packet" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/scan/matcher/scaninfo" +// "git.loafle.net/overflow/overflow_probe/collector/discovery/types" // "net" // "testing" //) diff --git a/probe.go b/probe.go index 0058814..1d58c11 100644 --- a/probe.go +++ b/probe.go @@ -1,23 +1,23 @@ package main import ( + "git.loafle.net/overflow/overflow_probe/agent_api/config_manager" + msg "git.loafle.net/overflow/overflow_probe/agent_api/messages" + "git.loafle.net/overflow/overflow_probe/bootstrap" + col "git.loafle.net/overflow/overflow_probe/collector" + cfg "git.loafle.net/overflow/overflow_probe/config_manager" + crm "git.loafle.net/overflow/overflow_probe/crawler_manager" + dat "git.loafle.net/overflow/overflow_probe/data_sender" + evt "git.loafle.net/overflow/overflow_probe/event_sender" + ini "git.loafle.net/overflow/overflow_probe/initializer" log "github.com/cihub/seelog" - "loafle.com/overflow/agent/bootstrap" - "loafle.com/overflow/agent_api/config_manager" - msg "loafle.com/overflow/agent_api/messages" - col "loafle.com/overflow/collector_go" - cfg "loafle.com/overflow/config_manager_go" - crm "loafle.com/overflow/crawler_manager_go" - dat "loafle.com/overflow/data_sender_go" - evt "loafle.com/overflow/event_sender_go" - ini "loafle.com/overflow/initializer_go" - pol "loafle.com/overflow/long_poller_go" + //pol "git.loafle.net/overflow/overflow_probe/long_poller" "sync" ) const ( - // /home/geek/develop/gopath/src/loafle.com/overflow/config_manager_go/test_agent - PATH = "/home/insanity/Develop/gopath/src/loafle.com/overflow/config_manager_go/test_agent" + // /home/geek/develop/gopath/src/git.loafle.net/overflow/overflow_probe/config_manager/test_agent + PATH = "/home/insanity/Develop/gopath/src/git.loafle.net/overflow/overflow_probe/config_manager/test_agent" ) var wg sync.WaitGroup @@ -76,13 +76,13 @@ func (agt *Agent) startAgent() { <-datStarted //4. pol start() - polStarted := make(chan bool, 1) - if err := pol.Start(polStarted, globalConf); err != nil { - log.Error(err) - return - } - <-polStarted - agt.taskCh = pol.GetTaskCh() + //polStarted := make(chan bool, 1) + //if err := pol.Start(polStarted, globalConf); err != nil { + // log.Error(err) + // return + //} + //<-polStarted + //agt.taskCh = pol.GetTaskCh() /** Todo : Getting an auth key from API server. diff --git a/probe_test.go b/probe_test.go index 63217a8..e8dc0e1 100644 --- a/probe_test.go +++ b/probe_test.go @@ -4,4 +4,4 @@ import "testing" func TestFFF(t *testing.T) { t.Log("aaaa") -} \ No newline at end of file +} diff --git a/queue/queue_test.go b/queue/queue_test.go index 0d313d2..73e2be5 100644 --- a/queue/queue_test.go +++ b/queue/queue_test.go @@ -1,48 +1,48 @@ package queue import ( - "git.loafle.net/overflow/agent_api/observer" - "git.loafle.net/overflow/agent_api/observer/messages" + //"git.loafle.net/overflow/overflow_probe/agent_api/observer" + //"git.loafle.net/overflow/overflow_probe/agent_api/messages" "log" "reflect" "testing" - "time" + //"time" ) func TestNewQueue(t *testing.T) { - senderChanel := make(chan interface{}, 0) - - lq := NewQueue(messages.QUEUE_DATA, 3, senderChanel) - - log.Println(lq) - - observer.Notify(messages.QUEUE_DATA, "data") - observer.Notify(messages.QUEUE_DATA, "data1111") - observer.Notify(messages.QUEUE_DATA, "data2222") - observer.Notify(messages.QUEUE_DATA, "data3333") - observer.Notify(messages.QUEUE_DATA, "data4444") - observer.Notify(messages.QUEUE_DATA, "data5555") - observer.Notify(messages.QUEUE_DATA, "data6666") - observer.Notify(messages.QUEUE_DATA, "data7777") - observer.Notify(messages.QUEUE_DATA, "data8888") - observer.Notify(messages.QUEUE_DATA, "data9999") - - go GetItemTest(senderChanel) - - time.Sleep(time.Second * 3) - - observer.Notify(messages.QUEUE_DATA, "data1111") - observer.Notify(messages.QUEUE_DATA, "data2222") - observer.Notify(messages.QUEUE_DATA, "data3333") - observer.Notify(messages.QUEUE_DATA, "data4444") - observer.Notify(messages.QUEUE_DATA, "data5555") - observer.Notify(messages.QUEUE_DATA, "data6666") - observer.Notify(messages.QUEUE_DATA, "data7777") - - time.Sleep(time.Second * 10) - - lq.Close() - close(senderChanel) + //senderChanel := make(chan interface{}, 0) + // + //lq := NewQueue(messages.QUEUE_DATA, 3, senderChanel) + // + //log.Println(lq) + // + //observer.Notify(messages.QUEUE_DATA, "data") + //observer.Notify(messages.QUEUE_DATA, "data1111") + //observer.Notify(messages.QUEUE_DATA, "data2222") + //observer.Notify(messages.QUEUE_DATA, "data3333") + //observer.Notify(messages.QUEUE_DATA, "data4444") + //observer.Notify(messages.QUEUE_DATA, "data5555") + //observer.Notify(messages.QUEUE_DATA, "data6666") + //observer.Notify(messages.QUEUE_DATA, "data7777") + //observer.Notify(messages.QUEUE_DATA, "data8888") + //observer.Notify(messages.QUEUE_DATA, "data9999") + // + //go GetItemTest(senderChanel) + // + //time.Sleep(time.Second * 3) + // + //observer.Notify(messages.QUEUE_DATA, "data1111") + //observer.Notify(messages.QUEUE_DATA, "data2222") + //observer.Notify(messages.QUEUE_DATA, "data3333") + //observer.Notify(messages.QUEUE_DATA, "data4444") + //observer.Notify(messages.QUEUE_DATA, "data5555") + //observer.Notify(messages.QUEUE_DATA, "data6666") + //observer.Notify(messages.QUEUE_DATA, "data7777") + // + //time.Sleep(time.Second * 10) + // + //lq.Close() + //close(senderChanel) } func GetItemTest(senderChanel chan interface{}) {