Skip to content

Commit

Permalink
Merge pull request #116 from edoardottt/devel
Browse files Browse the repository at this point in the history
Remove sonar as sub source + (linting) remove depguard
  • Loading branch information
edoardottt authored Oct 14, 2023
2 parents 59bddf4 + 08ef385 commit a1f4584
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ linters:
enable:
- asciicheck
- bodyclose
- depguard
- dogsled
- dupl
- errcheck
Expand Down
16 changes: 10 additions & 6 deletions pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ func ReportSubcommandHandler(userInput input.Input, mutex *sync.Mutex,
subdomains = input.CreateSubdomains(userInput.ReportWordSub, protocolTemp, urlUtils.CleanProtocol(target))

if userInput.ReportSubdomainDB {
sonar := opendb.SonarSubdomains(urlUtils.CleanProtocol(target), false)
subdomains = opendb.AppendDBSubdomains(sonar, subdomains)
crtsh := opendb.CrtshSubdomains(urlUtils.CleanProtocol(target), false)
subdomains = opendb.AppendDBSubdomains(crtsh, subdomains)
threatcrowd := opendb.ThreatcrowdSubdomains(urlUtils.CleanProtocol(target), false)
Expand All @@ -182,10 +180,14 @@ func ReportSubcommandHandler(userInput input.Input, mutex *sync.Mutex,
threatminer := opendb.ThreatMinerSubdomains(urlUtils.CleanProtocol(target), false)
subdomains = opendb.AppendDBSubdomains(threatminer, subdomains)

// Seems Not Working
// Service Not Working
// bufferOverrun := opendb.BufferOverrunSubdomains(urlUtils.CleanProtocol(target), false)
// subdomains = opendb.AppendDBSubdomains(bufferOverrun, subdomains)

// Service not working
// sonar := opendb.SonarSubdomains(urlUtils.CleanProtocol(target), false)
// subdomains = opendb.AppendDBSubdomains(sonar, subdomains)

if userInput.ReportVirusTotal {
vtSubs := opendb.VirusTotalSubdomains(urlUtils.CleanProtocol(target), input.GetVirusTotalKey(), false)
subdomains = opendb.AppendDBSubdomains(vtSubs, subdomains)
Expand Down Expand Up @@ -344,8 +346,6 @@ func SubdomainSubcommandHandler(userInput input.Input, mutex *sync.Mutex,
}

if userInput.SubdomainDB {
sonar := opendb.SonarSubdomains(urlUtils.CleanProtocol(target), userInput.SubdomainPlain)
subdomains = opendb.AppendDBSubdomains(sonar, subdomains)
crtsh := opendb.CrtshSubdomains(urlUtils.CleanProtocol(target), userInput.SubdomainPlain)
subdomains = opendb.AppendDBSubdomains(crtsh, subdomains)
threatcrowd := opendb.ThreatcrowdSubdomains(urlUtils.CleanProtocol(target), userInput.SubdomainPlain)
Expand All @@ -357,10 +357,14 @@ func SubdomainSubcommandHandler(userInput input.Input, mutex *sync.Mutex,
threatminer := opendb.ThreatMinerSubdomains(urlUtils.CleanProtocol(target), false)
subdomains = opendb.AppendDBSubdomains(threatminer, subdomains)

// Seems Not Working
// Service Not Working
// bufferOverrun := opendb.BufferOverrunSubdomains(urlUtils.CleanProtocol(target), userInput.SubdomainPlain)
// subdomains = opendb.AppendDBSubdomains(bufferOverrun, subdomains)

// Service not working
// sonar := opendb.SonarSubdomains(urlUtils.CleanProtocol(target), userInput.SubdomainPlain)
// subdomains = opendb.AppendDBSubdomains(sonar, subdomains)

if userInput.SubdomainVirusTotal {
vtSubs := opendb.VirusTotalSubdomains(urlUtils.CleanProtocol(target), input.GetVirusTotalKey(),
userInput.SubdomainPlain)
Expand Down

0 comments on commit a1f4584

Please sign in to comment.