Skip to content

Instantly share code, notes, and snippets.

View cinsk's full-sized avatar

Seong-Kook Shin cinsk

View GitHub Profile
@cinsk
cinsk / tcp-port-scan.sh
Created September 23, 2012 06:36
Wait until TCP ports opened (or closed)
#!/bin/bash
function wait4tcp () {
local nc opt silence op host port ret failed limit tries
local OPTIND OPTARG
limit=100
op="open"
while getopts ":csw:" opt; do