show more output and organized it a tiny bit
This commit is contained in:
parent
e329a754f7
commit
9b95e8d983
1 changed files with 10 additions and 10 deletions
20
main.go
20
main.go
|
@ -345,16 +345,6 @@ func main() {
|
|||
fmt.Println("\n--------------------------------------------------")
|
||||
fmt.Println("scan done at:", time.Now())
|
||||
fmt.Println("--------------------------------------------------")
|
||||
|
||||
if len(openPorts) == 0 {
|
||||
summaryFile.WriteString("no open ports found.\n")
|
||||
} else {
|
||||
summaryFile.WriteString("[+] scan summary: open ports found with fingerprints above\n")
|
||||
summaryFile.WriteString(fmt.Sprintf("[+] scanned %s to %s\n[+] ports %d to %d\n", ipParts[0], ipParts[1], portStart, portEnd))
|
||||
|
||||
|
||||
}
|
||||
fmt.Println("[+] scan summary written to summary.txt")
|
||||
if len(minecraftServers) > 0 {
|
||||
safePrintln("[*] querying Minecraft servers on port 25565...")
|
||||
for _, ip := range minecraftServers {
|
||||
|
@ -367,4 +357,14 @@ func main() {
|
|||
}
|
||||
}
|
||||
}
|
||||
if len(openPorts) == 0 {
|
||||
summaryFile.WriteString("no open ports found.\n")
|
||||
} else {
|
||||
summaryFile.WriteString("[+] scan summary: open ports found with fingerprints above\n")
|
||||
summaryFile.WriteString(fmt.Sprintf("[+] scanned %s to %s\n[+] ports %d to %d\n[+] %d scanned\n[+] %d hits\n", ipParts[0], ipParts[1], portStart, portEnd, len(ipList), len(openPorts)))
|
||||
|
||||
|
||||
}
|
||||
fmt.Println("[+] scan summary written to summary.txt")
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue