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 ( import (
"bufio" "bufio"
"fmt"
"io/ioutil" "io/ioutil"
"net" "net"
"os" "os"
@ -74,7 +73,6 @@ func RunDomainFilters(domain string) bool {
logrus.Warn("filters#Compile#", err) logrus.Warn("filters#Compile#", err)
} }
if r.MatchString(domain) { if r.MatchString(domain) {
fmt.Println("##### match:", domain)
return false return false
} }
} }

View file

@ -182,9 +182,7 @@ func shodanRoutine(client *shodan.Client, shodanChan chan *shodan.HostData, conn
shodanNode := models.BuildShodanNode(banner) shodanNode := models.BuildShodanNode(banner)
// first filter poc // first filter poc
if shodanNode.Data.HTML != "" { if shodanNode.Data.HTML != "" {
fmt.Println("##### not empty HTML", shodanNode.ID)
if !filters.RunIPFilters(shodanNode.Data.IP) { if !filters.RunIPFilters(shodanNode.Data.IP) {
fmt.Println("##### not in filters", shodanNode.ID)
hostnames := shodanNode.Data.Hostnames hostnames := shodanNode.Data.Hostnames
var hostNotInFilters, domainNotInFilters bool var hostNotInFilters, domainNotInFilters bool
if len(hostnames) != 0 { if len(hostnames) != 0 {