Difference between revisions of "Netcat"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
``` | ``` | ||
− | nc - | + | nc -zvw 2 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 | [[ $(nc -w1 -z -v www.example.com 443 2>&1) == *"succeeded"* ]] && echo ok | ||
``` | ``` |
Revision as of 23:00, 3 May 2022
nc -zvw 2 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