Improve the Performance when Port Scanning
Currently, this script will split up IPAddresses and each worker in the thread pool will take an IP address and sequentially scan every port. This issue will go into how we can optimize this process while preserving the output:
-
What if I can get each worker to operate on an IP address, and a single port to probe? I would have to figure out how to collect ports for the same IP address, then add them to their respective lists
-
Maybe reuse the socket instead of making a new one every time? This seems resource intensive.