VanDyke Software Forums

Go Back   VanDyke Software Forums > Scripting
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-07-2010, 12:57 PM
beach-life beach-life is offline
Registered User
 
Join Date: Jun 2010
Posts: 1
Sending a UDP packet

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?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 11:02 PM.


© copyright 1995-2010 VanDyke Software, Inc.