Page 1 of 1

UDP send in VBscript

Posted: Sun Mar 12, 2006 9:46 am
by PT
Hi

Does anyone know how to send udp in vbscipt.

I cannot seem to find much info about this on the web.

Pearl is able to do this but I wish to send from Housebot. It may be possible usin winsock. I have udp traffic being sent and indeed received when monitoring via a vb program.



I would like to send a comand like "avy134" to an ip address say 192.168.1.1 port 5000.

My guess...

Posted: Tue Mar 14, 2006 3:41 pm
by Timoh
My guess is you'd need a command line tool that can manipulate and send packets. Then simply call the tool from a shell in vbscript.



I'd be very surprised if vbscript had much network capability built into it.



If I get a chance, I'll brush off a few books and see if I can find what I'm thinking of for a command line tool.



Tim

Posted: Tue Mar 14, 2006 5:09 pm
by ScottBot
Also check out curl and the execute program device. Here's a post with a similar question.

Posted: Sat Mar 18, 2006 5:42 am
by PT
Scott/Timoh



Thanks for the reply.

Scott the reply you mention was infact to me.I do use cURL at the mo for http messages.Looking at their website It seems to list everything except udp :? .

Unless ,of course, you are aware of something different?

Posted: Sat Mar 18, 2006 10:57 am
by ScottBot
PT wrote:Scott the reply you mention was infact to me.
Ha. I just remembered the discussion and didn't even look at who was posting :oops:



Yea, I guess curl is TCP only. Have you tried sending the command via TCP?