Difference between revisions of "Netcat"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
nc -z -v host.example.com 443 | nc -z -v host.example.com 443 | ||
nc -w 1 -z -v host.example.com 443 | nc -w 1 -z -v host.example.com 443 | ||
+ | [[ $(nc -w1 -z -v www.example.com 443 2>&1) == *"succeeded"* ]] && echo ok | ||
``` | ``` |
Revision as of 15:16, 19 February 2022
nc -z -v host.example.com 443 nc -w 1 -z -v host.example.com 443 [[ $(nc -w1 -z -v www.example.com 443 2>&1) == *"succeeded"* ]] && echo ok