robertdavidgraham / masscan

TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.
GNU Affero General Public License v3.0
23.46k stars 3.06k forks source link

adapter-port / source-port is not implemented in --echo or when writing to paused.conf #737

Closed mzpqnxow closed 11 months ago

mzpqnxow commented 11 months ago

Self-explanatory-ish

When --adapter-port (or the alias --source-port) are used, the value will not be written to paused.conf upon interrupt, or printed using --echo

Workaround is specifying the --adapter-port or --source-port value when resuming, but this isn't practical in certain use patterns

Will submit a PR in a few moments that adds this to masscan_echo, which is the common function for both --echo as well as writing the paused.conf file