Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / June 2005

Tip: Looking for answers? Try searching our database.

VS.Net VB - Reproducting Etherdetect captured UDP packets

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ben H - 24 Jun 2005 10:39 GMT
Hello all

I am using Etherdetect to capture UDP packets. I then want to reproduce
these packets in Visual Basic as a learning experience. It's just not working
though.

The Etherdetect capture is this...

00 09 5B 96 5C 74 00 0C 29 FF E3 90 08 00 45 00 00 26 7C E3 00 00 80 11 95
58 C0 A8 00 07 54 CF 13 0D 07 D6 74 CC 00 12 2F 4B FE FD 00 D6 2B 7D 00 00 00
00

The packet length is 52, data length is 10.

So, the data part sent is...

FE FD 00 D6 2B 7D 00 00 00 00 in hex

I want to resend that exact data to see if I get a response but I can't work
out how to send it as hex. If I try...

Dim udpClient As New UdpClient
udpClient.Connect("x.x.x.x", xxx)
Dim sendBytes As [Byte]() = Encoding.ASCII.GetBytes("FE FD 00 D6 2B 7D 00 00
00 00")
udpClient.Send(sendBytes, sendBytes.Length)

Then it obviously doesn't work as it's sending hex as ascii. Does anyone
know how I can specify it as hex so I get the same send as before?

Cheers
Ben
Ben H - 29 Jun 2005 11:03 GMT
Please? Anyone?

Still stuck on this - it's driving me mental!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.