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

Make the port scan range applicable only for selected transport layer protocols #65

Open kursatkobya opened 2 years ago

kursatkobya commented 2 years ago

Currently the port scan works within given port numbers, but if a transport protocol layer has been chosen (--udp, --tcp or --sctp) the ports belong to these protocols are scanned but the not in the range of given port numbers. This behavior should be changed to include ports only in that range.

The port numbers for transport layer protocols are fetched from corresponding sorted arrays in port_details.rs. And depending on protocol these arrays are fed to stream (check fn get_ports)

These streams should be fed only with part of the array that matches port range. A slice can be thought for instance.