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!