Removing print statements
This commit is contained in:
parent
0f25d6d81c
commit
e87856b9a1
|
@ -2,7 +2,6 @@ package filters
|
|||
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"os"
|
||||
|
@ -74,7 +73,6 @@ func RunDomainFilters(domain string) bool {
|
|||
logrus.Warn("filters#Compile#", err)
|
||||
}
|
||||
if r.MatchString(domain) {
|
||||
fmt.Println("##### match:", domain)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
|
2
main.go
2
main.go
|
@ -182,9 +182,7 @@ func shodanRoutine(client *shodan.Client, shodanChan chan *shodan.HostData, conn
|
|||
shodanNode := models.BuildShodanNode(banner)
|
||||
// first filter poc
|
||||
if shodanNode.Data.HTML != "" {
|
||||
fmt.Println("##### not empty HTML", shodanNode.ID)
|
||||
if !filters.RunIPFilters(shodanNode.Data.IP) {
|
||||
fmt.Println("##### not in filters", shodanNode.ID)
|
||||
hostnames := shodanNode.Data.Hostnames
|
||||
var hostNotInFilters, domainNotInFilters bool
|
||||
if len(hostnames) != 0 {
|
||||
|
|
Loading…
Reference in a new issue