kursatkobya / libfrizz

libfrizz is a computer software project providing a lightweight library and command-line tool for transferring data
GNU General Public License v3.0
0 stars 1 forks source link

Instead of using port details hashmap, perform live parsing from file #64

Open kursatkobya opened 2 years ago

kursatkobya commented 2 years ago

Currently port details are listed with the help of hashmap that is built by following helper code : https://github.com/kursatkobya/bite-sized-qualms/tree/main/file-parser This approach could be faster but obviously not neat enough.

Instead we can have the file contains port details stored in the directory. When ports are matched it could be searched over the file and related information can be parsed and written to output file.

Nice to have A little benchmarking to compare with hashmap solution.

kursatkobya commented 2 years ago

The file to parse is this : https://github.com/nmap/nmap/blob/master/nmap-services

ozkanpakdil commented 2 years ago

please test.