Skip to content

Auto adjust IP scan thread numberEn

Michael-X-Net edited this page Feb 4, 2023 · 1 revision

Automatically adjust the number of ip scanning threads

Ideas:

  • When there is a lack of ip, open a large thread to scan the ip number speed up scanning
  • After having a good enough ip, reduce the number of scanning threads and reduce resource overhead

The definition of enough ip:

  • Sort the ssl handshake time of ip, and the handshake time of the first 100 ip is used as the metric
  • As a rule of thumb, 200ms is good enough, 700ms worst

Auto-tuning rules:

  • 200ms to stop scanning
  • 300ms to start 10 threads
  • 400ms to start 20 threads ...
  • 700ms to start 50 threads
  • The default maximum is 50 threads, if you adjust this number, adjust the rules proportionally.
Clone this wiki locally