I am new to this forum, but have used SecureCRT for approx. 4 years. I would like to write a simple script to perform a port knocking function to unblock the SSH port before connecting. But within the scripting environment, I cannot figure out how to send a simple UDP packet.
Here's the plan... On the server (Linux) block all access to TCP/UDP ports except for established connections and a port knocking UDP port. Write a simple daemon to monitor the UDP port. When a packet arrives for the UDP port, treat it as a port knocking OTP (One-Time Password). For the OTP I'm looking at using a Yubikey OTP key (
http://www.yubico.com/products/yubikey). If the OTP is successfully authenticated, the daemon would unblock the SSH port for the source IP of the OTP packet (for a limited time, ~ 30 seconds).
On the SecureCRT side... I need SecureCRT to prompt for the Yubikey OTP and then send the OTP via a UDP packet. From the SecureCRT scripting examples, I can prompt for the OTP using a dialog box, but I can not figure out to send a UDP packet.
So, is there any way to send a UDP packet from within a SecureCRT script?