synfinatic / udp-proxy-2020

A crappy UDP router for the year 2020 and beyond
MIT License
103 stars 7 forks source link

str2pcap should just parse debug logs #36

Closed synfinatic closed 2 years ago

synfinatic commented 3 years ago

Rather than copy & pasting lines, just parse them.

harshitashankar commented 3 years ago

Can you add more information on this? I see contents being copied from inputfile to output file in str2pcap/main.go. What do you mean by "JUST" parsing? Do you want to remove the code that writes to outfile?

synfinatic commented 3 years ago

right now the --debug flag for udp-proxy-2020 spits out the hex values of the packet. Currently to use str2pcap someone has to copy and paste those values from the output and into a file which obviously sucks. I believe the logger can output JSON which would make parsing the logs automatically pretty simple for str2pcap to do without requiring the user to copy & paste.

synfinatic commented 2 years ago

no need now that we create pcap files