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

14 lines
195 B
Plaintext
Executable File

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