nmap/tests/ncat-protocol-sanity-test/udpclt.exp
Petr Šabata 4e5dfae237 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/nmap#b0d2e8add17e7c21b40790e528522977b3a0b5ed
2020-10-15 21:08:37 +02:00

15 lines
181 B
Plaintext
Executable File

#!/usr/bin/expect
set timeout 10
spawn ncat -4 --udp localhost 6666
send -- "ClientSend\r"
expect {
eof { exit 2 }
default { exit 1 }
"ServerSend\r"
}
sleep 1
exit 0