LUA dissector on raw file
In WS, you can open a raw file (for example ASN.1) by selecting file type "All files". This is very powerfull!. When selecting the packet I can select "Decode As" and the "field" column is "BER Syntax" and the "Current" column can be set. Now I have my own LUA dissector. If used on tcp or udp, I can add it to the "Decode as" list by registering on one of the tcp / udp ports. I cannot seem to find how to add it to the "BER Syntax" current column. I understand that there are other ways for ASN.1 and creating pcap files by adding a header with user DLT, but it would be so much more convinient if I could just open the binary file and use decode as to select my LUA dissector.
Is there an example ASN.1 file for testing?
Sure, ASN.1 is really simple, however I don't know how to attach files. if you hexedit a file and add :
name the file "asn.1" then ws open "All files" and select asn.1 It will show:CyberChef recipe to create file:
https://gchq.github.io/CyberChef/#rec...