fixed name , package
This commit is contained in:
parent
7ec9a326fd
commit
c8384ea1f9
@ -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)
|
||||
}
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package collector_go
|
||||
package collector
|
||||
|
||||
import "testing"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
//)
|
||||
//
|
||||
|
||||
|
@ -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/"
|
||||
|
@ -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 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package activedirectory_protocol_crawler_go
|
||||
package activedirectory_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,17 +1,17 @@
|
||||
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 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cassandra_protocol_crawler_go
|
||||
package cassandra_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,17 +1,17 @@
|
||||
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 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package dns_protocol_crawler_go
|
||||
package dns_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package ftp_protocol_crawler_go
|
||||
package ftp_protocol_crawler
|
||||
|
||||
import (
|
||||
"git.loafle.net/overflow/overflow_probe/matcher/packet"
|
||||
|
@ -1,18 +1,16 @@
|
||||
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 {
|
||||
@ -28,6 +26,7 @@ func NewFTPHealthCrawler() *FTPHealthCrawler {
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
////////////// Delegate.Get implement /////////////////
|
||||
//type FTPProtocol struct{}
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
package ftp_protocol_crawler_go
|
||||
package ftp_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package ftps_protocol_crawler_go
|
||||
package ftps_protocol_crawler
|
||||
|
||||
import (
|
||||
"git.loafle.net/overflow/overflow_probe/matcher/packet"
|
||||
|
@ -1,17 +1,16 @@
|
||||
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)
|
||||
@ -28,6 +27,7 @@ func NewFTPSHealthCrawler() *FTPSHealthCrawler {
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
////////////// Delegate.Get implement /////////////////
|
||||
//type FTPSProtocol struct{}
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
package ftps_protocol_crawler_go
|
||||
package ftps_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,17 +1,17 @@
|
||||
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 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package http_protocol_crawler_go
|
||||
package http_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,17 +1,17 @@
|
||||
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 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package imap_protocol_crawler_go
|
||||
package imap_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,17 +1,17 @@
|
||||
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 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package ldap_protocol_crawler_go
|
||||
package ldap_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,17 +1,17 @@
|
||||
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 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package mongodb_protocol_crawler_go
|
||||
package mongodb_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -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 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package mssql_protocol_crawler_go
|
||||
package mssql_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,18 +1,17 @@
|
||||
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 {
|
||||
@ -28,7 +27,6 @@ func NewMysqlHeahthCrawler() *MysqlHeahthCrawler {
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
//import (
|
||||
// "encoding/json"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package mysql_protocol_crawler_go
|
||||
package mysql_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -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 {
|
||||
@ -28,7 +27,6 @@ func NewNetbiosHeahthCrawler() *NetbiosHeahthCrawler {
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
//import (
|
||||
// "encoding/json"
|
||||
// "git.loafle.net/overflow/collector/core/scan/service/matcher/packet"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package netbios_protocol_crawler_go
|
||||
package netbios_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -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 {
|
||||
@ -27,7 +27,6 @@ func NewOracleHeahthCrawler() *OracleHeahthCrawler {
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
//package oracle_protocol_crawler
|
||||
//
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
package oracle_protocol_crawler_go
|
||||
package oracle_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,17 +1,17 @@
|
||||
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 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package pgsql_protocol_crawler_go
|
||||
package pgsql_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -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 {
|
||||
@ -27,7 +27,6 @@ func NewPOP3HeahthCrawler() *POP3HeahthCrawler {
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
//package pop3
|
||||
//
|
||||
//import (
|
||||
|
@ -1,4 +1,4 @@
|
||||
package pop3_protocol_crawler_go
|
||||
package pop3_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -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 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package redis_protocol_crawler_go
|
||||
package redis_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,17 +1,17 @@
|
||||
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 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package rmi_protocol_crawler_go
|
||||
package rmi_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -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 {
|
||||
@ -27,7 +27,6 @@ func NewSMBHeahthCrawler() *SMBHeahthCrawler {
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
//package smb_protocol_crawler
|
||||
//
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
package smb_protocol_crawler_go
|
||||
package smb_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -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 {
|
||||
@ -27,7 +27,6 @@ func NewSMTPHeahthCrawler() *SMTPHeahthCrawler {
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
//package smtp
|
||||
//
|
||||
//import (
|
||||
|
@ -1,4 +1,4 @@
|
||||
package smtp_protocol_crawler_go
|
||||
package smtp_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -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
|
||||
//
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
package snmpv2c_protocol_crawler_go
|
||||
package snmpv2c_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -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 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package snmpv3_protocol_crawler_go
|
||||
package snmpv3_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -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 {
|
||||
@ -26,7 +26,6 @@ func NewSSHHeahthCrawler() *SSHHeahthCrawler {
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
//package ssh_protocol_crawler
|
||||
//
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
package ssh_protocol_crawler_go
|
||||
package ssh_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,17 +1,17 @@
|
||||
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 {
|
||||
@ -27,7 +27,6 @@ func NewTelnetHeahthCrawler() *TelnetHeahthCrawler {
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
//package main
|
||||
//
|
||||
//import (
|
||||
|
@ -1,4 +1,4 @@
|
||||
package telnet_protocol_crawler_go
|
||||
package telnet_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,17 +1,17 @@
|
||||
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 {
|
||||
@ -27,7 +27,6 @@ func NewWMIHeahthCrawler() *WMIHeahthCrawler {
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
//package wmi_protocol_crawler
|
||||
//
|
||||
//import (
|
||||
|
@ -1,4 +1,4 @@
|
||||
package wmi_protocol_crawler_go
|
||||
package wmi_protocol_crawler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -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)
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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 (
|
||||
|
@ -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) {
|
||||
|
@ -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)
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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 {
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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 {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package pcap
|
||||
|
||||
import (
|
||||
"git.loafle.net/overflow/discovery/discovery/types"
|
||||
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||
"sync"
|
||||
)
|
||||
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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)
|
||||
|
@ -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"
|
||||
|
@ -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)
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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 (
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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 (
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
|
@ -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 (
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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 {
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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 (
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user