You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
5 years ago | |
---|---|---|
.gitignore | 6 years ago | |
README.md | 5 years ago | |
data.dns.bin | 6 years ago | |
data.pcap | 6 years ago | |
data.udp.bin | 6 years ago | |
encoded | 6 years ago | |
index.htm | 6 years ago | |
index.js | 6 years ago | |
package.json | 6 years ago |
README.md
DNS Header Parsing in javascript
Sample code parsing dns headers in javascript. I wrote this at the request of a potential employer during the interview process. Not really a usuable module, but this was specifically what they wanted to see.
ToDo
- Import packet string into Arraybuffer
- Parse the headers into a Javascript object
- Test/Fix browser JS compatibility
To see the parsed result of the packet, clone the repo and :
npm install && npm start
To view in the browser, open index.html
in your browser and look at the console output.
The raw packet that is parsed has also been saved as ./data.udp.bin
, if you would like to look at it to parse it some other way.