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

IVRE integration #742

Closed robertdavidgraham closed 10 months ago

robertdavidgraham commented 10 months ago

This integrations a ton of changes from the https://github.com/ivre fork of masscan. A bunch of things from that branch have been modified.

The biggest change is a complete rewrite of the "reconnect" feature first proposed by Frky. I've completely re-done the TCP stack to support it better. The feature is labeled with the keyword "reconnect" throughout so you can see the changes.

I've also completely redone the --tcpmss feature, now supporting the arbitrary change/addition of many TCP options. Frankly, the code not having an MSS field to begin with was always broken. I don't know it never did.

I'm going to do a lot more testing once this is back in the master branch, so expect a lot more changes in the integration branch over the next couple months.