Open secana opened 5 years ago
This seems to be a DNS update packet, RFC2136. There a some differences in the packet structure which are not supported at the moment.
The parsed payload:
{
Header={
Id=28974,
QuestionCount=1,
AnswerRecordCount=1,
AuthorityRecordCount=3,
AdditionalRecordCount=0,
Response=False,
OperationCode=Update,
AuthorativeServer=False,
Truncated=False,
RecursionDesired=False,
RecursionAvailable=False,
AuthenticData=False,
CheckingDisabled=False,
ResponseCode=NoError
},
Questions=[
{
Name=gdata.de,
Type=SOA,
Class=IN
}
],
AnswerRecords=[
{
Name=ID-CH-0304.gdata.de,
Type=CNAME,
Class=254,
TimeToLive=00:00:00,
DataLength=0
}
],
AuthorityRecords=[
{
Name=ID-CH-0304.gdata.de,
Type=AAAA,
Class=ANY,
TimeToLive=00:00:00,
DataLength=0
},
{
Name=ID-CH-0304.gdata.de,
Type=A,
Class=ANY,
TimeToLive=00:00:00,
DataLength=0
},
{
Name=ID-CH-0304.gdata.de,
Type=A,
Class=IN,
TimeToLive=00:20:00,
DataLength=4
}
],
AdditionalRecords=[]
}
The raw packet:
0x71 0x2e 0x28 0x00 0x00 0x01 0x00 0x01
0x00 0x03 0x00 0x00 0x05 0x67 0x64 0x61
0x74 0x61 0x02 0x64 0x65 0x00 0x00 0x06
0x00 0x01 0x0a 0x49 0x44 0x2d 0x43 0x48
0x2d 0x30 0x33 0x30 0x34 0x05 0x67 0x64
0x61 0x74 0x61 0x02 0x64 0x65 0x00 0x00
0x05 0x00 0xfe 0x00 0x00 0x00 0x00 0x00
0x00 0xc0 0x1a 0x00 0x1c 0x00 0xff 0x00
0x00 0x00 0x00 0x00 0x00 0xc0 0x1a 0x00
0x01 0x00 0xff 0x00 0x00 0x00 0x00 0x00
0x00 0xc0 0x1a 0x00 0x01 0x00 0x01 0x00
0x00 0x04 0xb0 0x00 0x04 0x0a 0x32 0x04
0x1f
Hi, very nice project!
I ran into the following behavior:
Request.FromArray(udpPacket.PayloadData)
throws an exception for the following payloadThe UDPPacket itself has the following information attached:
I'm not sure if the payload is really just invalid and I have to "try-catch" that, or that the parser runs into an error for a valid UDP DNS packet.
Regards secana