Removing print statements

This commit is contained in:
Christopher Talib 2020-02-20 14:53:18 +01:00
parent 0f25d6d81c
commit e87856b9a1
2 changed files with 0 additions and 4 deletions

View file

@ -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
}
}

View file

@ -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 {