Skip to content

Commit

Permalink
DNS-SD, next secure
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed Aug 14, 2024
1 parent b00c20c commit 95c077f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Protest/Front/hexviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,10 @@ class HexViewer extends Window {
this.PopulateLabel("Target", 1, hexContainer, charContainer, index + 6, targetOffset - (index + 6), true);
break;

case 47: //NSEC
this.PopulateLabel("Next domain name", 1, hexContainer, charContainer, index, 2, true);
break;

default:
this.PopulateLabel("Answer", 1, hexContainer, charContainer, index, len);
break;
Expand Down
4 changes: 4 additions & 0 deletions Protest/Protocols/Mdns.cs
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,10 @@ private static Answer[] ParseAnswers(byte[] response, RecordType queryType, IPAd
}
break;

case RecordType.NSEC:
answer.answerString = ExtractName(response, index);
break;

default:
if (answer.length > 0 && index + answer.length < response.Length) {
answer.answerString = BitConverter.ToString(response, index, answer.length);
Expand Down

0 comments on commit 95c077f

Please sign in to comment.