We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fac72bb commit 7f3c0bcCopy full SHA for 7f3c0bc
testing/open-ports.sh
@@ -44,7 +44,7 @@ function result {
44
45
function test_ports {
46
for port in "${ports[@]}"; do
47
- test_port=$(nc -z ${HOST} ${port})
+ test_port=$(nc ${HOST} ${port} -e "/bin/bash echo test")
48
rc=$?
49
result $rc port_${port}
50
done
0 commit comments