nmap/tests/ncat-protocol-sanity-test/udpclt.exp

15 lines
181 B
Plaintext
Raw Normal View History

#!/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