yolle yolle - 1 year ago 119
HTML Question

how to parse .asn file to managable object in javascript or python

I am creating a website which can upload .asn file, fill the parameter, send the request and show the response in html.
I am thinking that I could use javascript to parse the .asn file in order to show the imput and the response result.
But I am having trouble deal with this.
Do I have to write my own parser to do it or is there any tools?
I will appreciate any help, thanks.

I am using flask with javascript so that a python solution can also solve this problem

Answer Source

I finally have a solution to this, This python package: https://github.com/kimgr/asn1ate create a semantic tree so that I can somehow turn it to json form to diaplay.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download