00.OS
Linux TCP 포트 오픈 체크 프로그램 - pcheck
왕영주
2021. 5. 13. 13:28
https://yjwang.tistory.com/140
이전 포스팅으로 제가 개발한 프로그램을 배포하고자합니다.
다운로드 하셔서 바로 사용하실 수 있으니 필요하신 분들께선 편하게 사용 해주시기바랍니다.
Info
'pcheck'는 tcp port가 open 됐는지 확인하는 간단한 프로그램입니다.
Download / Installation
# wget https://raw.githubusercontent.com/YoungjuWang/pcheck/master/pcheck/pcheck
# chmod +x pcheck; mv pcheck /usr/local/bin/
Help
# pcheck --help
"pcheck" check certain TCP port is opend
Usage:
pcheck [flags]
Examples:
pcheck -i 192.168.0.10 -p 8888
Flags:
-h, --help help for pcheck
-i, --host string destination address for checking (required)
-p, --port string destination port for checking (required)
Expected Output
# pcheck -i 192.168.122.1 -p 8888
192.168.122.1:8888 is opened
# pcheck -i 192.168.122.1 -p 8080
dial tcp 192.168.122.1:8080: connect: connection refused
반응형