Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ type Config struct {
// report
CveDict GoCveDictConf `json:"cveDict,omitzero"`
Gost GostConf `json:"gost,omitzero"`
Exploit ExploitConf `json:"exploit,omitzero"`
Cti CtiConf `json:"cti,omitzero"`
Vuls2 Vuls2Conf `json:"vuls2,omitzero"`

Expand Down Expand Up @@ -188,7 +187,6 @@ func (c *Config) ValidateOnReport() bool {
for _, cnf := range []VulnDictInterface{
&Conf.CveDict,
&Conf.Gost,
&Conf.Exploit,
&Conf.Cti,
} {
if err := cnf.Validate(); err != nil {
Expand Down
1 change: 0 additions & 1 deletion config/tomlloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func (c TOMLLoader) Load(pathToToml string) error {
for _, cnf := range []VulnDictInterface{
&Conf.CveDict,
&Conf.Gost,
&Conf.Exploit,
&Conf.Cti,
} {
cnf.Init()
Expand Down
27 changes: 0 additions & 27 deletions config/vulnDictConf.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,33 +146,6 @@ func (cnf VulnDict) CheckHTTPHealth() error {
return nil
}

// ExploitConf is exploit config
type ExploitConf struct {
VulnDict
}

const exploitDBType = "EXPLOITDB_TYPE"
const exploitDBURL = "EXPLOITDB_URL"
const exploitDBPATH = "EXPLOITDB_SQLITE3_PATH"

// Init set options with the following priority.
// 1. Environment variable
// 2. config.toml
func (cnf *ExploitConf) Init() {
cnf.Name = "exploit"
if os.Getenv(exploitDBType) != "" {
cnf.Type = os.Getenv(exploitDBType)
}
if os.Getenv(exploitDBURL) != "" {
cnf.URL = os.Getenv(exploitDBURL)
}
if os.Getenv(exploitDBPATH) != "" {
cnf.SQLite3Path = os.Getenv(exploitDBPATH)
}
cnf.setDefault("go-exploitdb.sqlite3")
cnf.DebugSQL = Conf.DebugSQL
}

// GoCveDictConf is GoCveDict config
type GoCveDictConf struct {
VulnDict
Expand Down
6 changes: 0 additions & 6 deletions detector/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,6 @@ func Detect(rs []models.ScanResult, dir string) ([]models.ScanResult, error) {
return nil, xerrors.Errorf("Failed to fill with CVE: %w", err)
}

nExploitCve, err := FillWithExploit(&r, config.Conf.Exploit, config.Conf.LogOpts)
if err != nil {
return nil, xerrors.Errorf("Failed to fill with exploit: %w", err)
}
logging.Log.Infof("%s: %d PoC are detected", r.FormatServerName(), nExploitCve)

if err := FillWithCTI(&r, config.Conf.Cti, config.Conf.LogOpts); err != nil {
return nil, xerrors.Errorf("Failed to fill with Cyber Threat Intelligences: %w", err)
}
Expand Down
259 changes: 0 additions & 259 deletions detector/exploitdb.go

This file was deleted.

Loading
Loading