add sshcrawler

This commit is contained in:
snoop 2017-11-14 15:10:40 +09:00
parent 0e02116c8e
commit 94997a7335
3 changed files with 48 additions and 0 deletions

5
.gitignore vendored
View File

@ -59,3 +59,8 @@ crashlytics.properties
crashlytics-build.properties
fabric.properties
glide.lock
.vendor/
.idea/
.vscode/

40
glide.yaml Normal file
View File

@ -0,0 +1,40 @@
package: git.loafle.net/overflow/rpc_network_crawler_go
import:
- package: git.loafle.net/overflow/crawler_go
subpackages:
- grpc
- health_crawler/activedirectory_protocol_crawler_go
- health_crawler/cassandra_protocol_crawler_go
- health_crawler/dns_protocol_crawler_go
- health_crawler/ftp_protocol_crawler_go
- health_crawler/ftps_protocol_crawler_go
- health_crawler/http_protocol_crawler_go
- health_crawler/imap_protocol_crawler_go
- health_crawler/ldap_protocol_crawler_go
- health_crawler/mongodb_protocol_crawler_go
- health_crawler/mssql_protocol_crawler_go
- health_crawler/mysql_protocol_crawler_go
- health_crawler/netbios_protocol_crawler_go
- health_crawler/oracle_protocol_crawler_go
- health_crawler/pgsql_protocol_crawler_go
- health_crawler/pop3_protocol_crawler_go
- health_crawler/redis_protocol_crawler_go
- health_crawler/rmi_protocol_crawler_go
- health_crawler/smb_protocol_crawler_go
- health_crawler/smtp_protocol_crawler_go
- health_crawler/snmpv2c_protocol_crawler_go
- health_crawler/snmpv3_protocol_crawler_go
- health_crawler/ssh_protocol_crawler_go
- health_crawler/telnet_protocol_crawler_go
- health_crawler/wmi_protocol_crawler_go
- package: golang.org/x/net
subpackages:
- context
- package: google.golang.org/grpc
testImport:
- package: git.loafle.net/overflow/agent_api
subpackages:
- config_manager
- package: github.com/stretchr/testify
subpackages:
- assert

View File

@ -32,6 +32,7 @@ import (
"git.loafle.net/overflow/crawler_go/health_crawler/wmi_protocol_crawler_go"
"git.loafle.net/overflow/crawler_go/health_crawler/cassandra_protocol_crawler_go"
"git.loafle.net/overflow/crawler_go/health_crawler/http_protocol_crawler_go"
"git.loafle.net/overflow/ssh_crawler"
)
var g_crawlers map[string]crawler.Crawler
@ -71,6 +72,8 @@ func initCrawlers() {
AddDelegate(pb.Crawlers_HEALTH_WMI.String(), wmi_protocol_crawler_go.NewWMIHeahthCrawler())
AddDelegate(pb.Crawlers_HEALTH_CASSANDRA.String(), cassandra_protocol_crawler_go.NewCassandraHealthCrawler())
AddDelegate(pb.Crawlers_HEALTH_HTTP.String(), http_protocol_crawler_go.NewHTTPHealthCrawler())
AddDelegate("SSH_CRAWLER", ssh_crawler.NewSSHCrawler())
}
func start(rc pb.ConfigServer, rd pb.DataServer, rs pb.StatusServer) {