This originally started as a learning exercise in Go Routines when going through a course on Go Programming. I needed a real world programming example, and every day it seems I have to perform checks for tcpconnectivity -- and worse yet our security guys didn't like putting on netcat or nmap so we had to use telnet. That's like using a screwdriver as a chisel, it works but not what it was designed for. We literally had people who made scripts using telnet to check the connectivity to 100 hosts to see if they were online on a regular basis, which using Telnet took over a minute for all of them to time out and report if they were open, but didn't tell you if the port was open, closed or filtered by a firewall.
So I took my little learning excersize and made a program called tcpscan. Honestly I am more of a sysadmin than I am a programmer, and Go is really my first C like compiled language, and I relied more on Bash, PHP, little Perl, TCL (Expect) so I am sure there are a lot of things that could be done better in the program -- but thats what I am hoping for. If this is useful, people like it, make it better right? http://github.com/rmasci/tcpscan ~] $ cat list;tcpscan -f list https://www.youtube.com https://www.google.com https://www.twitter.com https://www.github.com https://www.amazon.com +--------------------+---------+-----------+-------------+ | Address | Port | Status | TCP | +====================+=========+===========+=============+ | www.youtube.com | 443 | Open | 45.51ms | | www.google.com | 443 | Open | 44.95ms | | www.twitter.com | 443 | Open | 61.89ms | | www.github.com | 443 | Open | 77.86ms | | www.amazon.com | 443 | Open | 153.61ms | +--------------------+---------+-----------+-------------+ Scanned 5 hosts/ports in 170.48ms -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/fc2d591f-a7cf-4f65-aade-224bb02fb128%40googlegroups.com.