fixed name , package
This commit is contained in:
parent
7ec9a326fd
commit
c8384ea1f9
@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
func TestConfigRead(t *testing.T) {
|
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 {
|
if err != nil {
|
||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ package observer
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.loafle.net/overflow/agent_api/messages"
|
"git.loafle.net/overflow/overflow_probe/agent_api/messages"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package collector_go
|
package collector
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
cm "git.loafle.net/overflow/agent_api/config_manager"
|
cm "git.loafle.net/overflow/overflow_probe/agent_api/config_manager"
|
||||||
"git.loafle.net/overflow/crawler_go/grpc"
|
"git.loafle.net/overflow/overflow_probe/crawler/grpc"
|
||||||
crm "git.loafle.net/overflow/crawler_manager_go"
|
crm "git.loafle.net/overflow/overflow_probe/crawler_manager"
|
||||||
s "git.loafle.net/overflow/scheduler_go"
|
s "git.loafle.net/overflow/overflow_probe/scheduler"
|
||||||
"log"
|
"log"
|
||||||
"strconv"
|
"strconv"
|
||||||
"sync"
|
"sync"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package collector_go
|
package collector
|
||||||
|
|
||||||
import "testing"
|
import "testing"
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package config_manager_go
|
package config_manager
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"git.loafle.net/overflow/agent_api/config_manager"
|
"git.loafle.net/overflow/overflow_probe/agent_api/config_manager"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
package config_manager_go
|
package config_manager
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
//"github.com/stretchr/testify/assert"
|
//"github.com/stretchr/testify/assert"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"git.loafle.net/overflow/agent_api/config_manager"
|
"git.loafle.net/overflow/overflow_probe/agent_api/config_manager"
|
||||||
"git.loafle.net/overflow/agent_api/messages"
|
"git.loafle.net/overflow/overflow_probe/agent_api/messages"
|
||||||
"git.loafle.net/overflow/agent_api/observer"
|
"git.loafle.net/overflow/overflow_probe/agent_api/observer"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
@ -27,7 +27,7 @@ func TestLoadConfig(t *testing.T) {
|
|||||||
|
|
||||||
// make config manager after to load
|
// make config manager after to load
|
||||||
//c := NewConfigManager()
|
//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()
|
//c.loadCrawlerConfigAll()
|
||||||
//
|
//
|
||||||
//assert.NotEqual(t, len(c.configs),0)
|
//assert.NotEqual(t, len(c.configs),0)
|
||||||
@ -36,10 +36,10 @@ func TestLoadConfig(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestAddConfig(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 {
|
if err != nil {
|
||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
@ -50,16 +50,16 @@ func TestAddConfig(t *testing.T) {
|
|||||||
rid, _ := uuid.NewRandom()
|
rid, _ := uuid.NewRandom()
|
||||||
m.Id = rid.String()
|
m.Id = rid.String()
|
||||||
b, err = json.Marshal(&m)
|
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
|
// 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)
|
time.Sleep(1 * time.Second)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRemoveConfig(t *testing.T) {
|
func TestRemoveConfig(t *testing.T) {
|
||||||
GetInstance()
|
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()
|
_configManager.loadCrawlerConfigAll()
|
||||||
|
|
||||||
// remove test
|
// remove test
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
package config_manager_go
|
package config_manager
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"loafle.com/overflow/agent_api/config_manager"
|
"git.loafle.net/overflow/overflow_probe/agent_api/config_manager"
|
||||||
)
|
)
|
||||||
|
|
||||||
//import (
|
//import (
|
||||||
// "loafle.com/overflow/agent_api/observer"
|
// "git.loafle.net/overflow/overflow_probe/agent_api/observer"
|
||||||
// "loafle.com/overflow/agent_api/messages"
|
// "git.loafle.net/overflow/overflow_probe/agent_api/messages"
|
||||||
//)
|
//)
|
||||||
//
|
//
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ central:
|
|||||||
port: 443
|
port: 443
|
||||||
logPath: "./bin/log.xml"
|
logPath: "./bin/log.xml"
|
||||||
paths:
|
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/"
|
configFolder : "config/"
|
||||||
binaryFolder : "container/"
|
binaryFolder : "container/"
|
||||||
pidFolder : "pids/"
|
pidFolder : "pids/"
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
package activedirectory_protocol_crawler_go
|
package activedirectory_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager"
|
||||||
"git.loafle.net/overflow/overflow_probe/crawler"
|
"git.loafle.net/overflow/overflow_probe/crawler"
|
||||||
|
"git.loafle.net/overflow/overflow_probe/matcher/activedirectory"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ActiveDirectoryHealthCrawler struct {
|
type ActiveDirectoryHealthCrawler struct {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package activedirectory_protocol_crawler_go
|
package activedirectory_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
package cassandra_protocol_crawler_go
|
package cassandra_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type CassandraHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
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)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package cassandra_protocol_crawler_go
|
package cassandra_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
package dns_protocol_crawler_go
|
package dns_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type DNSHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
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)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package dns_protocol_crawler_go
|
package dns_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package ftp_protocol_crawler_go
|
package ftp_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/overflow_probe/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/matcher/packet"
|
||||||
|
@ -1,18 +1,16 @@
|
|||||||
package ftp_protocol_crawler_go
|
package ftp_protocol_crawler
|
||||||
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/overflow_probe/crawler"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager"
|
config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager"
|
||||||
|
"git.loafle.net/overflow/overflow_probe/crawler"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FTPHealthCrawler struct {
|
type FTPHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
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)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -28,6 +26,7 @@ func NewFTPHealthCrawler() *FTPHealthCrawler {
|
|||||||
|
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////// Delegate.Get implement /////////////////
|
////////////// Delegate.Get implement /////////////////
|
||||||
//type FTPProtocol struct{}
|
//type FTPProtocol struct{}
|
||||||
//
|
//
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package ftp_protocol_crawler_go
|
package ftp_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package ftps_protocol_crawler_go
|
package ftps_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/overflow_probe/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/matcher/packet"
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
package ftps_protocol_crawler_go
|
package ftps_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/overflow_probe/crawler"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"git.loafle.net/overflow/overflow_probe/matcher/ftp"
|
|
||||||
config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager"
|
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 {
|
type FTPSHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
crawler.SocketHeahthCrawler
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r *FTPSHealthCrawler) Internal(params config.Config) ([]byte, error) {
|
func (r *FTPSHealthCrawler) Internal(params config.Config) ([]byte, error) {
|
||||||
|
|
||||||
b, err := r.CheckHeahth(params)
|
b, err := r.CheckHeahth(params)
|
||||||
@ -28,6 +27,7 @@ func NewFTPSHealthCrawler() *FTPSHealthCrawler {
|
|||||||
|
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////// Delegate.Get implement /////////////////
|
////////////// Delegate.Get implement /////////////////
|
||||||
//type FTPSProtocol struct{}
|
//type FTPSProtocol struct{}
|
||||||
//
|
//
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package ftps_protocol_crawler_go
|
package ftps_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
package http_protocol_crawler_go
|
package http_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type HTTPHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
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)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package http_protocol_crawler_go
|
package http_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
package imap_protocol_crawler_go
|
package imap_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type IMAPHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
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)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package imap_protocol_crawler_go
|
package imap_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
package ldap_protocol_crawler_go
|
package ldap_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type LDAPHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
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)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package ldap_protocol_crawler_go
|
package ldap_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
package mongodb_protocol_crawler_go
|
package mongodb_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type MongoDBHealthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
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)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package mongodb_protocol_crawler_go
|
package mongodb_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package mssql_protocol_crawler_go
|
package mssql_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type MSSqlHeahthCrawler struct {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package mssql_protocol_crawler_go
|
package mssql_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,18 +1,17 @@
|
|||||||
package mysql_protocol_crawler_go
|
package mysql_protocol_crawler
|
||||||
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type MysqlHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
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)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -28,7 +27,6 @@ func NewMysqlHeahthCrawler() *MysqlHeahthCrawler {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
//import (
|
//import (
|
||||||
// "encoding/json"
|
// "encoding/json"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package mysql_protocol_crawler_go
|
package mysql_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
package netbios_protocol_crawler_go
|
package netbios_protocol_crawler
|
||||||
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type NetbiosHeahthCrawler struct {
|
||||||
@ -28,7 +27,6 @@ func NewNetbiosHeahthCrawler() *NetbiosHeahthCrawler {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//import (
|
//import (
|
||||||
// "encoding/json"
|
// "encoding/json"
|
||||||
// "git.loafle.net/overflow/collector/core/scan/service/matcher/packet"
|
// "git.loafle.net/overflow/collector/core/scan/service/matcher/packet"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package netbios_protocol_crawler_go
|
package netbios_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package oracle_protocol_crawler_go
|
package oracle_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type OracleHeahthCrawler struct {
|
||||||
@ -27,7 +27,6 @@ func NewOracleHeahthCrawler() *OracleHeahthCrawler {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//package oracle_protocol_crawler
|
//package oracle_protocol_crawler
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package oracle_protocol_crawler_go
|
package oracle_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
package pgsql_protocol_crawler_go
|
package pgsql_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type PGSqlHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
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)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package pgsql_protocol_crawler_go
|
package pgsql_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package pop3_protocol_crawler_go
|
package pop3_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type POP3HeahthCrawler struct {
|
||||||
@ -27,7 +27,6 @@ func NewPOP3HeahthCrawler() *POP3HeahthCrawler {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//package pop3
|
//package pop3
|
||||||
//
|
//
|
||||||
//import (
|
//import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package pop3_protocol_crawler_go
|
package pop3_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package redis_protocol_crawler_go
|
package redis_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type RedisHeahthCrawler struct {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package redis_protocol_crawler_go
|
package redis_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
package rmi_protocol_crawler_go
|
package rmi_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type RMIHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
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)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package rmi_protocol_crawler_go
|
package rmi_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package smb_protocol_crawler_go
|
package smb_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type SMBHeahthCrawler struct {
|
||||||
@ -27,7 +27,6 @@ func NewSMBHeahthCrawler() *SMBHeahthCrawler {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//package smb_protocol_crawler
|
//package smb_protocol_crawler
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package smb_protocol_crawler_go
|
package smb_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package smtp_protocol_crawler_go
|
package smtp_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type SMTPHeahthCrawler struct {
|
||||||
@ -27,7 +27,6 @@ func NewSMTPHeahthCrawler() *SMTPHeahthCrawler {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//package smtp
|
//package smtp
|
||||||
//
|
//
|
||||||
//import (
|
//import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package smtp_protocol_crawler_go
|
package smtp_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
package snmpv2c_protocol_crawler_go
|
package snmpv2c_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type SNMPV2CHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
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)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -26,7 +26,6 @@ func NewSNMPV2CHeahthCrawler() *SNMPV2CHeahthCrawler {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//package snmpv2c_protocol_crawler
|
//package snmpv2c_protocol_crawler
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package snmpv2c_protocol_crawler_go
|
package snmpv2c_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package snmpv3_protocol_crawler_go
|
package snmpv3_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type SNMPV3HeahthCrawler struct {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package snmpv3_protocol_crawler_go
|
package snmpv3_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package ssh_protocol_crawler_go
|
package ssh_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type SSHHeahthCrawler struct {
|
||||||
@ -26,7 +26,6 @@ func NewSSHHeahthCrawler() *SSHHeahthCrawler {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//package ssh_protocol_crawler
|
//package ssh_protocol_crawler
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package ssh_protocol_crawler_go
|
package ssh_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
package telnet_protocol_crawler_go
|
package telnet_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type TelnetHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
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)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -27,7 +27,6 @@ func NewTelnetHeahthCrawler() *TelnetHeahthCrawler {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//package main
|
//package main
|
||||||
//
|
//
|
||||||
//import (
|
//import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package telnet_protocol_crawler_go
|
package telnet_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
package wmi_protocol_crawler_go
|
package wmi_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
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 {
|
type WMIHeahthCrawler struct {
|
||||||
crawler.SocketHeahthCrawler
|
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)
|
b, err := r.CheckHeahth(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -27,7 +27,6 @@ func NewWMIHeahthCrawler() *WMIHeahthCrawler {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//package wmi_protocol_crawler
|
//package wmi_protocol_crawler
|
||||||
//
|
//
|
||||||
//import (
|
//import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package wmi_protocol_crawler_go
|
package wmi_protocol_crawler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -2,11 +2,11 @@ package crawler
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/tls"
|
"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"
|
||||||
"git.loafle.net/overflow/overflow_probe/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/matcher/packet"
|
||||||
"net"
|
|
||||||
"git.loafle.net/overflow/overflow_probe/model/scaninfo"
|
"git.loafle.net/overflow/overflow_probe/model/scaninfo"
|
||||||
config "git.loafle.net/overflow/overflow_probe/agent_api/config_manager"
|
"net"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SocketHeahthCrawler struct {
|
type SocketHeahthCrawler struct {
|
||||||
@ -62,7 +62,7 @@ func (s *SocketHeahthCrawler) CheckHeahth(params config.Config) (bool, error) {
|
|||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
|
|
||||||
connection := params.Target.Connection
|
connection := params.Target.Connection
|
||||||
info := scaninfo.NewScanInfoImpl(connection.Ip,connection.Port)
|
info := scaninfo.NewScanInfoImpl(connection.Ip, connection.Port)
|
||||||
|
|
||||||
if s.m.IsPrePacket() == true {
|
if s.m.IsPrePacket() == true {
|
||||||
bytes := make([]byte, 1024)
|
bytes := make([]byte, 1024)
|
||||||
|
@ -3,7 +3,7 @@ package test
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"git.loafle.net/overflow/overflow_probe/crawler"
|
"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"
|
"github.com/stretchr/testify/assert"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ import (
|
|||||||
|
|
||||||
func initConfig() crawler.CrawlerImpl {
|
func initConfig() crawler.CrawlerImpl {
|
||||||
c := crawler.CrawlerImpl{}
|
c := crawler.CrawlerImpl{}
|
||||||
c.SetInternal(redis_protocol_crawler_go.NewRedisHeahthCrawler())
|
c.SetInternal(redis_protocol_crawler.NewRedisHeahthCrawler())
|
||||||
|
|
||||||
b, _ := ioutil.ReadFile("./example.json")
|
b, _ := ioutil.ReadFile("./example.json")
|
||||||
|
|
||||||
|
@ -2,12 +2,12 @@ package crawler_manager
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
g "git.loafle.net/overflow/crawler_go/grpc"
|
g "git.loafle.net/overflow/overflow_probe/crawler/grpc"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"encoding/json"
|
"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 {
|
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 {
|
// for _, path := range *paths {
|
||||||
//
|
//
|
||||||
// in := &g.Init{}
|
// 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 + "/"
|
// in.Path = path + "/"
|
||||||
// bcn := filepath.Base(path)
|
// bcn := filepath.Base(path)
|
||||||
// bcn = strings.ToUpper(bcn)
|
// bcn = strings.ToUpper(bcn)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package crawler_manager
|
package crawler_manager
|
||||||
|
|
||||||
import (
|
import (
|
||||||
//"git.loafle.net/overflow/crawler_go/config"
|
//"git.loafle.net/overflow/overflow_probe/crawler/config"
|
||||||
//"encoding/json"
|
//"encoding/json"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
@ -12,7 +12,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"errors"
|
"errors"
|
||||||
"git.loafle.net/overflow/agent_api/config_manager"
|
"git.loafle.net/overflow/overflow_probe/agent_api/config_manager"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
package crawler_manager
|
package crawler_manager
|
||||||
|
|
||||||
import (
|
import (
|
||||||
//ooo "git.loafle.net/overflow/agent_api/observer"
|
//ooo "git.loafle.net/overflow/overflow_probe/agent_api/observer"
|
||||||
//"git.loafle.net/overflow/agent_api/config_manager"
|
//"git.loafle.net/overflow/overflow_probe/agent_api/config_manager"
|
||||||
//"git.loafle.net/overflow/agent_api/messages"
|
//"git.loafle.net/overflow/overflow_probe/agent_api/messages"
|
||||||
//
|
//
|
||||||
//"fmt"
|
//"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) {
|
func Start(res chan bool, conMgr config_manager.ConfigManager) {
|
||||||
|
@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.loafle.net/overflow/agent_api/config_manager"
|
"git.loafle.net/overflow/overflow_probe/agent_api/config_manager"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCallInit(t *testing.T) {
|
func TestCallInit(t *testing.T) {
|
||||||
@ -99,13 +99,13 @@ func TestCom(t *testing.T) {
|
|||||||
|
|
||||||
func TestReadConfig(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)
|
//t.Log(c)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestDir(t *testing.T) {
|
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)
|
t.Log(a)
|
||||||
}
|
}
|
||||||
@ -124,7 +124,7 @@ func TestDir22(t *testing.T) {
|
|||||||
|
|
||||||
func TestCrateDir(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
|
var configPath []string
|
||||||
|
|
||||||
@ -196,7 +196,7 @@ func TestDirs(t *testing.T) {
|
|||||||
|
|
||||||
func TestSplitPath(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)
|
a := filepath.Dir(ff)
|
||||||
t.Log(a)
|
t.Log(a)
|
||||||
a = filepath.Clean(a)
|
a = filepath.Clean(a)
|
||||||
@ -350,7 +350,7 @@ func TestMock(t *testing.T) {
|
|||||||
func TestRPC(t *testing.T) {
|
func TestRPC(t *testing.T) {
|
||||||
|
|
||||||
//c := conMgr.NewConfigManager()
|
//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()
|
//c.LoadCrawlerConfigAllTTT()
|
||||||
//
|
//
|
||||||
//observer.Notify(messages.CONFIGMANAGER_LOADED,c)
|
//observer.Notify(messages.CONFIGMANAGER_LOADED,c)
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package data_sender_go
|
package data_sender
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
cm "git.loafle.net/overflow/agent_api/config_manager"
|
cm "git.loafle.net/overflow/overflow_probe/agent_api/config_manager"
|
||||||
"git.loafle.net/overflow/agent_api/messages"
|
"git.loafle.net/overflow/overflow_probe/agent_api/messages"
|
||||||
pb "git.loafle.net/overflow/crawler_go/grpc"
|
pb "git.loafle.net/overflow/overflow_probe/crawler/grpc"
|
||||||
q "git.loafle.net/overflow/queue_go"
|
q "git.loafle.net/overflow/overflow_probe/queue"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package data_sender_go
|
package data_sender
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/agent_api/observer"
|
"git.loafle.net/overflow/overflow_probe/agent_api/observer"
|
||||||
"strconv"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
@ -3,8 +3,8 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.loafle.net/overflow/discovery"
|
"git.loafle.net/overflow/overflow_probe/discovery"
|
||||||
"git.loafle.net/overflow/discovery/conf"
|
"git.loafle.net/overflow/overflow_probe/discovery/conf"
|
||||||
log "github.com/cihub/seelog"
|
log "github.com/cihub/seelog"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package collector
|
package collector
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/discovery/discovery"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types/timestamp"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp"
|
||||||
log "github.com/cihub/seelog"
|
log "github.com/cihub/seelog"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"sync"
|
"sync"
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types/timestamp"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -2,7 +2,7 @@ package communicate
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
//"git.loafle.net/overflow/central/client/events"
|
//"git.loafle.net/overflow/overflow_probe/central/client/events"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _c *communicator = nil
|
var _c *communicator = nil
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"gopkg.in/gin-gonic/gin.v1"
|
"gopkg.in/gin-gonic/gin.v1"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
|
||||||
"git.loafle.net/overflow/central/client/events"
|
"git.loafle.net/overflow/overflow_probe/central/client/events"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -3,8 +3,8 @@ package communicate
|
|||||||
import (
|
import (
|
||||||
//"bytes"
|
//"bytes"
|
||||||
//"compress/gzip"
|
//"compress/gzip"
|
||||||
//"git.loafle.net/overflow/discovery/communicate/events"
|
//"git.loafle.net/overflow/overflow_probe/discovery/communicate/events"
|
||||||
//"git.loafle.net/overflow/central/client/events"
|
//"git.loafle.net/overflow/overflow_probe/central/client/events"
|
||||||
)
|
)
|
||||||
|
|
||||||
type communicator struct {
|
type communicator struct {
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"git.loafle.net/overflow/central/client/events"
|
"git.loafle.net/overflow/overflow_probe/central/client/events"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types/timestamp"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp"
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"github.com/cihub/seelog"
|
"github.com/cihub/seelog"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
//"git.loafle.net/overflow/discovery/communicate"
|
//"git.loafle.net/overflow/overflow_probe/discovery/communicate"
|
||||||
//"git.loafle.net/overflow/overflow.collector_backup2/src/git.loafle.net/overflow/discovery/communicate"
|
//"git.loafle.net/overflow/overflow_probe/overflow.collector_backup2/src/git.loafle.net/overflow/overflow_probe/discovery/communicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package pcap
|
package pcap
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ package pcap
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/zone"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/zone"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package pcap
|
package pcap
|
||||||
|
|
||||||
import (
|
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"
|
||||||
"github.com/google/gopacket/layers"
|
"github.com/google/gopacket/layers"
|
||||||
"github.com/google/gopacket/pcap"
|
"github.com/google/gopacket/pcap"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package host
|
package host
|
||||||
|
|
||||||
import (
|
import (
|
||||||
p "git.loafle.net/overflow/discovery/core/pcapwrapper"
|
p "git.loafle.net/overflow/overflow_probe/discovery/core/pcapwrapper"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
"git.loafle.net/overflow/discovery/util/converter"
|
"git.loafle.net/overflow/overflow_probe/discovery/util/converter"
|
||||||
log "github.com/cihub/seelog"
|
log "github.com/cihub/seelog"
|
||||||
"github.com/google/gopacket"
|
"github.com/google/gopacket"
|
||||||
"github.com/google/gopacket/layers"
|
"github.com/google/gopacket/layers"
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
package tcp
|
package tcp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.loafle.net/overflow/discovery/discovery/types/timestamp"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp"
|
||||||
log "github.com/cihub/seelog"
|
log "github.com/cihub/seelog"
|
||||||
"github.com/google/gopacket"
|
"github.com/google/gopacket"
|
||||||
"github.com/google/gopacket/layers"
|
"github.com/google/gopacket/layers"
|
||||||
|
|
||||||
//"git.loafle.net/overflow/central/client/events"
|
//"git.loafle.net/overflow/overflow_probe/central/client/events"
|
||||||
//"git.loafle.net/overflow/discovery/communicate"
|
//"git.loafle.net/overflow/overflow_probe/discovery/communicate"
|
||||||
pw "git.loafle.net/overflow/discovery/core/pcapwrapper"
|
pw "git.loafle.net/overflow/overflow_probe/discovery/core/pcapwrapper"
|
||||||
"git.loafle.net/overflow/discovery/util/converter"
|
"git.loafle.net/overflow/overflow_probe/discovery/util/converter"
|
||||||
)
|
)
|
||||||
|
|
||||||
type tcpRecvCallback func(tcp *layers.TCP)
|
type tcpRecvCallback func(tcp *layers.TCP)
|
||||||
|
@ -2,8 +2,8 @@ package tcp
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types/timestamp"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/google/gopacket/layers"
|
"github.com/google/gopacket/layers"
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
package udp
|
package udp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
log "github.com/cihub/seelog"
|
log "github.com/cihub/seelog"
|
||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/google/gopacket"
|
"github.com/google/gopacket"
|
||||||
|
|
||||||
//"git.loafle.net/overflow/central/client/events"
|
//"git.loafle.net/overflow/overflow_probe/central/client/events"
|
||||||
//"git.loafle.net/overflow/discovery/communicate"
|
//"git.loafle.net/overflow/overflow_probe/discovery/communicate"
|
||||||
pw "git.loafle.net/overflow/discovery/core/pcapwrapper"
|
pw "git.loafle.net/overflow/overflow_probe/discovery/core/pcapwrapper"
|
||||||
)
|
)
|
||||||
|
|
||||||
type udpRecvCallback func(packet gopacket.Packet)
|
type udpRecvCallback func(packet gopacket.Packet)
|
||||||
|
@ -2,8 +2,8 @@ package udp
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types/timestamp"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types/timestamp"
|
||||||
"github.com/google/gopacket"
|
"github.com/google/gopacket"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -2,7 +2,7 @@ package activedirectory
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@ package cassandra
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -2,7 +2,7 @@ package cassandra
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/tls"
|
"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"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
log "github.com/cihub/seelog"
|
log "github.com/cihub/seelog"
|
||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package dhcp
|
package dhcp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/discovery/core/scan/zone"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/zone"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@ package dns
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Dns_frame_header struct {
|
type Dns_frame_header struct {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package dns
|
package dns
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet"
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package ftp
|
package ftp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
log "github.com/cihub/seelog"
|
log "github.com/cihub/seelog"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.loafle.net/overflow/discovery/discovery/scan/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/packet"
|
||||||
"git.loafle.net/overflow/discovery/discovery/scan/matcher/scaninfo"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/scaninfo"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
log "github.com/cihub/seelog"
|
log "github.com/cihub/seelog"
|
||||||
"net"
|
"net"
|
||||||
)
|
)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package http
|
package http
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@ package http
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
@ -3,7 +3,7 @@ package http
|
|||||||
import (
|
import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.loafle.net/overflow/discovery/discovery/scan/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/packet"
|
||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package imap
|
package imap
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -3,9 +3,9 @@ package imap
|
|||||||
import (
|
import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.loafle.net/overflow/discovery/discovery/scan/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/packet"
|
||||||
"git.loafle.net/overflow/discovery/discovery/scan/matcher/scaninfo"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/scaninfo"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
@ -3,8 +3,8 @@ package ldap
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type LDAPMatcher struct {
|
type LDAPMatcher struct {
|
||||||
|
@ -3,9 +3,9 @@ package ldap
|
|||||||
import (
|
import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.loafle.net/overflow/discovery/discovery/scan/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/packet"
|
||||||
"git.loafle.net/overflow/discovery/discovery/scan/matcher/scaninfo"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/scan/matcher/scaninfo"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
@ -1,29 +1,29 @@
|
|||||||
package matcher
|
package matcher
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/activedirectory"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/activedirectory"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/cassandra"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/cassandra"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/dns"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/dns"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/ftp"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/ftp"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/http"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/http"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/imap"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/imap"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/ldap"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/ldap"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/mongodb"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/mongodb"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/mssql"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/mssql"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/mysql"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/mysql"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/netbios"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/netbios"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/oracle"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/oracle"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/packet"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/packet"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/pop"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/pop"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/redis"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/redis"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/rmi"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/rmi"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/smb"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/smb"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/smtp"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/smtp"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/snmp"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/snmp"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/ssh"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/ssh"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/telnet"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/telnet"
|
||||||
"git.loafle.net/overflow/discovery/core/scan/service/matcher/wmi"
|
"git.loafle.net/overflow/overflow_probe/discovery/core/scan/service/matcher/wmi"
|
||||||
"git.loafle.net/overflow/discovery/discovery/types"
|
"git.loafle.net/overflow/overflow_probe/discovery/discovery/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
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